Author Topic: Linux Howto  (Read 34736 times)

jagator55

  • Hydlaa Resident
  • *
  • Posts: 52
    • View Profile
Linux Howto
« on: March 17, 2003, 12:12:34 am »
Click here for a more up to date howto.

*** Planeshift from CVS on Linux howto***

//first off make sure you have the current
  release of the following programs:

libogg
libcurl
automake
libtool
jam-2.5rc1

also you will need to get the Windows MB
release some art files aren\'t included in the CVS download.

//Now you need to download Crystal Space, cel, and PlaneShift
create a dir to download your files to (example) mkdir CVS
now switch to that dir (example) cd CVS
YOU are ready to start downlaoding. Follow the steps below

[Step 1: Crystal Space]
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal login
(press enter when prompted for a password)
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal co -rPRE_THING_FACTORIES CS
cd CS
./configure --enable-debug
make -k all
./configure --prefix=/the/path/to/CS
export CRYSTAL=/the/path/to/CS
//To make you life easier you should automate the setting of this
   variable. I recommend putting this command in your .bashrc file
 (in your home directory), so that it is called each time you log in.

[Step 2: CEL]
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cel login
(press enter when prompted for a password)
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cel co -D 2003-05-16 cel
cd cel
./configure
jam
export CEL=/the/path/to/cel
export CSCONFPATH=$CEL
//I recommend putting the above two commands in your .bashrc file

[Step 3: Planeshift]
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/planeshift login
(press enter when prompted for a password)
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/planeshift co -rMB010  planeshift
cd planeshift
./autogen.sh
./configure
jam

// You need to copy the art dir from the windows version into the planshift dir.
   also, I had to copy the following files from the .tar package
   sndogg.so to /planeshift and csjnging.so to /CS
   
if you have any problems you can e-mail me jagator55@yahoo.com
-Robbie
« Last Edit: November 13, 2003, 06:51:07 pm by jagator55 »

ifog

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Good howto :
« Reply #1 on: March 17, 2003, 12:29:03 am »

jagator55

  • Hydlaa Resident
  • *
  • Posts: 52
    • View Profile
Extra: and a SH script
« Reply #2 on: March 17, 2003, 02:52:07 am »
In your home folder create a folder called bin. Open a text edidor and type the following lines:

#!/bin/sh
cd /path/to/planeshift
./updater
./psclient

Now save it as psclient in your bin folder.

When you type psclient in the konsole or from \"run command...\" it will run the updater then planeshift.

You can also create a shortcut on your desktop. In KDE right click on your desktop then, click \"Create New\" followed by \"Link to Application...\". Choose your Icon (I used the planeshift icon from the packaged tar release) replace \"Link to Application\" with \"PlaneShift\". Now, click on the Execute tab and where it says \"Command:\" type psclient. Finally, where ckeck the box to \"Run in terminal\" and click ok.

Have fun
-Robbie

ifog

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #3 on: March 19, 2003, 12:39:19 am »
\" also, I had to copy the following files from the .tar package
sndogg.so to /planeshift and csjnging.so to /CS \"

To mix somes binaries build on your system with somes binaries build on another system (with differents libraries , etc ) in the same program can fail .
For example , on the last Slackware , the ldd of the csjnging.so provided in the tar archive is :

ldd ./csjngimg.so
        *********
        libstdc++.so.5 => not found
        *********

To avoid this pb , you could provide the required libraries before the Crystal compilation .

For csjnging.so , you should install libmng first :
Download it here :
http://www.libmng.com/downloadpublic.html
./configure
make
make install
ldconfig
and then compil Crystal

