Skip to content

Compilation FAQ

Ruben Taelman edited this page Oct 11, 2022 · 2 revisions

Compiling on Mac

The default Mac clang compiler seems to be unable to compile this project. It's better to use the llvm compiler, which can be installed from Homebrew.

Your .bash_profile should contain the following:

export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/include
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib

export PATH="/usr/local/opt/llvm/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/llvm/lib -L/usr/local/opt/zlib/lib -lz"
export CPPFLAGS="-I/usr/local/opt/llvm/include -I/usr/local/opt/zlib/include"

Possible diff in the cmake file needed:

-target_link_libraries(ostrich ${ZLIB_LIBRARIES})
+target_link_libraries(ostrich ZLIB::ZLIB)
Clone this wiki locally