Topic: HELPME WIHT OOFEM INSTALLATION PLEASE

Hello Borek:

I'm starting to work with OOFEM- I try-
But I have some problems with the compilation, can you help me? Please
I write ./configure OOFEM_TARGET="oofeg" --enable-oofeg and then the file config.txt brings some
results that indicate mistakes  ( I think). In the party of CORE TESTS there are four packages
after the legend CONFIGURE: FAILED PROGRAM WAS:


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2636: g++ -E  conftest.cpp
conftest.cpp:8:28: ac_nonexistent.h: No such file or directory
configure:2642: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
..
..
..
conftest.cpp:8:28: ac_nonexistent.h: No such file or directory
configure:2747: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
..
..
..
/cygdrive/c/DOCUME~1/SANCHE~1/LOCALS~1/Temp/cci73D8r.o: In function `main':
/cygdrive/c/cygwin/home/oofem-1.8/conftest.cpp:64: undefined reference to `_nearest'
collect2: ld returned 1 exit status
configure:3778: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h.  */
| /* Define nearest to an innocuous variant, in case <limits.h> declares nearest.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define nearest innocuous_nearest
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char nearest (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
..
..
..
configure:3836: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h.  */
| #include<stdio.h>
| int
..
..

After I run the make OOFEM_TARGET="oofeg" and I have these results


## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
..
..
config.status:663: creating makefile
config.status:663: creating targets/oofeg--enable-oofeg/include/oofemdef.h
config.status:663: creating targets/oofeg--enable-oofeg/makefile
config.status:663: creating targets/oofeg--enable-oofeg/lib/oofemlib/makefile
config.status:663: creating targets/oofeg--enable-oofeg/lib/sm/makefile
config.status:663: creating targets/oofeg--enable-oofeg/lib/tm/makefile
config.status:663: creating targets/oofeg--enable-oofeg/lib/fm/makefile
config.status:663: creating targets/oofeg--enable-oofeg/lib/dss/makefile
config.status:663: creating targets/oofeg--enable-oofeg/lib/main/makefile
config.status:663: creating tools/makefile
config.status:663: creating targets/oofeg--enable-oofeg/include/oofemcfg.h
..
..
..
    if [ -d targets/${OOFEM_TARGET} ]; then \
        cd targets/${OOFEM_TARGET}; ${MAKE} OOFEM_TARGET=${OOFEM_TARGET};\
        echo;\
        echo ${OOFEM_TARGET} target done;\
        echo;\
    else\
        echo ;\
        echo Error: ${OOFEM_TARGET} not configured;\
        echo ;\
    fi

Error: oofeg not configured

This situation is caused for the four packages that I cann't configure?
I don't know if I have problems to use the OOFEM in a laptop
I forget, I use oofem 1.8 and cygwin

Thanks for your help

2

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hi Aries,

do not worry about some failures, that are reported in configure log. They naturally happen, since the configure script is typically trying to compile&run various tests to determine the  presence and behavior of many library and system functions.  I can see much more from output, that is reported by the configure command. Can you post it?

