Topic: Installion help of OOFEM for Ubuntu 6.10

Hello I am a university student studying Aerospace Engineering. I wanted to use OOFEM to complete some basic structural analysis. I tried installing OOFEM on my computer and it worked perfectly fine without the GUI. I then tried to install the two packages ckit and elixir in order for me to properly install the GUI. I got ckit to install fine, but Elixir would not install, when i typed in ./configure in the src directory of Elixir I get the following output:

checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... yes
checking compile with prototypes... yes (gcc )
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for _get_list_next in -lckit... no
checking guess of libckit.a location... ../../Ckit/src
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
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
checking for an ANSI C-conforming const... yes
checking for getcwd... yes
checking for getwd... yes
checking for memcpy... yes
checking for qsort... yes
checking for random... yes
checking for rand... yes
checking for setpwent... yes
checking for strchr... yes
checking for strerror... yes
checking for mkstemp... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for X... no
checking for XawDialogGetValueString in -lXaw... no
configure: WARNING: No support for Xaw (or Xmu) -- cannot build
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ../include/Ecfg.h
config.status: ../include/Ecfg.h is unchanged

Then after that although it did not complete the makefile I typed in make all to get:

gcc  -c -I../../Ckit/include -I../include  -DHAVE_CONFIG_H  -g -O2  elixir.c
elixir.c:20:22: error: X11/Xlib.h: No such file or directory
elixir.c:21:23: error: X11/Xutil.h: No such file or directory
elixir.c:22:28: error: X11/cursorfont.h: No such file or directory
elixir.c:24:27: error: X11/Intrinsic.h: No such file or directory
elixir.c:25:23: error: X11/Shell.h: No such file or directory
In file included from elixir.c:32:
../include/Etypes.h:53:27: error: X11/Xresource.h: No such file or directory
In file included from ../../Ckit/include/timeP.h:6,
                 from ../include/Etypes.h:59,
                 from elixir.c:32:
/usr/include/string.h:293: error: conflicting types for ‘memcpy’
In file included from elixir.c:34:
../include/Ecolors.h:41:23: error: X11/Xatom.h: No such file or directory
In file included from ../include/Ecolors.h:46,
                 from elixir.c:34:
../include/Eview.h:46:28: error: X11/StringDefs.h: No such file or directory
In file included from ../include/Eview.h:51,
                 from ../include/Ecolors.h:46,
                 from elixir.c:34:
../include/EPview.h:51: error: expected ‘)’ before ‘w’
../include/EPview.h:62: error: expected specifier-qualifier-list before ‘EventHandlerP’
../include/EPview.h:103: error: expected specifier-qualifier-list before ‘Widget’
In file included from ../include/Eview.h:51,
                 from ../include/Ecolors.h:46,
                 from elixir.c:34:
../include/EPview.h:191:24: error: X11/keysym.h: No such file or directory
In file included from ../include/Eview.h:52,
                 from ../include/Ecolors.h:46,
                 from elixir.c:34:
../include/Egraphic.h:370: error: expected ‘)’ before ‘*’ token
In file included from ../include/Eview.h:57,
                 from ../include/Ecolors.h:46,
                 from elixir.c:34:
../include/Efonts.h:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘FontGetFontFromString’
../include/Efonts.h:50: error: expected ‘)’ before ‘fid’
../include/Efonts.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘FontDefaultFont’
../include/Efonts.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from ../include/Ecolors.h:46,
                 from elixir.c:34:
