Topic: problems with compiling OOFEM

Dear Borek,
                I tried to install oofem-1.9 on my computer. Unfortunately, I met some errors about the installation.

1. I need to install Ckit and Elixir firstly. The installation of Ckit was successful, and I got the libckit .a. But when I compiled the elixir, there were some errors:

ubuntu@ubuntu:~/文档/Elixir/src$ make all                     
gcc  -c -I../../Ckit/include -I../include  -DHAVE_CONFIG_H  -g -O2  elixir.c
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 ../../Ckit/include/timeP.h:6,                         
                 from ../include/Etypes.h:59,                               
                 from elixir.c:32:                                         
/usr/include/string.h:298: error: conflicting types for ‘memcpy’           
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/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: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
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:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘drawing_area_shell’
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: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:259: error: ‘XtNvisual’ undeclared (first use in this function)
elixir.c:260: error: ‘XtNdepth’ undeclared (first use in this function)
elixir.c:261: error: ‘XtNcolormap’ undeclared (first use in this function)
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:302: warning: assignment makes pointer from integer without a cast
make: *** [elixir.o] Error 1
ubuntu@ubuntu:~/文档/Elixir/src

I need your help to solve these questions. Thank you.

Wang Mingchao

2

Re: problems with compiling OOFEM

Hi Wang,

it seems to me, that you are missing X11 development files (headers) and perhaps other similar packages, that need to be installed separately. Please have a look on this topic (http://www.oofem.org/forum/viewtopic.php?id=13), where similar problem has been solved.

Borek

Re: problems with compiling OOFEM

Hi borek,

I'm glad that you have shared your ideas on giving solutions on this. I was having a hard time finding some remedies on this problem, but sad to say I haven't found anything. In this case, I saw and get some ideas from you that I made as a reference on solving my problem and I'm glad I already fix it.


Best Regards,
Pears