Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.56 KB

Tpserver-cpp_Setup.mediawiki

File metadata and controls

54 lines (38 loc) · 1.56 KB

This page documents some ways of getting tpserver-cpp built.

Note: libtprl is no longer used by tpserver-cpp, the instructions below should be updated.

mithro's setup

Make sure you have the following dependencies installed before building

apt-get install autoconf automake libtool build-essential g++ git-core libncurses5-dev guile-1.8-dev boost-build libboost-dev

The follow is how mithro sets up his server, YMMV.

git clone git://git.thousandparsec.net/git/libtprl.git
cd libtprl
./autogen.sh
./configure --prefix=/opt/tpserver-cpp
make
sudo make install

cd ..
git clone git://git.thousandparsec.net/git/tpserver-cpp.git
cd tpserver-cpp
./autogen.sh
PKG_CONFIG_PATH=/opt/tpserver-cpp/lib/pkgconfig ./configure --prefix=/opt/tpserver-cpp
make
sudo make install

mkdir /opt/tpserver-cpp/etc
cp quickstart-* /opt/tpserver-cpp/etc
cd /opt/tpserver-cpp/bin
./tpserver-cpp -C ../etc/quickstart-<gametype>

Building on Mac OS X with Fink

Start with tpserver-cpp version 0.5.1 or later. Many fixes where made for Mac OS X in 0.5.1.

Guile 1.6 or 1.8 must be installed before configuring. Instructions for using version 1.8 are shown here.

fink install guile18 guile18-dev

Since Guile depends on readline, that package will automatically be installed by Fink. By default, the makefile will use the built-in BSD version, which is incompatible. Setting the following environment will tell the configure script of libtprl where to look for the correct headers.

export CPPFLAGS=-I/sw/include