In the meantime, I think, that source of your problems could be following: oofeg requires ckit and elixir libraries to be installed. So you must install these first (see  http://www.oofem.org/wiki/doku.php?id=i … nal#oofeg) and run configure script with additional parameters --with-CKITDIR=dir and --with-ELIXIRDIR=dir to specify location of Ckit and Elixir installation directories. If this is not provided, the configure command for oofeg target will fail and makefiles are not set up correctly.

Borek

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hello Borek

I post whole that contains of the file configure.


  $ ./configure OOFEM_TARGET=oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir

## --------- ##
## Platform. ##
## --------- ##

hostname = ACER-29569F1E48
uname -m = i686
uname -r = 1.5.25(0.156/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2008-06-12 19:34

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/c/program files/silverfrost/ftn95
PATH: /cygdrive/c/WINDOWS/system32
PATH: /cygdrive/c/WINDOWS
PATH: /cygdrive/c/WINDOWS/system32/wbem
PATH: /cygdrive/c/program files/intel/wireless/bin/
PATH: /cygdrive/c/Program Files/MATLAB/R2006a/bin/win32
PATH: /cygdrive/c/Program Files/Fichiers communs/Autodesk Shared/
PATH: /cygdrive/c/PROGRA~1/FICHIE~1/MUVEET~1/030625
PATH: /usr/lib/lapack


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1821: checking build system type
configure:1839: result: i686-pc-cygwin
configure:1861: checking host system type
configure:1876: result: i686-pc-cygwin
configure:1903: checking OOFEM_DIR
configure:1910: result: /cygdrive/c/cygwin/home/oofem-1.8
configure:2009: checking for g++
configure:2025: found /usr/bin/g++
configure:2036: result: g++
configure:2067: checking for C++ compiler version
configure:2074: g++ --version >&5
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2077: $? = 0
configure:2084: g++ -v >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
configure:2087: $? = 0
configure:2094: g++ -V >&5
g++: `-V' option must have argument
configure:2097: $? = 1
configure:2120: checking for C++ compiler default output file name
configure:2147: g++    conftest.cpp  >&5
configure:2150: $? = 0
configure:2188: result: a.exe
configure:2205: checking whether the C++ compiler works
configure:2215: ./a.exe
configure:2218: $? = 0
configure:2235: result: yes
configure:2242: checking whether we are cross compiling
configure:2244: result: no
configure:2247: checking for suffix of executables
configure:2254: g++ -o conftest.exe    conftest.cpp  >&5
configure:2257: $? = 0
configure:2281: result: .exe
configure:2287: checking for suffix of object files
configure:2313: g++ -c   conftest.cpp >&5
configure:2316: $? = 0
configure:2339: result: o
configure:2343: checking whether we are using the GNU C++ compiler
configure:2372: g++ -c   conftest.cpp >&5
configure:2378: $? = 0
configure:2395: result: yes
configure:2400: checking whether g++ accepts -g
configure:2430: g++ -c -g  conftest.cpp >&5
configure:2436: $? = 0
configure:2535: result: yes
configure:2563: checking how to run the C++ preprocessor
configure:2599: g++ -E  conftest.cpp
configure:2605: $? = 0
configure:2636: g++ -E  conftest.cpp
conftest.cpp:8:28: ac_nonexistent.h: No such file or directory
configure:2642: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2675: result: g++ -E
configure:2704: g++ -E  conftest.cpp
configure:2710: $? = 0
configure:2741: g++ -E  conftest.cpp
conftest.cpp:8:28: ac_nonexistent.h: No such file or directory
configure:2747: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2803: checking for a BSD-compatible install
configure:2859: result: /usr/bin/install -c
configure:2913: checking for ranlib
configure:2929: found /usr/bin/ranlib
configure:2940: result: ranlib
configure:2966: checking whether make sets $(MAKE)
configure:2987: result: yes
configure:3000: checking for grep that handles long lines and -e
configure:3074: result: /usr/bin/grep
configure:3079: checking for egrep
configure:3157: result: /usr/bin/grep -E
configure:3162: checking for ANSI C header files
configure:3192: g++ -c -g -O2  conftest.cpp >&5
configure:3198: $? = 0
configure:3297: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
configure:3300: $? = 0
configure:3306: ./conftest.exe
configure:3309: $? = 0
configure:3326: result: yes
configure:3350: checking for sys/types.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for sys/stat.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for stdlib.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for string.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for memory.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for strings.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for inttypes.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for stdint.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for unistd.h
configure:3371: g++ -c -g -O2  conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3425: checking limits.h usability
configure:3442: g++ -c -g -O2  conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking limits.h presence
configure:3481: g++ -E  conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for limits.h
configure:3537: result: yes
configure:3425: checking malloc.h usability
configure:3442: g++ -c -g -O2  conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking malloc.h presence
configure:3481: g++ -E  conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for malloc.h
configure:3537: result: yes
configure:3415: checking for strings.h
configure:3421: result: yes
configure:3415: checking for unistd.h
configure:3421: result: yes
configure:3425: checking sys/time.h usability
configure:3442: g++ -c -g -O2  conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking sys/time.h presence
configure:3481: g++ -E  conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for sys/time.h
configure:3537: result: yes
configure:3425: checking sys/resource.h usability
configure:3442: g++ -c -g -O2  conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking sys/resource.h presence
configure:3481: g++ -E  conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for sys/resource.h
configure:3537: result: yes
configure:3551: checking whether time.h and sys/time.h may both be included
configure:3581: g++ -c -g -O2  conftest.cpp >&5
configure:3587: $? = 0
configure:3602: result: yes
configure:3621: checking for strstr
configure:3677: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for strtod
configure:3677: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for strtol
configure:3677: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for strncasecmp
configure:3677: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for access
configure:3677: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3716: checking for nearest
configure:3772: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
/cygdrive/c/DOCUME~1/SANCHE~1/LOCALS~1/Temp/ccENZUDi.o: In function `main':
/cygdrive/c/cygwin/home/oofem-1.8/conftest.cpp:64: undefined reference to `_nearest'
collect2: ld returned 1 exit status
configure:3778: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h.  */
| /* Define nearest to an innocuous variant, in case <limits.h> declares nearest.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define nearest innocuous_nearest
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char nearest (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef nearest
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char nearest ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_nearest || defined __stub___nearest
| choke me
| #endif
|
| int
| main ()
| {
| return nearest ();
|   ;
|   return 0;
| }
configure:3796: result: no
configure:3807: checking FALSE, TRUE enum/constants
configure:3830: g++ -c -g -O2  conftest.cpp >&5
conftest.cpp: In function `int main()':
conftest.cpp:34: error: `FALSE' undeclared (first use this function)
conftest.cpp:34: error: (Each undeclared identifier is reported only once for each function it appears in.)
conftest.cpp:34: error: `TRUE' undeclared (first use this function)
configure:3836: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h.  */
| #include<stdio.h>
| int
| main ()
| {
| if (1) return FALSE; else return TRUE;
|   ;
|   return 0;
| }
configure:3855: result: no
configure:3862: checking typedef bool
configure:3885: g++ -c -g -O2  conftest.cpp >&5
configure:3891: $? = 0
configure:3897: result: yes
configure:3916: checking M_PI constant
configure:3939: g++ -c -g -O2  conftest.cpp >&5
configure:3945: $? = 0
configure:3951: result: yes
configure:3971: checking M_LN2 constant
configure:3994: g++ -c -g -O2  conftest.cpp >&5
configure:4000: $? = 0
configure:4006: result: yes
configure:4027: checking STL support
configure:4050: g++ -c -g -O2  conftest.cpp >&5
configure:4056: $? = 0
configure:4062: result: yes
configure:4079: checking Macro __VA_ARGS__ support
configure:4107: g++ -c -g -O2  conftest.cpp >&5
configure:4113: $? = 0
configure:4119: result: yes
configure:4139: checking Function Templates support
configure:4176: g++ -c -g -O2  conftest.cpp >&5
configure:4182: $? = 0
configure:4188: result: yes
configure:4368: checking for sqrt in -lm
configure:4403: g++ -o conftest.exe -g -O2   conftest.cpp -lm   >&5
configure:4409: $? = 0
configure:4427: result: yes
configure:6882: checking Determining hostname
configure:6885: result:
configure:6888: checking OOFEM version
configure:6891: result: 1.8
configure:7055: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on ACER-29569F1E48

config.status:663: creating makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/include/oofemdef.h
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/oofemlib/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/sm/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/tm/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/fm/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/dss/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/main/makefile
config.status:663: creating tools/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/include/oofemcfg.h

Now, I have the executable oofem but when I write cd tools, make all, I have problems and I cann't compiler the tools, why?
This is the message:
cd tools; make all
g++ -O  -c  tokenizer.C -o tokenizer.o
g++ -O -c seek.C -o seek.o
g++ -O -o systemstudentextractor -DSYSYTEM_STUDENT_EXTRACTOR_MODE checker.C tokenizer.o seek.o -lm
checker.C: In fuction 'int main(int, char**)':
checker.C:798: error:  'basename' undeclared <first use this fuction>
checker.C:798: error: <Each undeclared identifier is reported only once for each fuction it appears in.>
make: *** [systemstudentextractor] Error 1

I'm not happy because I don't know I'm going to do
I think that the is not basename declared in the compilation process? But if I have the oofem executable I can run the program without tools?
Thanks for help me

4

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hi Aries,

I figured out one problem: you did not put space characters between configure options. Instead of
./configure OOFEM_TARGET=oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir
you should use
./configure    OOFEM_TARGET=oofeg     --enable-oofeg          --with-CKITDIR=/Ckit/             --with-ELIXIRDIR=/Elixir

Could you try it and if it will not work, please send me the text output of configure command, that you can create using this:
./configure    OOFEM_TARGET=oofeg     --enable-oofeg          --with-CKITDIR=/Ckit/             --with-ELIXIRDIR=/Elixir > configure.out.txt
this will create a file named configure.out.txt, that I need.

Borek

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hello Borek

Excuseme-me but I have one question

For the oofem-1.8 when I write "./configure.....",  the programm take the libreries of Ckit and Elixir directories and it do your compilation with "make ...." command; or I must  do before the configuration and building of the two: Ckit and Elixir and after I build the oofem-1.8

I'm sorry for your  time. Thanks

6

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hi,

do not worry about posting questions. You should compile ckit and elixir before compiling oofem.
The compilation and installation is simple, after unpacking ckit or elixir, change directory to source directory, and run "configure", followed by "make" (see README in both packages).
Elixir requires X windows development files and Xaw and Xmu libraries (development files). They typically come in related packages, depending on your distribution.

Borek

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hello Borek

I'm worry because i cann't run with OOFEM, I done the configuration and compiling of the ckit file without problems, after I configured the elixir file too without problems but when I tried to make the elixir file I had one mistake, I shows this messages.

gcc  -c -I../../Ckit/include -I../include  -DHAVE_CONFIG_H  -g -O2  -I/usr/X11R6/include dither.c
dither.c:49: error: conflicting types for 'srandom'
/usr/include/cygwin/stdlib.h:28: error: previous declaration of 'srandom' was here
dither.c:49: error: conflicting types for 'srandom'
/usr/include/cygwin/stdlib.h:28: error: previous declaration of 'srandom' was here
make: *** [dither.o] Error 1



I don't know I done wrong. I add the dither fragment and the stdlib.h fragment with the word random, and is true that this variable has two diferent values. I can write assigned in stdlib.h


DITHER FILE


/* ========================================================================= */
/* PRIVATE */
/* ========================================================================= */

static float one_minus_lower_bound = 1.;
static float lower_bound = 0;
static double inv_long_max = 0;
static EPixel dither_background = 0x0;
static int seed = 1;

#ifdef HAVE_RANDOM
extern void srandom();
/* extern int srandom(); */
/* extern long random(); */
/* extern int random();  */
#   define RANDOM_RETURNS_MAX LONG_MAX
#else  /* !AIXV3 */
#   ifdef HAVE_RAND
#      include <stdlib.h>
#      define random() rand()
#      define srandom(_seed) srand(_seed)
#      define RANDOM_RETURNS_MAX 32767
#   else /* everything else */
       I am really bad off without any random generator;
#      define RANDOM_RETURNS_MAX LONG_MAX
#   endif
#endif

/* ========================================================================= */
/* PUBLIC */
/* ========================================================================= */

void DitherInit(double smallest_cos, EPixel dither_bground)
{
  lower_bound = smallest_cos;
  one_minus_lower_bound = 1 - lower_bound;
  inv_long_max = 1.0/RANDOM_RETURNS_MAX;
  dither_background = dither_bground;
  srandom(seed);
  seed = random();
}





/* stdlib.h

  int random (void);
long srandom (unsigned);
char *ptsname (int);

Thanks for help me

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

I tried to compiling in version of cygwin-1.5.25-15 and Linux  but I have the same resultat, I cann't building the elixir file. I want use the oofem-1.7 but I will work with material masonry02 and the stiffenes matrix is unsimmetrical because we have the plasticity non-associative and I read that oofem -1.7 has problems with the assemblage?
thanks

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hello Borek

I'm happy because I ran the CKIT and Elixir, I think that the Elixir/src/dither file had one mistake; I observed the original file( Krysl webpage) and I done one correction on 2th line, see below, so I can do the libelixir.a

Thanks


#ifdef HAVE_RANDOM
/*extern void srandom();*/
/* extern int srandom(); */
/* extern long random(); */
/* extern int random();  */
#   define RANDOM_RETURNS_MAX LONG_MAX
#else  /* !AIXV3 */
#   ifdef HAVE_RAND
#      include <stdlib.h>
#      define random() rand()
#      define srandom(_seed) srand(_seed)
#      define RANDOM_RETURNS_MAX 32767
#   else /* everything else */
       I am really bad off without any random generator;
#      define RANDOM_RETURNS_MAX LONG_MAX
#   endif
#endif

10

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hi Aries,

please excuse my delayed reply, I was out of office in last days. It follows from your last post that you have managed to get ckit and elixir compiled correctly - I assume that you can now compile oofeg as well. If not, please, let me know. Thank you for reporting the modification you have made.
Concerning the previous releases: yes, version 1.7 has had some problems with assembly, but they have been related only to newly introduced  sparse solver (DSS). Other linear solvers were correct. But in general, I strongly recommended to upgrade to the latest version.

Borek.

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hello Borek

When I tried to build the tools I had one mistake in the checker file, so I looked the same file in the version 1.7 and I deleted the basename() two times, see paragrah below, now it is good and I have three executables files in tools folder

Thanks

#ifndef EXTRACTOR_MODE
   //printCheckErrors1 ("Error(s) encountered while parsing %s file",inputStreamName);
   printf ("---Checker: %50s    [%sFAILED%s]\n",inputStreamName,RED,NORMAL);
#endif
} else {
#ifdef CHECKER_MODE
   printf ("---Checker: %50s    [  %sOK%s  ]\n",inputStreamName,GREEN,NORMAL);
#endif

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hello Borek


I got the executable oofem and I haven't problems with it. But about the oofeg, yet I can't use.
I described briefly the process:
a) I install the ckit an elixir on the same folder with oofem-1.8
b) I configure and build the ckit file without problems
c) I configure the elixir file and on this step there are some things that I don't like, for example:

