From 5da294e007ab48a99a9242123e7ad5598ba09d51 Mon Sep 17 00:00:00 2001 From: Timothy Collett Date: Thu, 14 Mar 2013 14:42:15 -0400 Subject: [PATCH] Add info to Compile document for building on Snow Leopard --- Compile.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 =======