Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

OCC 6.3 on Ubuntu Intrepid

OCC 6.3 on Ubuntu Intrepid
Torsten Sadowski 2009/01/20 14: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
Steven Zalek 2009/03/12 20: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.
Torsten Sadowski 2009/03/15 21:41
Hi Steven,

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

Cheers, Torsten
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map