OCC6.3 64 bit Linux install problem

libTKernel gets built and installed, but the rest of the libs don't.

mv: cannot stat `libTKMath.0.0.0': No such file or directory
libtool: install: error: relink `libTKMath.la' with the above command before installing it
libtool: install: warning: remember to run `libtool --finish /opt/OpenCascade3.0/lib'

Happens will all subsequent libraries.

William Jones's picture

Not just a 64 bit problem. I have experienced the same when building 32-bit libraries.

William Jones's picture


Looks like the libtool (version 1.4.3) used to build the distribution was broken. As such, the shared library extension (*.so) is not added to the output library names (hence libTKMath.0.0.0 instead of libTKMath.so.0.0.0).

I was able to get a successful installation using libtool 1.5.6 on my CentOS 4.6 x86_64 machine. Basically, you have to re-run `libtoolize --force` in the "ros" directory prior to running `configure`. Again, this must be done before running `configure`. For me this involved:

% cd OpenCASCADE6.3.0/ros
% libtoolize --force
% mkdir build
% cd build
% ../configure --prefix=/usr/local/pkgs/OpenCASCADE-6.3.0 --with-gl-include=/usr/include --with-gl-library=/usr/lib --x-libraries=/usr/X11R6/lib --with-xmu-include=/usr/X11R6/include/X11 --with-xmu-library=/usr/X11R6/lib --with-tcl=/usr/lib --with-tk=/usr/lib --with-java-include=/usr/java/default/include --disable-debug --enable-production --enable-draw --enable-wok CC="gcc -m32" CXX="g++ -m32"
% make
% make install

This resulted in an installation of the binaries, includes, and libraries in my "--prefix" path.

% ls /usr/local/pkgs/OpenCASCADE-6.3.0
bin config.h env_DRAW.sh inc lib lin Linux src

Hope this helps others