Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Download the Open CASCADE Technology installation package.
wget https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_5_0.tar.gz
- Decompress the Open CASCADE Technology installation package.
tar -zxvf V7_5_0.tar.gz
- Go to the directory generated after the decompression.
cd OCCT-7_5_0
- Create a build directory.
mkdir build
- Go to the build directory.
cd build
- Perform the configuration.
cmake -DINSTALL_DIR=/path/to/OCCT -DUSE_TCL=OFF -DBUILD_MODULE_Draw=OFF -DUSE_FREETYPE=ON -D3RDPARTY_FREETYPE_DIR=/path/to/FREETYPE -DUSE_GL2PS=OFF -DUSE_FREEIMAGE=ON -D3RDPARTY_FREEIMAGE_DIR=/path/to/FREEIMGE -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ../
- Perform the compilation and installation.
make -j64 make install