PlaneShift

Support => Linux Specific Issues => Topic started by: RalphCampbell on November 26, 2010, 03:05:29 am

Title: Notes on getting PS client/server compiled and running on Fedora 13
Post by: RalphCampbell on November 26, 2010, 03:05:29 am
I'm running Fedora 13, Nvidia GTX295, AMD Phenom(tm) II X4 955 Processor.

I was able to compile cal3d, cs, and planeshift according to
https://planeshift.svn.sf.net/svnroot/planeshift/trunk/docs/compiling.html
but I had a few minor corrections to the instructions.

For CS (svn -r 35203), I needed to edit
plugins/mesh/animesh/animnode/ragdoll/ragdoll.cpp
because "index" was undefined since #define CS_DEBUG was not defined.
(see RagdollAnimNode::SetBodyChainState()).

For planeshift (svn -r 6449),
I needed to add the following line to the instructions for creating
the psserver mysql database:
mysql> connect planeshift;
mysql> source create_all.sql;
mysql> quit
Oh, I see this has been added to the planeshift/docs/compiling.html but not
https://planeshift.svn.sf.net/svnroot/planeshift/trunk/docs/compiling.html

./configure wasn't finding mysqlclient.
I see that Fedora has moved mysql.h to /usr/include/mysql and
libmysqlclient.so to /usr/lib64/mysql.
I added /usr/lib64/pkgconfig/mysqlclient.pc:

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64/mysql
includedir=/usr/include/mysql

Name: mysqlclient
Description: C library interface to MYSQL
Version: 5.1
Libs: -L${libdir} -lmysqlclient
Cflags: -I${includedir}

I started the psserver and then I tried starting pawseditor.
It tried to open base/client_base.zip which wasn't in the SVN art repo.
I copied it from the downloadable binary distribution of PlaneShift.

I started the psserver and then I tried starting psclient.
At first I got a lot of missing file errors. Then I creaded an art
directory that was a merge of the SVN art directory and the art directory
from the downloadable binary distribution of PlaneShift.
I also edited psclient.cfg to "Planeshift.GUI.Skin.Selected = elves.zip"
Now it starts OK but all I see is the Login window with "Wait".

I figured out the problem. A bunch of GUI files the loginwindow.xml references
are missing and the default background color and button texts are the same.
I edited data/gui/loginwindow.xml to use
color 100,100,100 instead of 255,255,255 and then I could see the text
against the white background and login as guest/guest.

I saw several WordNet library errors when starting the server.
I created the directory data/dict/ by copying the WordNet-3.0/dict files.
I think the docs/compiling.html file should be updated to mention this.