Skip to content

Compiling on Windows

RadHazard edited this page Nov 1, 2014 · 5 revisions

Ah yes, Windows. The bane of software developers everywhere. Being the masochist I am, I shall document my foray into getting webfort to build on Windows

Step 1: Prerequisites

  • Git - You need Git to download the repositories.
  • Perl - You need Perl to build dfhack. I recommend version 5.14 because of a dependency problem.
  • CMake - You also need this to build dfhack.
  • Visual Studio 2010 - Another thing for the building of the dfhack.
  • Boost - You probably need this because CMake yelled at me until I installed it.
  • Probably some other stuff I'm forgetting as well

With that installed, you need another dependency for perl:

Open up a windows command prompt Type ppm install XML-LibXML

Step 2: Build DFHack

Cloning

Clone dfhack somewhere convinient. If you don't know how to do it, open up Git Bash (installed along with Git) and type the following commands:

cd <insert-path-to-wherever-you-want-to-store-your-git-repos>
git clone https://github.com/DFHack/dfhack.git

Get the proper version and dependencies. Type the following commands:

cd dfhack
git checkout 0.34.11-r5
git submodule update --init --recursive

Building

Navigate to <wherever-you-put-dfhack>\dfhac* k\build

  • Run generate-MSVC-minimal.bat. If it complains about ruby, try editing the .bat file. Add -DDL_RUBY=0 at the end of the last command in the file.
  • Run build-release.bat
  • Sit and twiddle thumbs for a while (important!)

Step 3: Webfort

Clone webfort in the same folder as DFHack (or somewhere else if you feel like being crazy). Type the following commands:

cd <insert-the-same-path-as-before-unless-you-feel-crazy-or-something-bah-what-do-I-care>
git clone https://github.com/Ankoku/df-webfort.git

To be continued...

Clone this wiki locally