checking ckitcfg.h usability... no
checking ckitcfg.h presence... no
checking for ckitcfg.h... no
checking guess of Ckit includes location... ../../Ckit/include
checking Elixir.h usability... no
checking Elixir.h presence... no
checking for Elixir.h... no
checking guess of Elixir includes location... ../include

About the libraries X11 them are good. If I understand is the same problem mentioned by Jian-Ying Wu in the forum (26-08-2008), your answer is that he must download the two file, the ckit and elixir, but for me I have already them, it seems to me that the program cannot take your routines? Because the elixir.h is in the elixir/src. It is more strange because I can continue with the compilation of elixir without any problems and I have the libelixir.a. After I type OOFEM_TARGET = oofeg and I add the --with-CKITDIR=dir(absolute path) and –with-ELIXIRDIR=dir, at the end I have the oofeg executable after I ran it but can shows only this message in file.out.oofeg and on terminal write “can't open display”


Starting analysis on: Fri Nov 14 01:36:58 2008

homework
Domain type: 2dbeam, default ndofs per node is 3, per side is 0


So, I don't know where is my mistake, I'm sorry and tanks for your answer.

13

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

Hi,
this is not the problem of oofeg, but it is rather related to X-windows environment.
The message "can't open display" usually means that the application is running on remote machine and you have to redirect the output to your terminal (if this is the case, I could recommend to use ssh with -X option for connecting to a remote server with enabled X forwarding)

Anyway, can you execute other X-windows applications, such as xterm, xcalc ?

Try google for "can't open display", there are plenty of responses. You can check also following links:
http://en.opensuse.org/SDB:X_Client_Pro … y%22_Error
http://ubuntuforums.org/showthread.php?t=723330
http://www.tldp.org/HOWTO/Remote-X-Apps.html

Borek

Re: HELPME WIHT OOFEM INSTALLATION PLEASE

HELLO BOREK:

I has problems with my enviroment variables, now they are good and I can look the geometry structures  in elixir.

Thanks, thanks