Caanoo / WIZ Wiz Doesn't See Sdl Shared Library


dftruf

Still Fresh
Joined
Aug 9, 2006
Messages
61
Ave,

I've compiled tome-300alpha19-src for wiz, and after launch, system prints message:
"error while loading shared libraries: libSDL_gfx.so.0: cannot open shared object file: No such file or directory"

So I've copied all shared SDL libraries to the game main folder, and still it doesn't work.
Is this caused by SDL version incompatibility?
I've renamed other libSDL_gfx.so.x files to libSDL_gfx.so.0, but again it doesn't work.
 
You have to set the environment variable "LD_LIBRARY_PATH" to tell the linker where it should look for libraries. Otherwise it will only look in /lib.

Code:
#!/bin/sh
# File: my_game.gpe
export LD_LIBRARY_PATH=.
./my_game.bin
[...]
 
hmn said:
You have to set the environment variable "LD_LIBRARY_PATH" to tell the linker where it should look for libraries. Otherwise it will only look in /lib.

Code:
 #!/bin/sh
 # File: my_game.gpe
 export LD_LIBRARY_PATH=.
 ./my_game.bin
 [...]

I havnt had to mess with the LD_LIBRARY_PATH on the wiz, I think it already has the local path. So usually just placing the library in the same folder as the calling app has worked.
 
Last edited by a moderator:
Back
Top