Building on Linux with autoconf, automake and libtool scripts
During the compilation
by makefiles
some Linux OS and on a station with NVIDIA
video card you may experience problems because the installation
procedure of NVIDIA
video driver removes library libGL.so
included in package libMesaGL
from directory /usr/X11R6/lib
and places this library libGL.so
in directory /usr/lib.
However, libtool
expects to find the library in directory /usr/X11R6/lib,
which causes compilation crash (See /usr/X11R6/lib/libGLU.la).
We suggest making links:
ln -s /usr/lib/libGL.so
/usr/X11R6/lib/libGL.so
ln -s /usr/lib/libGL.la
/usr/X11R6/lib/libGL.la
Attention: Before configure it is necessary to launch build_configure script to generate files configure and Makefile.in
Now use the ./configure with the correct options as described below:
./configure <FLAGS>
Where <FLAGS> is a set of the following directives:
--with-tcl= defines location of tclConfig.sh
--with-tk= defines location of tkConfig.sh
--with-freetype= defines location of installed FreeType product
--with-gl2ps= defines location of installed gl2ps product
--with-freeimage= defines location of installed FreeImage product
--with-tbb-include= defines location of tbb.h
--with-tbb-library= defines location of libtbb.so
--enable-debug= yes: includes debug information
no: does not include debug information
--enable-production= yes: switches code optimization
no: switches off code optimization
--prefix= defines location for the installation of OCCT binaries
Additional flags:
--disable-draw - allows OCCT building without Draw.
Building without optional products:
Open CASCADE technology will be built without optional products if you will not define the following options:
–with-tbb-include=, –with-tbb-library= (without tbb),
--with-gl2ps= (without gl2ps)
--with-freeimage= (without freeimage)
Attention: 64-bit platforms are detected automatically.
Example:
> ./configure –prefix=/PRODUCTS/occt-6.5.5 --with-tcl=/PRODUCTS/tcltk-8.5.8/lib --with-tk=/PRODUCTS/tcltk-8.5.8/lib --with-freetype=/PRODUCTS/freetype-2.4.10 --with-gl2ps=/PRODUCTS/gl2ps-1.3.5 --with-freeimage=/PRODUCTS/freeimage-3.14.1 --with-tbb-include=/PRODUCTS/tbb30_018oss/include --with-tbb-library=/PRODUCTS/tbb30_018oss/lib/ia32/cc4.1.0_libc2.4_kernel2.6.16.21
If configure exits successfully, you can build OCCT with make command.
> make –j8 install