Author Topic: Stupid error while compiling  (Read 2470 times)

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Stupid error while compiling
« Reply #15 on: July 07, 2009, 08:02:03 am »
you could try going with software but i doubt.
open psclient.cfg search openal and change with software.
i'd really use gdb.
do gdb ./psclient then when it crashes do bt and bt full and post it

Oromir

  • Traveller
  • *
  • Posts: 20
  • In game now as Oromenci.
    • View Profile
Re: Stupid error while compiling
« Reply #16 on: July 07, 2009, 01:03:53 pm »
I run this on Arch Linux reliably, and updated both the CS and cal3d AUR pkgbuild scripts. However, the CS build script does not account for the sticky road bug. To remove that, you need to run configure, then edit the jamconfig file, and change optimisation to -O0.

To install PS properly, first off, install the downloadable linux binary package, which will install itself into /opt. DO NOT RUN IT.

Then build cal3d from the pkgbuild, it will install into /usr/local.

Then manually build and install CS -- you need to install system wide, so remove the switch that tells it what dir to install to when running configure, then edit jamconfig file and change line for optimisation (cannot remember the exact key) to -O0 (it will have -O3 in it beforehand) before running make.

Then download PS client from svn, and build it in your home dir somewhere as user, but DO NOT install it.

Copy the psclient binary into /opt/PlaneShift, replacing the old client binary. If you did this right, the dir should have data and art subdirs in it.

Now, planeshift starts by using a shellscript placed in /usr/bin, that needs to be modified to point it to the new CS and cal3d libs.

Mine looks like this:
Code: [Select]
#!/bin/bash
cd /opt/PlaneShift
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
exec ./psclient $@

I hope this will be of some help to you, its what I did to get the client running reasonably reliably on my system. If you need any help, please find me on irc as bonzodog in #planeshift and #archlinux.






Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Re: Stupid error while compiling
« Reply #17 on: July 07, 2009, 02:55:09 pm »
Apparently, that wasn't a problem too. Planeshift wanted libopenal.so.0, so I symlinked libopenal.so.1 to it. :D
Frankly, running simply psclient.bin worked just fine. Yes, Planeshift did work! Thanks for advise, it was really nice. If I face any other problems, I'll make a new post, but for now - problem solved.
« Last Edit: July 07, 2009, 03:39:16 pm by Akeliukas »