Tpserver-cpp Setup

From Thousand Parsec Wiki
Jump to: navigation, search

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://
cd libtprl
./configure --prefix=/opt/tpserver-cpp
sudo make install

cd ..
git clone git://
cd tpserver-cpp
PKG_CONFIG_PATH=/opt/tpserver-cpp/lib/pkgconfig ./configure --prefix=/opt/tpserver-cpp
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
Personal tools