../include/Eview.h:63: error: expected ‘)’ before ‘drawing_area’
../include/Eview.h:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVFreeView’
../include/Eview.h:76: error: expected ‘)’ before ‘w’
../include/Eview.h:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVViewPToWidget’
../include/Eview.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVDefaultXORGC’
../include/Eview.h:132: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVDefaultCopyGC’
../include/Eview.h:133: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVDefaultEraseGC’
../include/Eview.h:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVHiliteGC’
../include/Eview.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVEraseGC’
../include/Eview.h:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVErasehiliteGC’
../include/Eview.h:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVWritableGC’
../include/Eview.h:138: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVConstrCopyGC’
../include/Eview.h:139: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVConstrEraseGC’
../include/Eview.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVConstrXORGC’
../include/Eview.h:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EVBackBuffer’
../include/Eview.h:155: error: expected declaration specifiers or ‘...’ before ‘XEvent’
../include/Eview.h:195: error: expected declaration specifiers or ‘...’ before ‘EventHandlerP’
../include/Eview.h:207: error: expected ‘)’ before ‘w’
../include/Eview.h:213: error: expected ‘)’ before ‘w’
../include/Eview.h:214: error: expected ‘)’ before ‘w’
../include/Eview.h:296: warning: ‘struct EModel’ declared inside parameter list
../include/Eview.h:296: warning: its scope is only this definition or declaration, which is probably not what you want
../include/Eview.h:370: error: expected declaration specifiers or ‘...’ before ‘Font’
In file included from elixir.c:34:
../include/Ecolors.h:188: error: expected ‘)’ before ‘*’ token
../include/Ecolors.h:194: error: expected ‘)’ before ‘*’ token
../include/Ecolors.h:198: error: expected ‘)’ before ‘*’ token
../include/Ecolors.h:230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from elixir.c:35:
../include/Elixir.h:85: error: expected ‘)’ before ‘*’ token
../include/Elixir.h:87: error: expected ‘)’ before ‘*’ token
../include/Elixir.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../include/Elixir.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../include/Elixir.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
elixir.c:42:32: error: X11/Xaw/Box.h: No such file or directory
elixir.c:43:34: error: X11/Xaw/Label.h: No such file or directory
elixir.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
elixir.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
elixir.c:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
elixir.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘drawing_area_shell’
elixir.c:72: error: expected ‘)’ before ‘*’ token
elixir.c:105: error: expected ‘)’ before ‘*’ token
elixir.c:165: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
elixir.c:181: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
elixir.c:196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
elixir.c: In function ‘ElixirNewView’:
elixir.c:228: error: ‘Widget’ undeclared (first use in this function)
elixir.c:228: error: (Each undeclared identifier is reported only once
elixir.c:228: error: for each function it appears in.)
elixir.c:228: error: expected ‘;’ before ‘drawing_area’
elixir.c:229: error: ‘Arg’ undeclared (first use in this function)
elixir.c:229: error: expected ‘;’ before ‘al’
elixir.c:230: error: ‘Cardinal’ undeclared (first use in this function)
elixir.c:230: error: expected ‘;’ before ‘ac’
elixir.c:238: error: ‘XSetWindowAttributes’ undeclared (first use in this function)
elixir.c:238: error: expected ‘;’ before ‘xswattrs’
elixir.c:257: error: ‘ac’ undeclared (first use in this function)
elixir.c:258: error: ‘al’ undeclared (first use in this function)
elixir.c:258: error: ‘XtNallowShellResize’ undeclared (first use in this function)
elixir.c:258: error: ‘True’ undeclared (first use in this function)
elixir.c:259: error: ‘XtNvisual’ undeclared (first use in this function)
elixir.c:259: error: invalid type argument of ‘->’
elixir.c:260: error: ‘XtNdepth’ undeclared (first use in this function)
elixir.c:260: error: invalid type argument of ‘->’
elixir.c:261: error: ‘XtNcolormap’ undeclared (first use in this function)
elixir.c:261: error: invalid type argument of ‘->’
elixir.c:262: error: ‘XtNforeground’ undeclared (first use in this function)
elixir.c:263: error: ‘XtNbackground’ undeclared (first use in this function)
elixir.c:264: error: ‘drawing_area_shell’ undeclared (first use in this function)
elixir.c:266: error: ‘topLevelShellWidgetClass’ undeclared (first use in this function)
elixir.c:272: error: ‘XtNheight’ undeclared (first use in this function)
elixir.c:273: error: ‘XtNwidth’ undeclared (first use in this function)
elixir.c:283: error: ‘drawing_area’ undeclared (first use in this function)
elixir.c:283: error: ‘boxWidgetClass’ undeclared (first use in this function)
elixir.c:294: error: ‘xswattrs’ undeclared (first use in this function)
elixir.c:294: error: ‘NotUseful’ undeclared (first use in this function)
elixir.c:296: error: ‘CWBackingStore’ undeclared (first use in this function)
elixir.c:302: warning: assignment makes pointer from integer without a cast
make: *** [elixir.o] Error 1

Therefore now If I try to do the gui installaion of OOFEM I get a message saying that Elixir is not installed.
I dont know what the problem is or how to fix it. Can someone please help me fix this program as I would really like to use it. Thank you.

Mihir

Re: Installion help of OOFEM for Ubuntu 6.10

hi,
it looks like that u dont have installed xaw or xmu libaries or what ever this is.take a look in ur YAST or ur package manager and search for xaw and xmu. then try again

regarding this
......configure: WARNING: No support for Xaw (or Xmu) -- cannot build........

good luck

Disco

3

Re: Installion help of OOFEM for Ubuntu 6.10

Hello Mihir,

You will also need X11 development files (headers), look for package libX11-dev.

To Disco: Thank you for helping.

Borek

