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

OCC 6.3 on Ubuntu Intrepid

Torsten Sadowski's picture

Hi,

I found two points when installing OpenCASCADE6.3.0 on Ubuntu Intrepid Ibex. The outdated ltmain.sh led to a heavily memory leaking libtool which crashed the system. This can be solved by using the system libtools ltmain.sh. The second is a small file creation problem in WOKUnix.

Cheers, Torsten

Patch for WOK:

--- WOKUnix_FDescr.cxx.orig 2009-01-19 21:17:29.000000000 +0100
+++ WOKUnix_FDescr.cxx 2009-01-20 14:12:24.000000000 +0100
@@ -202,7 +202,8 @@
if(mknod(apath.ToCString(), 0700 | S_IFIFO, 0))
{ perror(apath.ToCString());}

- myFileChannel = open(apath.ToCString(), O_RDONLY | O_NDELAY | O_CREAT);
+ myFileChannel = open(apath.ToCString(), O_RDONLY | O_NDELAY | O_CREAT,
+ S_IRUSR|S_IWUSR|S_IWUSR|S_IRGRP|S_IROTH);
SetUnBuffered();

// write end of pipe is unbuffered also

To build:

export CASROOT=/home/totty/Projects/OpenCASCADE6.3.0/ros
cd ${CASROOT}
aclocal
automake
autoconf
cp /usr/share/libtool/config/ltmain.sh make/
export TCLHOME=/usr
flags=""
flags="$flags --with-tcl=${TCLHOME}/lib/tcl8.4"
flags="$flags --with-tk=${TCLHOME}/lib/tk8.4 "
flags="$flags --with-java-include=/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/include "
flags="$flags --disable-debug --enable-production"
#flags="$flags --enable-debug --disable-production"
flags="$flags --enable-wrappers=yes"
flags="$flags --enable-wok=yes"
flags="$flags --enable-draw=yes"
./configure --prefix=${CASROOT}/bootstrap_lin $flags
make
make install

Steven Zalek's picture

Tosten, thanks for this installation help.

I would like to also build a debug library. Should I just copy the source over to a new directory (e.g. OpenCASCADE6.3.0-dbg) and perform the steps anew (with debug enabled)? Do I need to specifically define a new installation (make install) directory as well in order to keep both the production and debug versions?

Thanks.

Torsten Sadowski's picture

Hi Steven,

you have to run configure/make/make install again with a new --prefix option.

Cheers, Torsten