diff --git a/Compile.rst b/Compile.rst index 3340fc97e..41f057e95 100644 --- a/Compile.rst +++ b/Compile.rst @@ -67,6 +67,8 @@ program. Mac OS X ======== +If you are building on 10.6, please read the subsection below titled "Snow Leopard Changes" FIRST. + 1. Download and unpack a copy of the latest DF 2. Install Xcode from Mac App Store 3. Open Xcode, go to Preferences > Downloads, and install the Command Line Tools. @@ -106,6 +108,21 @@ Mac OS X make make install + +Snow Leopard Changes +==================== + +1. Add a step 6.2a (before Install XML::LibXSLT):: + In a separate Terminal window or tab, run: + sudo ln -s /usr/include/libxml2/libxml /usr/include/libxml + +2. Add a step 7a (before building):: + In /library/LuaTypes.cpp, change line 467 to + int len = strlen((char*)ptr); + +3. After the whole thing is built and installed, edit the "dfhack" script in the DF directory and remove the line + export DYLD_FORCE_FLAT_NAMESPACE=1 + ======= Windows =======