Re: Installion help of OOFEM for Ubuntu 6.10

Hello Mistrymp,

How do you manage to copy your output text ?
(sorry its probably a silly question for you but I am a beginner on linux (I use Cygwin) and I can't manage it...)

By the way I have a similar problem than yours, my elixir is not properly installed... I don't have any libelixir.a file created by running the configuration... so we keep in touch if we manage it... ;-)

Clam's

Re: Installion help of OOFEM for Ubuntu 6.10

Hi,
When using linux you can copy your terminal-text with:
{ctrl+shift+C}
and past in the terminal with:
{ctrl+shift+V}

when using ubuntu-linux i think
sudo apt-get install xorg-dev
should do the trick....
(I will try shortly.....)

Greetz,
Gerco-Kees
<><

6 (edited by wjytj 19-08-2008 17:11:33)

Re: Installion help of OOFEM for Ubuntu 6.10

Hello, everyone!
I try to compile OOFEM on openSuSE 11.0 and run into the same problem as mistrymp. I have already installed the xaw3D, xmu and X11 development libraries, but it does not work at all. I am not sure what the reason is and still trying to find it out. Can anybody help me? Thanks a lot!

Regards

Jian-Ying Wu

7

Re: Installion help of OOFEM for Ubuntu 6.10

Hi Jian-Ying Wu,

could you please attach the output from "configure" script?
Borek

8 (edited by wjytj 26-08-2008 09:17:42)

Re: Installion help of OOFEM for Ubuntu 6.10

Thanks to Borek and your reply is appreciated.

The following messages which are the same as those of mistrym are obtained from the ``configure'' script:

checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... yes
checking compile with prototypes... yes (gcc )
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for _get_list_next in -lckit... no
checking guess of libckit.a location... ../../Ckit/src
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
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
checking for an ANSI C-conforming const... yes
checking for getcwd... yes
checking for getwd... yes
checking for memcpy... yes
checking for qsort... yes
checking for random... yes
checking for rand... yes
checking for setpwent... yes
checking for strchr... yes
checking for strerror... yes
checking for mkstemp... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for X... no
checking for XawDialogGetValueString in -lXaw... no
configure: WARNING: No support for Xaw (or Xmu) -- cannot build
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ../include/Ecfg.h
config.status: ../include/Ecfg.h is unchanged

9

Re: Installion help of OOFEM for Ubuntu 6.10

Hi Jian-Ying Wu,

1) seems that you do not have X, Xaw, and Xmu libraries installed (you need development verison).
this can be seen from this:
>checking for X... no
>checking for XawDialogGetValueString in -lXaw... no
>configure: WARNING: No support for Xaw (or Xmu) -- cannot build

Solution: In yast, install following packages:
xorg-x11-devel
xaw3d-devel
xorg-x11-libXmu-devel
(the names may slightly vary, please use search tool to find exact package name)

2) seems also that Ckit and Elixir libraries are not present:
>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

You should download booth (http://www.oofem.org/download/download.html) and install them before configuring oofem. The --with-CKITDIR=dir and --with-ELIXIRDIR=dir configure options allow you to specify the location of Ckit and Elixir directories when configuring oofem.

Borek

Re: Installion help of OOFEM for Ubuntu 6.10

Thanks a lot, Borek.

With your help the compilations of oofem and oofeg both succeeds. Now it is time to start and make some development. Wish to interact with you on the crack modeling of concrete.

Best regards,

Jian-Ying Wu

Re: Installion help of OOFEM for Ubuntu 6.10

HI Jian-Ying Wu

Excuseme

Can you help me? please
I have the same problema with elixir, I done the download of the file elixir but I don't understand this message:

>checking Elixir.h usability... no
>checking Elixir.h presence... no

I can compiler but afther I has a trouble with file dither( I wrote /*  */ for one instruction and it is okey) son at the end when I tried shows one structure I can't open the display.

Thanks

12

Re: Installion help of OOFEM for Ubuntu 6.10

Hi,

>checking Elixir.h usability... no
>checking Elixir.h presence... no

this means that configure script was not able to locate the Elixir libraries. If you already have them ( I suppose, based on your previous posts), you should use "--with-ELIXIRDIR=dir" configure option to specify the location of Elixir directory (the "dir" should be replaced by path to elixir installation directory). So, if you have Elixir installed in "/home/user/Elixir" directory and ckit installed in "/home/user/ckit", then to set up a target for oofeg, you can run oofem configure script as
./configure OOFEM_TARGET=oofeg  --enable-oofeg  --with-CKITDIR=/home/user/ckit  --with-ELIXIRDIR=/home/user/Elixir

Borek