Skip to content

Building on Linux

sebjf edited this page Mar 24, 2025 · 6 revisions

Noble (24.04)

  1. 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.

  1. Create a build directory within the IfcOpenShell checkout and move into it
mkdir build
cd build
  1. Give the command (replacing /home/bouncer/IfcOpenShell-0.8.0 as 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
  1. Install
make -j 8 
make install
Clone this wiki locally