Author Topic: HOWTO: compile linux version  (Read 2592 times)

Raven Poeffie

  • Hydlaa Resident
  • *
  • Posts: 58
  • Penguins will one day rule the world of Planeshift
    • View Profile
HOWTO: compile linux version
« on: July 05, 2006, 09:46:15 am »
Ok, while we're waiting for the easy version, here's how I install it:
[I use Ubuntu 6.06 Dapper Drake, but it should work for all distri.]

Ubuntu 6.06 Dapper Drake users, I recommend http://vaalnor.mine.nu/cvs.htm

Updated Wed 12 Juli

1. before deleting anything
Just follow the clean install backup guide:
Quote
It's highly recommended that you install the new package clean.

Things you can keep:
questnotes files in the data folder
shortcuts at data/options/shortcutcommands.xml
other options in there other than keys.xml or mouse.xml  (new file is controls.xml and mouse.xml; new format, so you can't carry over old ones)
logs in your logs folder
screenshots in your screenshots folder
also save the art folder

2. this guide is an addition to the manual here (copy the complete link):
http://planeshift.cvs.sourceforge.net/*checkout*/planeshift/planeshift/docs/compiling.html

3. first you need the right tools
Code: [Select]
sudo apt-get install jam curl subversionthree tools you'll need

DOWNLOAD FROM: http://www.nvidia.com/object/cg_toolkit.html
Code: [Select]
tar -xf [insert ^^ filename here]the nvidia toolkit; i used the Linux X86 one

4. "download sources"
No problems there..
5. "Updating Sources"
Code: [Select]
svn update -r 24890 cs
svn update -r 2046 cel
cvs -z3 update -dPC -D "2006-07-12 00:00:00 UTC" planeshift
Code: [Select]
ERROR? while "cvs -z3 update ..."
try moving to the planeshift folder first, try again:

cd planeshift
now do jam clean and jam -aq (could take some time.. drink a coffee or two)

6. Compile Sources:

Cal3D
Dont forget to go to the right directory: /home/user/development/cal3d
Code: [Select]
sudo apt-get install libtool[you'll need this one for the next four commands in the manual]
!! Always change "/users/" in the manual with the right username
Code: [Select]
ERROR? while "MAKE"
comment out the "all_libraries = @all_libraries@" as described
Code: [Select]
ERROR? while "MAKE INSTALL"
Always make install as superuser:

sudo make install

Crystal Space (CS)
Dont forget to go to the right directory: /home/user/development/cs
the two codeboxes are the same code, chose one
Code: [Select]
ERROR?
!! dont forget to change the "user"

export LD_LIBRARY_PATH=/home/[s]user[/s]/development/cal3d/src/cal3d/.libs/:$LD_LIBRARY_PATH
The jam -aq codes can take a long time... (drink another can of coffee)

You know what.. since I've been getting some problems, I'm giving up  :surrender: and i'm using another guide suitable for Ubuntu 6.06. If you continue it should work though.

Crystal Entity Layer (CEL)
Dont forget to go to the right directory: /home/user/development/cel
Code: [Select]
ERROR?
[do this in your CEL - folder if "echo $CRYSTAL" gives a void]
!! dont forget to change the "user"

export CRYSTAL=/home/[s]user[/s]/development/cel
Again, "jam -aq .." could take some time... (fix the coffee machine)

PlaneShift
Dont forget to go to the right directory: /home/user/development/planeshift
Same thing as before.. (take your time to go to the toilet)

Code: [Select]
OPTIONAL!
if you also want to build the server:
(becouse you probably already "jammed" the client)

jam -aq server
Code: [Select]
OPTIONAL!
if you also want to build the extra tools
(might give errors, some tools might not build)

jam -a
dont forget, both these options might take some time.

7. Art!
Quote
If you have previously downloaded a release package, you can simply copy over your art directory, everything in your data directory except for gui, and skip this step.

We are going to change our file but we won't update (at least, yet)
Goto http://psmirror.org/ and download the art [ http://www.psmirror.org/art.zip ] 200MB WARNING if you want the new art (recommended)
Delete the old folder (If you are really suspicious, make a backup :-s ) and replace it with the new one.

8. replacing old files
before logging on:
put your questnotes files back in the data folder
shortcuts back to data/options/shortcutcommands.xml
logs in your logs folder
screenshots in your screenshots folder

CONGRATULATIONS! we've got everything we need, try to run it now  :woot: [first run the setup]

you might want to create shortcuts for ./pssetup, ./psclient and ./psupdater
[try menu editors and "ln -s .." ]

PROBLEMS?
user/development/cs
export CEL=/home/user/development/cel
export CSCONFPATH=/home/user/development/cel
[li]http://img109.imageshack.us/img109/6557/error29rn.jpg[/li]
Unsolved. No 3D driver (look below for possible solutions) [I use a Geforce 6200]
[li]http://img86.imageshack.us/img86/5666/cswarnings6yj.jpg[/li]
Unsolved. Probably I dont even HAVE the gldrivers?
Possible solution: d/l "data" from somewhere else
[/list]

Optional: get the server running
Interesting, but let's get the game running first!

Now.. somehow I didnt get that working and other people did. If it doesnt, try the following method:
  • Get a .run file with all things we need:
Code: [Select]
wget http://xrl.us/psinduane[li]Activate the file in the dir you want the planeshift folder to be (777 could also be 755, 700 etc )[/li]
Code: [Select]
cd /[s]whereveryouwantto[/s]
chmod 777 [s]filename[/s].run
[li]./planeshift will be created, give permission[/li]
Code: [Select]
chmod -R ./planeshift[li]Copy your ART, DATA (and probably LOGS) folder mentioned in the guide above where you just placed the rest[/li]
Now It should work if you run pssetup
[li]Optional: Edit your menus to the new path and icons[/li]
[li]You might need to add the server ^^ to first problem above[/li]
[/list]

Other guides: http://vaalnor.mine.nu/cvs.htm for Ubuntu 6.06 Dapper Drake
« Last Edit: July 13, 2006, 09:48:23 am by Raven Poeffie »
.,;:!'"'!;:,.
FLAWA?

The Wandering Djinn

  • Hydlaa Citizen
  • *
  • Posts: 219
    • View Profile
Re: update, hurray! but still no linux version?
« Reply #1 on: July 05, 2006, 09:50:58 am »
I don't recall anyone promising to release the latest version of PlaneShift 0.3.015 for all 3 supported platforms at the same time...

...only that they would try to get the Linux and Mac OS X distros out sooner than happened in the update from 0.3.013 to 0.3.014

- running PlaneShift Mac OS X Tiger (10.4.11) Client, on an Apple iMac G5 2GHz PowerPC processor, 2GB DDR SDRAM, an ATI Radeon 9600 graphics card with 128MB VRAM, a 20-inch active-matrix LCD widescreen display, and a 250GB Serial ATA hard drive... so what's your excuse, huh?

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
Re: update, hurray! but still no linux version?
« Reply #2 on: July 05, 2006, 09:57:14 am »
afaik Xordan is away again if your that desperate follow these instructions and you should have a client in a couple of hours
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

Raven Poeffie

  • Hydlaa Resident
  • *
  • Posts: 58
  • Penguins will one day rule the world of Planeshift
    • View Profile
Re: update, hurray! but still no linux version?
« Reply #3 on: July 05, 2006, 10:00:44 am »
Isnt that the old version?

Btw.. what's the best way to clean my planeshift? Just deleting seems so .. rude.
.,;:!'"'!;:,.
FLAWA?

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
Re: update, hurray! but still no linux version?
« Reply #4 on: July 05, 2006, 10:05:04 am »
No that will give you a working 15 client and yes just delete all except the art dir just rename that
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

magpiewiseman

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: update, hurray! but still no linux version?
« Reply #5 on: July 05, 2006, 10:32:06 am »
Would using GooeyBuilder be an acceptable way of getting an up to date linux client ?

 -- magpie

Raven Poeffie

  • Hydlaa Resident
  • *
  • Posts: 58
  • Penguins will one day rule the world of Planeshift
    • View Profile
Re: HOWTO: compile linux version
« Reply #6 on: July 05, 2006, 11:06:12 am »
I'm updating this manual while I'm installing.. if there are any problems, post here or try asking on the IRC channel
.,;:!'"'!;:,.
FLAWA?

Morele

  • Traveller
  • *
  • Posts: 28
    • View Profile
Re: HOWTO: compile linux version
« Reply #7 on: July 05, 2006, 11:08:32 am »
I hate irony. 
I just came back to PS just over a week ago after having to put it off due to studies, it took me about three days to "fix" the problems with libc6 and assorted libraries, and as soon as I finish that, I'm informed that the server is down for an update!!   >:(

All that wouldn't be quite so bad, were it not for that fact that in the process of "fixing" the libraries, I compleaty brock my installation, so I can no longer compile. :@#\

Hopefully Xordan will take pity on those like me, and release the installer shortly. :(   If not, I may be able to get an Ubuntu CD from a friend on sunday, and I'll compleaty get rid of usless distro!  :'(
"I'm not really what I once was to you. I can't be."
"You are."
"I'm as much as I can be, that's all."
"Enough for me."

magpiewiseman

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: HOWTO: compile linux version
« Reply #8 on: July 05, 2006, 12:45:11 pm »
Cool, thanks so much for this guide :)

While I'm downloading the art, I've tried running the client and noticed that I only have localhost in my list of servers. Do I need to update a config file with something?

 -- magpie

Raven Poeffie

  • Hydlaa Resident
  • *
  • Posts: 58
  • Penguins will one day rule the world of Planeshift
    • View Profile
Re: HOWTO: compile linux version
« Reply #9 on: July 05, 2006, 12:56:01 pm »
I've got everything but somehow I cant run my own client nor setup :-s let's see if a reboot works for me.

I'll put it in my guide when I found the solution.

@magpie: try servers.xml
add http://laanx.fragnetics.com and port 7777

Port updated
« Last Edit: July 05, 2006, 01:02:02 pm by Raven Poeffie »
.,;:!'"'!;:,.
FLAWA?

magpiewiseman

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: HOWTO: compile linux version
« Reply #10 on: July 05, 2006, 01:02:27 pm »
I copied in from the old servers.xml file:

Code: [Select]
<serverlist>
    <server name="localhost" ip="localhost" port="13331" />
    <server name="Fragnetics" ip="laanx.fragnetics.com" port="7777" />
</serverlist>

Just to see whether I could see anything. The client's working fine having followed the instructions you set out, but I'm guessing the servers are down.

Thanks for all the help, though. It's ace just to see it running :-)

 -- magpie

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
Re: HOWTO: compile linux version
« Reply #11 on: July 05, 2006, 02:53:03 pm »
try sudo apt-get install nvidia-glx
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: HOWTO: compile linux version
« Reply #12 on: July 05, 2006, 03:13:21 pm »
yes, sudo apt-get install nvidia-glx should install the drivers.  To enable them,

sudo gedit /etc/X11/xorg.conf

locate the word "nv"

and replace it with "nvidia"

reboot

Raven Poeffie

  • Hydlaa Resident
  • *
  • Posts: 58
  • Penguins will one day rule the world of Planeshift
    • View Profile
Re: HOWTO: compile linux version
« Reply #13 on: July 07, 2006, 06:50:15 pm »
nvidia-glx is already the newest version and all "nv"-stuff are already nvidia. The only thing I found was:

   Device      "NVIDIA Corporation NV40? [Unknown nVidia Card]"
   Identifier   "NVIDIA Corporation NV40? [Unknown nVidia Card]"

I should change the nv40, no?
.,;:!'"'!;:,.
FLAWA?

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: HOWTO: compile linux version
« Reply #14 on: July 07, 2006, 08:05:43 pm »
No its ok for it to say that.  That is just an identification string.  It doesn't actually mean anything.

and you're sure taht

glxinfo | grep direct
 
says direct rendering is enabled?