Author Topic: Problems running walktest from cs build [FIXED]  (Read 885 times)

TymTheEnchanter

  • Traveller
  • *
  • Posts: 33
    • View Profile
Problems running walktest from cs build [FIXED]
« on: July 06, 2008, 11:26:23 am »
HI,

I have recently updated the PS, cal3d, cs & cel sources to the latest versions for PS from the compile guide, and after a few problems with cal3d and my version of gcc (4.3.1 seems to want all includes to be included properly) I have got cal3d to build fine (output from configure http://nopaste.info/d8e27e1a54.html and make http://nopaste.info/3bb499370b.html). I can also successfully build cs (configure output http://nopaste.info/24a00051e2.html and jam output http://nopaste.info/3eb61ba603.html). However when I run walktest I get the following:

Code: [Select]
$> ./walktest
DLERROR (/home/tim/development/planeshift/cs/xwin.so): /home/tim/development/planeshift/cs/xwin.so: undefined symbol: labelWidgetClass
SCF_WARNING: factory returned a null instance for crystalspace.window.x
        if error messages are not self explanatory, recompile CS with CS_DEBUG
WARNING: could not load plugin 'crystalspace.window.x'
Could not create an instance of crystalspace.window.x!
WARNING: failed to initialize plugin 'crystalspace.graphics2d.glx'
Error loading Graphics2D plugin.
WARNING: failed to initialize plugin 'crystalspace.graphics3d.opengl'
WARNING: failed to initialize plugin 'crystalspace.console.output.standard'
DEBUG: Sound System Software Renderer Initializing...
No 3D driver!
crystalspace.system:  No iGraphics3D plugin!
crystalspace.system:  Error initializing system!
Cleaning up...
Segmentation fault
but there are no reported problems in the build output (xwin.so is reported linked about line 970 in the cs jam output)

If I reconfigure cs with --enable-debug then the build fails with the following output http://nopaste.info/19e30ebc06.html.

I am assuming that I have missed a dependency somewhere but can't seem to find it as I think have met all the requirements from the cs site except libcaca (which is optional).

I could previously build and run everything fine with CS v1.2, but PS now includes csuil/strhashr.h which is new in V1.4

OS: openSUSE 11.0 64bit KDE4
GCC: 4.3.1
Cg: 2.0.805 rpm from Packman repository

Can anyone tell me what I have missed please as I have been trying to get this to work for a few days now and am at a bit of a loss  :(
« Last Edit: July 06, 2008, 06:14:51 pm by TymTheEnchanter »

Tulkhan

  • Guest
Re: Problems running walktest from cs build
« Reply #1 on: July 06, 2008, 12:18:46 pm »
I've got bitten by that one as well. It turned out that CS uses a bash script cs/bin/relaytool in the build process, and since I'm on FreeBSD, there is no /bin/bash, so it couldn't run the script, although jam reported no errors. Since you're on Linux, the interpreter shouldn't be your problem (AFAIK bash is the default shell on almost all Linux distros), but it might be worth checking whether this script is working properly on your system.

HTH,
-Tulkhan

TymTheEnchanter

  • Traveller
  • *
  • Posts: 33
    • View Profile
Re: Problems running walktest from cs build
« Reply #2 on: July 06, 2008, 06:14:24 pm »
Thanks Tulkhan,

I checked out the relaytool script and lo - it didn't check for 64 bit libs! so I modified line 450

Code: [Select]
searchpath=( "/usr/lib" "/usr/local/lib" "/lib" `pwd` )
to read

Code: [Select]
searchpath=( "/usr/lib" "/usr/local/lib" "/lib" `pwd` "/usr/lib64" "/usr/local/lib64/" "/lib64" )
and walktest worked fine. :)

Just need to continue the rest of the update now.

Many Thanks again, it would have taken me forever to find that as the problem.