196
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: September 13, 2011, 09:01:00 pm »Hi Guys, really struggling to compile on Arch Linux.Hello
Please help

Stonesense is now a plugin for DFHack, so you need to build it as part of it. First, if you're building on a 64bit Arch, you *need* multilib gcc/g++. (In general, distros with no 32bit support are useless here)
Here's how to do it (starting in some kind of 'projects' directory):
Code: [Select]
git clone git://github.com/peterix/dfhack.git # read only repo @ https://github.com/peterix/dfhack
cd dfhack # step into the new directory
git submodule init # set up the stonesense submodule
git submodule update # and fetch it from read only repo @ https://github.com/peterix/stonesense
cd build
ccmake .. # manual version of cmake. It's important to set CMAKE_INSTALL_PREFIX to a DF folder and to enable building stonesense. first 'configure', then 'generate'. You need to rerun 'configure' after any changes to the options.
make
make install # install to whatever place you set CMAKE_INSTALL_PREFIX to beBy default, the build system has its own pre-built copy of the allegro 5 libraries. After you enable building stonesense and 'configure', some more options should show up in ccmake. The one usable on Linux is STONESENSE_INTERNAL_SO. Setting this to 'OFF' will make the build system use your system allegro 5 libs. This isn't normally needed, but if you want to work on stonesense and use the debug version of allegro, you'll have to do it. lib32-allegro5 is in the AUR.
