It seems I didn't set LD_LIBRARY_PATH right, now that that's done, I still have a problem with finding CS.
planeshift/planeshift/pslaunch --verbose
SCF_NOTIFY: scanning plugin directory: /home/user/planeshift/planeshift (context `app'; recursive no)
SCF_NOTIFY: registering plugin /home/user/planeshift/planeshift/bgloader.so in context `app'
SCF_NOTIFY: registering class crystalspace.bgloader in context `app' (from /home/user/planeshift/planeshift/bgloader.so)
SCF_NOTIFY: scanning plugin directory: /home/user (context `{none}'; recursive no)
NOTIFY: loading plugin instance for crystalspace.kernel.vfs
WARNING: could not load plugin 'crystalspace.kernel.vfs'
* This likely means that the plugins could not be found.
If you're a user: Check the working directory the application starts from -
usually, it is the same as the directory with the executable.
If in doubt, contact the vendor.
If you're a developer: Check if the CRYSTAL environment var points to the
correct location - usually the directory CS was built in.
You can also use the '--verbose' command line switch to troubleshoot
where CS looks for plugins.
NOTIFY: loading plugin instance for crystalspace.kernel.vfs
WARNING: could not load plugin 'crystalspace.kernel.vfs'
* This likely means that the plugins could not be found.
If you're a user: Check the working directory the application starts from -
usually, it is the same as the directory with the executable.
If in doubt, contact the vendor.
If you're a developer: Check if the CRYSTAL environment var points to the
correct location - usually the directory CS was built in.
You can also use the '--verbose' command line switch to troubleshoot
where CS looks for plugins.
NOTIFY: loading plugin instance for crystalspace.kernel.vfs
WARNING: could not load plugin 'crystalspace.kernel.vfs'
Segmentation fault
EDIT:
It all comes down to the fact that when I use the export command the variables aren't persistent. I'm now checking things and recompiling with the variables set in the right way, since even when the variables were set correctly I still got an error:
./planeshift/planeshift/pslaunchWARNING: could not load plugin 'crystalspace.window.x.extf86vm'
WARNING: could not load plugin 'crystalspace.sndsys.renderer.openal'
WARNING: could not load plugin 'crystalspace.sndsys.renderer.openal'
Couldn't open xml file '/this/updateservers.xml'!
Unable to get root node!
Checking for updates to the updater: Using mirror http://testing.xordan.com/ for updaterinfo.xml
Segmentation fault
Ok did this:
Set the variables CRYSTAL and LD_LIBRARY_PATH
~/planeshift/autoreconf.sh
~/planeshift/configure --with-cal3d=$HOME/planeshift/cal3d --enable-cpu-specific-optimizations=native
~/sudo -q clientNow it works.
I can really recommend
https://planeshift.svn.sf.net/svnroot/planeshift/trunk/docs/compiling.html. It tells you clearly what to do.
One thing I didn't get was this: exported variables don't persist, so you have to follow this entire tutorial in one terminal, no closing it and opening a new one.