OpenCascade installation

hi,
I've a problem to install open cascade 5.1 on Mandrake 9.0, before I do "tar zxvf opencascade5.1" in my home, after I do "./install" and when I do "./configure" in "home/gozar/Opencascade5.1/ros/" return "not find Tcl configuration...", I've install tcl, tk, tix packet in "root directory", besides I've coping env.ksh in my .bash_profile, but I've same problem. I've also try to change the Path of tk, tcl with "export TCLLIBRARY =/tcl8.3/unix/tcl8.3" and "export TKLIBRARY =/tk8.3/unix/tk8.3". Thanks for your reply

C R Johnson's picture

There are a couple of problems with building on Redhat 8 or 9.

First because of g++ and standard library issues you will get alot of warnings unless you include --Wno-deprecated on the compile line.

You can ignore the warnings, or you can add --Wno-deprecated to the CXXFLAGS definition in configure.in and re-run autoconf regenerate configure.

Still, the configure script is unable to find very few things you would expect it to on its own.

I ended up doing this:
./configure --with-tk=/usr/lib --with-tcl=/usr/lib --with-gl-include=/usr/include --with-gl-library=/usr/X11R6/lib --with-java-include=/usr/java/jdk1.3.1_06/include --with-dps-include=/usr/X11R6/include --with-dps-library=/usr/X11R6/lib --with-xmu-include=/usr/X11R6/include/X11 --with-xmu-library=/usr/X11R6/lib --prefix=/usr/local

After configure "make" built the library successfully.

Now the issue is installation.

I did "make install" and the libraries were installed in /usr/local/lib, a few useful things in /usr/local/bin and nothing else.

To cover the header files, instead of copying them I made a symlink from /usr/local/include/OCC to $CASROOT/inc

Recently, in order to TRY to compile SALOME, I made a directory /usr/local/CASROOT and in this directory made 3 symlinks:

inc -> $CASROOT/inc
Linux -> ..
src->$CASROOT/src

Which seems to work when I point $CASROOT to /usr/local/CASROOT

Hope this helps.

Cliff+