forked from IfcOpenShell/IfcOpenShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Building on Linux
sebjf edited this page Mar 24, 2025
·
6 revisions
- Install the dependencies
libboost-all-dev
libcgal-dev
libocct-data-exchange-dev
libocct-draw-dev
libocct-foundation-dev
libocct-modeling-algorithms-dev
libocct-modeling-data-dev
libocct-ocaf-dev
libocct-visualization-dev
libgmp-dev
libmpfr-dev
libxml2-dev
libeigen3-dev
Note that with OCCT 7.9 we no longer need to use our own fork.
- Create a build directory within the IfcOpenShell checkout and move into it
mkdir build
cd build
- Give the command (replacing
/home/bouncer/IfcOpenShell-0.8.0as necessary) to configure the build without Python bindings:
cmake -DCMAKE_INSTALL_PREFIX=/home/bouncer/IfcOpenShell-0.8.0 -DBUILD_SHARED_LIBS=ON -DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu -DOCC_INCLUDE_DIR=/usr/include/opencascade -DCOLLADA_SUPPORT=OFF -DHDF5_SUPPORT=OFF -DBUILD_IFCPYTHON=OFF -DCGAL_INCLUDE_DIR=/usr/include -DGMP_INCLUDE_DIR=/usr/include -DMPFR_INCLUDE_DIR=/usr/include -DGMP_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu -DMPFR_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu -DJSON_INCLUDE_DIR=/usr/include -DEIGEN_DIR=/usr/include/eigen3 ../cmake
- Install
make -j 8
make install