From Thousand Parsec Wiki
Jump to: navigation, search

Parsek is a free and open source game client for playing 4X (explore, expand, exploit and exterminate) strategy games created by Thousand Parsec project. Parsek is designed for KDE 4 desktop and should run at least on Linux, Mac OS X and Windows. Here you will find description of Parsek and some info on how to get started with development.


What is Parsek?

Parsek is one of the clients for Thousand Parsec games. It is designed to run in KDE 4 desktop environment. Like most of the KDE 4 applications, Parsek is programmed in C++ and uses Qt 4 and KDE 4 libraries. In addition it also uses libtpproto-cpp library, which provides functions needed to communicate with Thousand Parsec game servers.

Preparing for development

KDE 4 development environment

First you will need to set up KDE 4 development environment. This means that you get Qt 4.3 and kdelibs installed. The complete process is described on this web page.

libtpproto-cpp library

Before trying to compile Parsek you will also need to compile and install libtpproto-cpp library. Download it from here or get the latest source code from the Git repository.

Get Parsek source code

The source code for Parsek is available in Subversion (SVN) repository of KDE project. To get the source code for Parsek, run the command:

svn co svn://

You use this command only for the first time you are getting the source code. Later, to update to the latest version of source code, you run:

svn update

from within the parsek folder.

Compiling Parsek

Now that you have development environment ready and source code on your computer it is time to compile Parsek. For this it is recommended that you first create a separate folder for building. Then you move into this folder and issue this command:

cmake -DCMAKE_BUILD_TYPE=debugfull /home/kde-devel/parsek

Be sure to replace /home/kde-devel/parsek with the actual path to Parsek source code folder. After the cmake command finishes (make sure it finds everything needed) it is time to actually run the compilation by running the command:


from within the build folder. After make finishes successfully you should have the parsek binary in the build folder. Try to run it:

Personal tools