Building luabind on Mac OS X
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | $ # If you have used the Homebrew recipes -- they don't work $ brew uninstall lua $ brew uninstall bjam $ # The current version of LuaBind doesn't compile with Clang. $ Fortunately the GitHub HEAD does. $ git clone https://github.com/luabind/luabind.git $ # LuaBind currently does not compile with Lua 5.2 $ wget $BOOST_URL $ wget $LUA51_URL $ wget $LUA_URL $ cd /where/is/boost $ chmod a+x tools/build/v2/bootstrap.sh $ chmod a+x tools/build/v2/engine/build.sh $ ./bootstrap.sh toolset=darwin $ cp bjam /usr/local/bin $ export BOOST_ROOT=/where/is/your/boost $ export BOOST_BUILD_PATH=/where/is/your/boost/tools/build/v2 $ cd /where/is/lua $ make macosx $ # We need these because LuaBind hard-codes the non-standard directory names $ ln -s src include $ export LUA_PATH=/where/is/lua $ cd /where/is/luabind $ bjam toolset=darwin link=static |