(but maybe it\'s useless -see Jorrit\'comment here about jng format :
http://sourceforge.net/forum/forum.php?thread_id=813268&forum_id=2008 )

karlnapf_ger

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #4 on: March 19, 2003, 02:13:24 pm »
i have a question about cel
 i geht (beside some warnings this error when compiling
(the configure script work perfectly)

blpython/blcel.cpp: In function `PyObject*
   _wrap_iPolygonTexture_GetPolygon(PyObject*, PyObject*)\':
blpython/blcel.cpp:7433: no matching function for call to `iPolygonTexture::
   GetPolygon()\'


the code is lates cvs but i ALSO get this error with the first release package from the cel page
so ....i just dont understand that everybody else gets no error with this...because i believe this is a code error ....but it might also be python -----so with wich version do you all compile this?


thank you

karlnapf

jagator55

  • Hydlaa Resident
  • *
  • Posts: 52
    • View Profile
Hey....
« Reply #5 on: March 19, 2003, 06:07:17 pm »
I get the pyrhon faiked error to, i just ignore because PS still works.  :)
Upgrading to the latest python won\'t fix it.

-Robbie

karlnapf_ger

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #6 on: March 20, 2003, 11:23:16 am »
well
ok :)
this work

jagator55

  • Hydlaa Resident
  • *
  • Posts: 52
    • View Profile
(No subject)
« Reply #7 on: March 20, 2003, 05:27:37 pm »
Glad it works for  you. Llet me know if you have aany more errors.

-Robbie

Atanor

  • Hydlaa Resident
  • *
  • Posts: 181
    • View Profile
(No subject)
« Reply #8 on: March 21, 2003, 03:57:17 pm »
a Linux package will soon be available.

jagator55

  • Hydlaa Resident
  • *
  • Posts: 52
    • View Profile
(No subject)
« Reply #9 on: March 24, 2003, 05:39:32 am »
bump

pako

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #10 on: March 24, 2003, 10:58:02 pm »
hi sorry for posting another thread ..
http://www.planeshift3d.com/forum/thread.php?threadid=3117&boardid=17&styleid=2

is /the/path/to/cs the path where I have my source in ?
(I didnt use the --prefix option)

same thing for cel..
is /the/../cel the path where I have my source in ? (where I compiled it..)

do I have to do something else than deleting my cs,cel,ps folders to uninstall them ? (I want to  make another try following the How-To from the start)

and the libcurl .. never heard of it is this the libcurl I need ?

thx pako

jagator55

  • Hydlaa Resident
  • *
  • Posts: 52
    • View Profile
(No subject)
« Reply #11 on: March 26, 2003, 07:01:39 am »
Quote
Originally posted by pako
hi sorry for posting another thread ..
http://www.planeshift3d.com/forum/thread.php?threadid=3117&boardid=17&styleid=2

is /the/path/to/cs the path where I have my source in ?
(I didnt use the --prefix option)

same thing for cel..
is /the/../cel the path where I have my source in ? (where I compiled it..)

do I have to do something else than deleting my cs,cel,ps folders to uninstall them ? (I want to  make another try following the How-To from the start)

and the libcurl .. never heard of it is this the libcurl I need ?

thx pako


yes it is the source path and libcurl can be found here .

pako

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #12 on: March 26, 2003, 03:28:47 pm »
another problem...

>/ You need to copy the art dir from the windows version into the planshift dir.
>also, I had to copy the following files from the .tar package
>sndogg.so to /planeshift and csjnging.so to /CS


I dont have a file with the name \"csjnging.so\" in my ps tar..
only a file with the name \"csjngimg.so\"...

could someone mail it to me, or upload it.. ?

HunterCo

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
Copying from windows...
« Reply #13 on: March 28, 2003, 12:48:56 am »
Quote
// You need to copy the art dir from the windows version into the planshift dir.
   also, I had to copy the following files from the .tar package
   sndogg.so to /planeshift and csjnging.so to /CS


What if one does not have Window$?
I tried to download the multi-parts of the windows install and join them together using cat (file1) (file2) > (FinalFinename) in an attempt to access the exe like a zip file (it\'s worked for me before) but that didn\'t work... I got errors.

So, is there any way of doing this on a 100% linux system? Cause I sure as heck wouldn\'t want to waste any hard drive space on a piece of crap OS ;)

ifog

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
the art directory :
« Reply #14 on: March 28, 2003, 01:10:05 am »
HunterCo :

http://prdownloads.sourceforge.net/planeshift/planeshift-0.2.6.tar.bz2?download

You don\'t need a Windows to build and play this game (i don\'t have it too )  :=)