-
Notifications
You must be signed in to change notification settings - Fork 1
compiling
a quick recording of what it took to compile and run webfort on my Ubuntu 14.04 machine, 64bit. Fair warning: this will take a significant chunk of time.
webfort depends on some unpackaged dependencies:
-
Dwarf Fortress 0.34.11 (download a fresh copy, just for webfort)
-
dfhack 0.34.11-r5
-
nopoll 0.2.6.b130
All of these need to be 32-bit, because Dwarf Fortress is 32-bit. We'll install all of them in a 32-bit lxc container, because Ubuntu's multiarch support isn't so great.
First step, make the container.
$ sudo lxc-create -t ubuntu -n my32bitbox -- --bindhome <USERNAME> -a i386
boot into it, using the credentials of your current user
$ sudo lxc-start -n my32bitbox
then install all this
# apt-get install curl git build-essential cmake libsdl1.2-dev libsdl-image1.2 libsdl-ttf2.0-0 libgtk2.0-0 libjpeg62 libglu1-mesa libopenal1 libxml-libxml-perl libxml-libxslt-perl libssl-dev
then get Dwarf Fortress. DF needs an extra spriteset and init to be properly configured, but I didn't do that at the time of writing so add your own steps.
$ curl http://www.bay12games.com/dwarves/df_34_11_linux.tar.bz2 | tar jxf -
then build dfhack
$ git clone http://github.com/DFHack/dfhack.git
$ cd dfhack
$ git checkout 0.34.11-r5
$ git submodule update --init --recursive
$ mkdir build && cd build
$ cmake .. -DCMAKE_BUILD_TYPE:string=Release -DCMAKE_INSTALL_PREFIX=$PWD/../../df_linux
$ make && make install
$ cd ../..
then build nopoll
$ curl https://no-poll.googlecode.com/files/nopoll-0.2.6.b130.tar.gz | tar zxf -
$ cd nopoll-0.2.6.b130
$ ./configure
$ make
$ cd ..
then build webfort.
$ make
$ make install
and then try running dfhack from your new df install. chances are you come across this: https://github.com/DFHack/dfhack/blob/master/Compile.rst#fixing-the-libstdc-version-bug So just follor the fix there
you'll need
- libuv 1.0
- wslay
- not nopoll
libuv:
$ curl https://github.com/joyent/libuv/archive/v1.0.0-rc2.tar.gz | tar xvf -
$ cd libuv*
$ sh autogen.sh
$ ./configure
$ make
wslay
$ git clone https://github.com/tatsuhiro-t/wslay.git
$ cd wslay
$ autoreconf -i
$ automake
$ autoconf
$ ./configure
$ make