Tue, 01/20/2009 - 16:46
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
Thu, 03/12/2009 - 22:17
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.
Sun, 03/15/2009 - 23:41
Hi Steven,
you have to run configure/make/make install again with a new --prefix option.
Cheers, Torsten