Open CASCADE Technology
6.9.1
|
|
This file describes steps to build OCCT libraries from a complete source archive on Linux with Autotools GNU build system.
If you build OCCT from bare sources (as in Git repository), or do some changes affecting CDL files, you need to use WOK to re-generate header files and build scripts / projects. See paragraph 1 Using WOK for instructions.
Before building OCCT, you need to install the required third-party libraries; see paragraph 1 of Building OCCT from sources for instructions.
Note that during compilation by makefiles on Linux 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 ).
To prevent this, it is suggested to make links:
ln -s /usr/lib/libGL.so /usr/X11R6/lib/libGL.so ln -s /usr/lib/libGL.la /usr/X11R6/lib/libGL.la
1.In OCCT root folder, launch build_configure script to generate files configure and Makefile.in for your system.
2.Go to the directory, where OCCT will be built, and run configure to generate makefiles.
$CASROOT/configure \<FLAGS\>
Where <FLAGS> is a set of options. The following flags are mandatory:
Additional flags:
If location of FreeImage, TBB, gl2ps or VTK is not specified, OCCT will be built without these optional libraries.
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 -–with-vtk-include=/PRODUCTS/VTK-6.1.0/include/vtk-6.1 –with-vtk-library=/PRODUCTS/ /VTK-6.1.0//lib
3.If configure exits successfully, you can build OCCT with make command.
> make -j8 install
4.To start DRAW, launch
> draw.sh