For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Installing on Ubuntu 9.04

Michele Marogna's picture

Hi,
i'm trying to install OCC to make step / igs files aviable on gmsh, but when i "make", after 3 hours of compiling messages, an error occured:

g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../inc -I../../../drv/EDL -I../../../src/EDL -I../../../drv/MS -I../../../src/MS -I../../../drv/WOKAPI -I../../../src/WOKAPI -I../../../drv/WOKBuilder -I../../../src/WOKBuilder -I../../../drv/WOKDFLT -I../../../src/WOKDFLT -I../../../drv/WOKDeliv -I../../../src/WOKDeliv -I../../../drv/WOKMake -I../../../src/WOKMake -I../../../drv/WOKOBJS -I../../../src/WOKOBJS -I../../../drv/WOKOrbix -I../../../src/WOKOrbix -I../../../drv/WOKStep -I../../../src/WOKStep -I../../../drv/WOKTools -I../../../src/WOKTools -I../../../drv/WOKUnix -I../../../src/WOKUnix -I../../../drv/WOKUtils -I../../../src/WOKUtils -I../../../drv/WOKernel -I../../../src/WOKernel -DNDEBUG -DNo_Exception -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -O2 -MT WOKUnix_FDescr.lo -MD -MP -MF .deps/WOKUnix_FDescr.Tpo -c ../../../src/WOKUnix/WOKUnix_FDescr.cxx -fPIC -DPIC -o WOKUnix_FDescr.lo
../../../src/WOKUnix/WOKUnix_FDescr.cxx: In member function 'void WOKUnix_FDescr::Dup()':
../../../src/WOKUnix/WOKUnix_FDescr.cxx:249: warning: ignoring return value of 'int dup(int)', declared with attribute warn_unused_result
../../../src/WOKUnix/WOKUnix_FDescr.cxx: In member function 'Handle_TCollection_HAsciiString WOKUnix_FDescr::ReadLine()':
../../../src/WOKUnix/WOKUnix_FDescr.cxx:355: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result
../../../src/WOKUnix/WOKUnix_FDescr.cxx: In function 'FILE* _wokunix_fdopen(int)':
../../../src/WOKUnix/WOKUnix_FDescr.cxx:436: warning: deprecated conversion from string constant to 'char*'
../../../src/WOKUnix/WOKUnix_FDescr.cxx:443: warning: deprecated conversion from string constant to 'char*'
../../../src/WOKUnix/WOKUnix_FDescr.cxx:449: warning: deprecated conversion from string constant to 'char*'
In function 'int open(const char*, int, ...)',
inlined from 'WOKUnix_FDescr WOKUnix_FDescr::BuildNamedPipe()' at ../../../src/WOKUnix/WOKUnix_FDescr.cxx:205:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[3]: *** [WOKUnix_FDescr.lo] Errore 1
make[3]: uscita dalla directory «/home/michele/OpenCASCADE6.3.0/ros/adm/make/TKWOK»
make[2]: *** [all-recursive] Errore 1
make[2]: uscita dalla directory «/home/michele/OpenCASCADE6.3.0/ros/adm/make»
make[1]: *** [all-recursive] Errore 1
make[1]: uscita dalla directory «/home/michele/OpenCASCADE6.3.0/ros»
make: *** [all] Errore 2

what can be the problem?

thank you very much!

Hugues Delorme's picture

These compilation errors seem to be related to WOK. If I remember well, WOK is a specific OpenCascade development tool for creating software components.

I have never used it and have no plan to do so. I think you won't need it for what concerns you (enabling iges/step in gmsh). So I suggest you turn WOK off with --enable-wok=no when configuring OpenCascade build procedure.

Yuriy Sinithin's picture

Hi, you must run the configure from the script (sorry for my bad English):

export CASROOT="/usr/local/pkgs/OpenCASCADE-6.3.0/ros"
occFlags="--with-tcl=/usr/lib/tcl8.4"
occFlags="$occFlags --with-tk=/usr/lib/tk8.4"
occFlags="$occFlags --with-gl-include=/usr/include"
occFlags="$occFlags --with-gl-library=/usr/lib"
occFlags="$occFlags --with-xmu-include=/usr/include"
occFlags="$occFlags --with-xmu-library=/usr/lib"
occFlags="$occFlags --enable-wok=yes"
occFlags="$occFlags --enable-draw=yes"
occFlags="$occFlags --enable-wrappers=yes"
occFlags="$occFlags --enable-static=no"
occFlags="$occFlags --enable-shared=yes"
occFlags="$occFlags --disable-debug --enable-production"
occFlags="$occFlags --with-java-include=/usr/lib/jvm/java-6-sun/include"
./configure $occFlags --prefix=$CASROOT

Matteo's picture

Hi Michele,

just in case you still didn't work it out, try to read here: http://www.opencascade.org/org/forum/thread_17441/.

I had the very same problem during the installation of OCC on my system. The topic is related to an ubuntu 8.10, but I think it might be interesting for you as well.

Ciao!

Matteo