File tree Expand file tree Collapse file tree
src/ifcopenshell-python/docs/ifcopenshell Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,6 +183,8 @@ $ git clone --recurse-submodules https://github.com/IfcOpenShell/IfcOpenShell.gi
183183``` {shell}
184184$ cd /path/to/IfcOpenShell
185185$ mkdir build && cd build
186+ # set library flags
187+ $ export LDFLAGS="$LDFLAGS -Wl,-flat_namespace,-undefined,suppress"
186188$ cmake ../cmake
187189 -DPYTHON_EXECUTABLE=/opt/homebrew/bin/python3.10 \
188190 -DPYTHON_LIBRARY=/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib \
@@ -195,8 +197,8 @@ $ cmake ../cmake
195197 -DHDF5_LIBRARY_DIR=/opt/homebrew/lib/ \
196198 -DHDF5_INCLUDE_DIR=/opt/homebrew/include/ \
197199 -DCOLLADA_SUPPORT=0
198- # Replace X with number of CPU cores, which you can get with sysctl -n hw.ncpu
199- $ make -j X
200+ # `sysctl -n hw.ncpu` returns the number of cpu cores on macOS
201+ $ make -j$(sysctl -n hw.ncpu)
200202```
201203
202204Note: Make sure to compile using the XCode provided Apple Clang compiler, installed with `xcode-select --install
Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ GCC (4.7 or newer) or Clang (any version) is required.
188188
189189 $ cd /path/to/IfcOpenShell
190190 $ mkdir build && cd build
191+ # set library flags
192+ $ export LDFLAGS="$LDFLAGS -Wl,-flat_namespace,-undefined,suppress"
191193 $ cmake ../cmake
192194 -DPYTHON_EXECUTABLE=/opt/homebrew/bin/python3.10 \
193195 -DPYTHON_LIBRARY=/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib \
@@ -200,8 +202,8 @@ GCC (4.7 or newer) or Clang (any version) is required.
200202 -DHDF5_LIBRARY_DIR=/opt/homebrew/lib/ \
201203 -DHDF5_INCLUDE_DIR=/opt/homebrew/include/ \
202204 -DCOLLADA_SUPPORT=0 \
203- # Replace X with number of CPU cores, which you can get with sysctl -n hw.ncpu
204- $ make -j X
205+ # `sysctl -n hw.ncpu` returns the number of cpu cores on macOS
206+ $ make -j$(sysctl -n hw.ncpu)
205207
206208Compiling on Windows (Visual Studio)
207209------------------------------------
You can’t perform that action at this time.
0 commit comments