Crystal Space
Welcome, Guest. Please login or register.
September 22, 2014, 01:23:06 am

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2051 Topics by 8494 Members
Latest Member: Onapthanh
* Home Help Search Login Register
  Show Posts
Pages: [1]
1  Associate Projects / CEL Discussion / Re: CEL compiling problems... Again... on: October 24, 2008, 09:42:51 pm
Hi!

I ran into some of these "be sure that you have either installed Crystal Space or set the CRYSTAL environment variable properly" issues, too.

Here you can see my env. variables to fix it:

CRYSTAL
Code:
<path to CS sdk>/crystalsdk:<path to CS sdk>/crystalsdk/lib/crystalspace-1.4:<path to CS sdk>/crystalsdk/etc/crystalspace-1.4

LD_LIBRARY_PATH
Code:
<path to CS sdk>/crystalsdk/lib:<path to CEL sdk>/cel/cel-sdk/lib

To compile CEL you need:
Code:
# so configure can find cs-config
export PATH="$PATH:<path to CS sdk>/crystalsdk"
# the linker needs this to link against CS
export LD_RUN_PATH="<path to CS sdk>/crystalsdk/lib"

If this don't work check if you have set CRYSTAL_X_Y and unset it. Check cs-config --libs and cs-config --libdir if it returns correct values. If not "be sure that you have either installed Crystal Space or set the CRYSTAL environment variable properly" Wink.

I wrote some scripts to automaticly checkout/configure/compile/build-sdk for cs and cel. Sombody intrested?

PS: You need this setup only if u dont want to be root to install/use cs and cel. I do this to not "contaminate" my system with configure install.

Best regards
Daniel
2  Associate Projects / CEL Discussion / "bootstrap" seems to be outdated in upcoming 1.4 on: October 24, 2008, 08:59:06 pm
If I use the map file exampe from here: http://crystalspace3d.org/cel/docs/online/manual-1.2/XML-Behaviour-Layer.html#0
and run

"./bin/bootstrap cel.behaviourlayer.xml bootstrap load ./ test" on command line to test it I got this:

Code:
crystalspace.cel.physicallayer:
  Property class factory name 'cel.pcfactory.region' is deprecated! Use
  'cel.pcfactory.world.region' instead.
  Property class factory name 'cel.pcfactory.defaultcamera' is deprecated! Use
  'cel.pcfactory.camera.old' instead.
LoadOK!

Sometimes it works and shows me the chair moving over the screen and somtimes there is only garbage on the screen.

The other thing is that bootsrap tell me this when I call it without parameters:

Code:
crystalspace.application.bootstrap:  This tool expects two parameters. The first parameter is the name
of a behaviour layer plugin (like 'cel.behaviourlayer.python').
The second parameter is the name of a behaviour for that layer.

But the 1.4 version really expects 3 parameters. I dont know what it is for.

File a bug or is work in progress?! My fault? Dont know!

PS: I use CS 1.4 and CEL 1.4 branch.

Best regards
Daniel
3  Crystal Space Development / Support / Re: "error while loading shared libraries" - (Not so easy as u might think) ;) on: October 24, 2008, 04:13:02 pm
OK I got it once more by myself.

/home/pragma/Code/crystal/crystal-sdk/lib

was the wrong path Wink

/home/pragma/Code/crystal/crystalsdk/lib

My fault, sorry!
4  Crystal Space Development / Support / "error while loading shared libraries" - (Not so easy as u might think) ;) on: October 24, 2008, 03:55:18 pm
Hi!

I hate this error message... so I investigated this issue

Code:
pragma@pegasus:~/Code/crystal/crystal-app/ddc$ echo $LD_LIBRARY_PATH
/home/pragma/Code/crystal/crystal-sdk/lib:/home/pragma/Code/cel/cel-sdk/lib

Looks good to me?! So I tried the ldd command which gives me this:
Code:
pragma@pegasus:~/Code/crystal/crystal-app/ddc$ ldd ddc
linux-gate.so.1 =>  (0xb7f59000)
libceltool-1.4.so => /home/pragma/Code/cel/cel-sdk/lib/libceltool-1.4.so (0xb7f1d000)
libcrystalspace-1.4.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e11000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7cc2000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7cb7000)
libcrystalspace-1.4.so => /home/pragma/Code/crystal/crystalsdk/lib/libcrystalspace-1.4.so (0xb7962000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb794a000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7924000)
/lib/ld-linux.so.2 (0xb7f5a000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7920000)
libz.so.1 => /usr/lib/libz.so.1 (0xb790b000)

Does not look so good. "libcrystalspace-1.4.so" is linked twice. I searched if this is normal or a linker error. Someone says it is quite normal.

But why the heck I got this silly message "error while loading shared libraries"?

Thanks for any hint!

Daniel
5  Crystal Space Development / Support / Re: Future stable branch 1.4 broken or just a configuration problem? on: October 19, 2008, 09:19:15 pm
OK I got it. Edit the "vfs.cfg" and change the line

Code:
VFS.Mount.config = $@data$/config-app$/, $@data$/config-plugins$/

to

Code:
VFS.Mount.config =  $(CS_DATADIR)/config-app$/, $(CS_DATADIR)/config-plugins$/

This is fixed on CS 1.9. I suggest to add this fix to 1.4 branch.
6  Crystal Space Development / Support / Future stable branch 1.4 broken or just a configuration problem? on: October 19, 2008, 08:59:07 pm
Hi community!

I have compiled 1.4 branch. I got this "error" if I start csdemo or walktest.

Code:
... (No errors above this line)
SCF_NOTIFY: registering class crystalspace.mesh.saver.factory.particles in context `crystalspace' (from /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/particlesldr.so)
SCF_NOTIFY: registering class crystalspace.mesh.saver.particles in context `crystalspace' (from /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/particlesldr.so)
SCF_NOTIFY: loading plugin /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/vfs.so to satisfy request for csVFS
VFS_NOTIFY: loaded configuration file: /home/pragma/Code/crystal/crystal-sdk/vfs.cfg
ERROR: Failed to initialize config!
 (A common cause is the CRYSTAL environment variable not being set correctly.)
Error initializing system!
Cleaning up...
Error saving configuration '/config/walktest.cfg'.
SCF_NOTIFY: unloading plugin /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/vfs.so

OS: Ubuntu 8.04
GCC: gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

The SDK is installed in "~/Code/crystal/crystal-sdk". Environment variable CRYSTAL points to "/home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/".
LD_LIBRARY_PATH is set to "/home/pragma/Code/crystal/crystal-sdk/lib".

The problem with that error log is that there is no informative error message!

Any suggestions?
Thanks!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.291 seconds with 17 queries.