For some reason building from git fails with this error:
make[2]: *** No rule to make target `../../library/xml/codegen.pl', needed by `../../library/include/df/static.inc'. Stop.
make[1]: *** [library/CMakeFiles/generate_headers.dir/all] Error 2
make: *** [all] Error 2
You don't have all the code. Use this first:
git submodule init
git submodule update
This will pull in a bunch of things dfhack depends on or includes (like the memory layout or stonesense). When you pull new code from the main dfhack repo, make sure to run 'git submodule update' too. Again, to pull any new changes to the other stuff.
My cmake line.
cmake ../.. -DCMAKE_BUILD_TYPE="Release" -DDFHACK_INSTALL="debian" -DBUILD_DFHACK_C_BINDINGS=ON -DBUILD_DFHACK_DEVEL=ON -DBUILD_DFHACK_DOXYGEN=OFF -DBUILD_DFHACK_EXAMPLES=OFF -DBUILD_DFHACK_PLAYGROUND=ON -DBUILD_DFHACK_MINE=ON -DBUILD_DFHACK_PYTHON_BINDINGS=ON
This is ... just plain wrong. With the exception of "CMAKE_BUILD_TYPE", every single setting in this line was phased out many months, or even years ago. Please, read the
Compile document first. Use ccmake too, because that actually shows the available options.