Compiling under Linux (please Pin this Message)

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
User avatar
andenixa
Grandmaster Poster
Posts: 105
Joined: Tue Nov 09, 2010 1:33 am

Compiling under Linux (please Pin this Message)

Post by andenixa » Sun Oct 21, 2012 6:13 am

After weeks of struggling I have decided to throw a simple HowTo in compiling under Linux.

0) install c++ compiler and supplement libraries

sudo apt-get install libssl-dev build-essential zlibc zlib-bin libidn11-dev libidn11

1) you will need a subversion package, if you use Ubuntu it would look like:

sudo apt-get install subversion

2) cd to your home dir (just type cd) and make a directory like:

mkdir polsvn

3) checkout the SVN repository (RL from #pol IRC recommends 572 release)

svn checkout -r 572 https://polserver.svn.sourceforge.net/svnroot/polserver/trunk polsvn

4) compile STLport5 (actually you can skip that now)

cd polsvn/lib/STLport5
sudo chmod u+x configure
./configure
./make


5) compile pol

cd polsvn/pol-core

6) build 32bit version of pol

sudo chmod u+x buildcore32
./buildcore32


7) done, now check polsvn/pol-core/dist

You should see files like:

pol-linuxbin-099-2012-10-21-ubuntu-dynamic.tar.gz
pol-linuxbin-099-2012-10-21-ubuntu.tar.gz


8) If you need MySQL you need to remove the comment from export USE_MYSQL=1 before compiling and use
dynamic version: pol-linuxbin-099-2012-10-21-ubuntu-dynamic.tar.gz
Also With installed MySQL a static build works also. (Tourley's comment)

pol-linuxbin-099-2012-10-21-ubuntu.tar.gz
Last edited by andenixa on Sun Oct 21, 2012 8:06 am, edited 3 times in total.

Turley
POL Developer
Posts: 653
Joined: Sun Feb 05, 2006 4:45 am

Re: Compiling under Linux (please Pin this Message)

Post by Turley » Sun Oct 21, 2012 7:49 am

Stlport is not used, so simply skip compilation.
And use the latest revision, or bugs will never be found :p

For mysql its not enough to use a dynamic build. You need to remove the comment from
export USE_MYSQL=1
With installed MySQL a static build works also.

Post Reply