|
|
@ -19,7 +19,7 @@ Having a 'git' package installed is the minimal requirement, but some sort of gi
|
|
|
|
The code resides here: https://github.com/DFHack/dfhack
|
|
|
|
The code resides here: https://github.com/DFHack/dfhack
|
|
|
|
|
|
|
|
|
|
|
|
If you just want to compile DFHack or work on it by contributing patches, it's quite enough to clone from the read-only address::
|
|
|
|
If you just want to compile DFHack or work on it by contributing patches, it's quite enough to clone from the read-only address::
|
|
|
|
|
|
|
|
|
|
|
|
git clone git://github.com/DFHack/dfhack.git
|
|
|
|
git clone git://github.com/DFHack/dfhack.git
|
|
|
|
cd dfhack
|
|
|
|
cd dfhack
|
|
|
|
git submodule init
|
|
|
|
git submodule init
|
|
|
@ -47,7 +47,7 @@ To build Stonesense, you'll also need OpenGL headers.
|
|
|
|
Build
|
|
|
|
Build
|
|
|
|
=====
|
|
|
|
=====
|
|
|
|
Building is fairly straightforward. Enter the ``build`` folder and start the build like this::
|
|
|
|
Building is fairly straightforward. Enter the ``build`` folder and start the build like this::
|
|
|
|
|
|
|
|
|
|
|
|
cd build
|
|
|
|
cd build
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE:string=Release -DCMAKE_INSTALL_PREFIX=/home/user/DF
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE:string=Release -DCMAKE_INSTALL_PREFIX=/home/user/DF
|
|
|
|
make install
|
|
|
|
make install
|
|
|
@ -56,7 +56,7 @@ Obviously, replace the install path with path to your DF. This will build the li
|
|
|
|
along with the normal set of plugins and install them into your DF folder.
|
|
|
|
along with the normal set of plugins and install them into your DF folder.
|
|
|
|
|
|
|
|
|
|
|
|
Alternatively, you can use ccmake instead of cmake::
|
|
|
|
Alternatively, you can use ccmake instead of cmake::
|
|
|
|
|
|
|
|
|
|
|
|
cd build
|
|
|
|
cd build
|
|
|
|
ccmake ..
|
|
|
|
ccmake ..
|
|
|
|
make install
|
|
|
|
make install
|
|
|
@ -96,15 +96,15 @@ If you are building on 10.6, please read the subsection below titled "Snow Leopa
|
|
|
|
4. Install dependencies
|
|
|
|
4. Install dependencies
|
|
|
|
|
|
|
|
|
|
|
|
Option 1: Using MacPorts:
|
|
|
|
Option 1: Using MacPorts:
|
|
|
|
|
|
|
|
|
|
|
|
* `Install MacPorts <http://www.macports.org/>`_
|
|
|
|
* `Install MacPorts <http://www.macports.org/>`_
|
|
|
|
* Run ``sudo port install gcc45 +universal cmake +universal git-core +universal``
|
|
|
|
* Run ``sudo port install gcc45 +universal cmake +universal git-core +universal``
|
|
|
|
This will take some time—maybe hours, depending on your machine.
|
|
|
|
This will take some time—maybe hours, depending on your machine.
|
|
|
|
|
|
|
|
|
|
|
|
At some point during this process, it may ask you to install a Java environment; let it do so.
|
|
|
|
At some point during this process, it may ask you to install a Java environment; let it do so.
|
|
|
|
|
|
|
|
|
|
|
|
Option 2: Using Homebrew:
|
|
|
|
Option 2: Using Homebrew:
|
|
|
|
|
|
|
|
|
|
|
|
* `Install Homebrew <http://brew.sh/>`_ and run:
|
|
|
|
* `Install Homebrew <http://brew.sh/>`_ and run:
|
|
|
|
* ``brew tap homebrew/versions``
|
|
|
|
* ``brew tap homebrew/versions``
|
|
|
|
* ``brew install git``
|
|
|
|
* ``brew install git``
|
|
|
@ -153,12 +153,12 @@ Snow Leopard Changes
|
|
|
|
====================
|
|
|
|
====================
|
|
|
|
|
|
|
|
|
|
|
|
1. Add a step 6.2a (before Install XML::LibXSLT)::
|
|
|
|
1. Add a step 6.2a (before Install XML::LibXSLT)::
|
|
|
|
In a separate Terminal window or tab, run:
|
|
|
|
In a separate Terminal window or tab, run:
|
|
|
|
``sudo ln -s /usr/include/libxml2/libxml /usr/include/libxml``
|
|
|
|
``sudo ln -s /usr/include/libxml2/libxml /usr/include/libxml``
|
|
|
|
|
|
|
|
|
|
|
|
2. Add a step 7a (before building)::
|
|
|
|
2. Add a step 7a (before building)::
|
|
|
|
In <dfhack directory>/library/LuaTypes.cpp, change line 467 to
|
|
|
|
In <dfhack directory>/library/LuaTypes.cpp, change line 467 to
|
|
|
|
``int len = strlen((char*)ptr);``
|
|
|
|
``int len = strlen((char*)ptr);``
|
|
|
|
|
|
|
|
|
|
|
|
Yosemite Changes
|
|
|
|
Yosemite Changes
|
|
|
|
================
|
|
|
|
================
|
|
|
@ -183,7 +183,7 @@ You will need some sort of Windows port of git, or a GUI. Some examples:
|
|
|
|
The code resides here: https://github.com/DFHack/dfhack
|
|
|
|
The code resides here: https://github.com/DFHack/dfhack
|
|
|
|
|
|
|
|
|
|
|
|
If you just want to compile DFHack or work on it by contributing patches, it's quite enough to clone from the read-only address::
|
|
|
|
If you just want to compile DFHack or work on it by contributing patches, it's quite enough to clone from the read-only address::
|
|
|
|
|
|
|
|
|
|
|
|
git clone git://github.com/DFHack/dfhack.git
|
|
|
|
git clone git://github.com/DFHack/dfhack.git
|
|
|
|
cd dfhack
|
|
|
|
cd dfhack
|
|
|
|
git submodule init
|
|
|
|
git submodule init
|
|
|
@ -241,7 +241,7 @@ Build types
|
|
|
|
variable: ``CMAKE_BUILD_TYPE``
|
|
|
|
variable: ``CMAKE_BUILD_TYPE``
|
|
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE:string=BUILD_TYPE
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE:string=BUILD_TYPE
|
|
|
|
|
|
|
|
|
|
|
|
Without specifying a build type or 'None', cmake uses the
|
|
|
|
Without specifying a build type or 'None', cmake uses the
|
|
|
|