This might work: Edit build_darwinx.sh. You might want to change P, CC and CXX. Execute ./build_darwinx.sh