Hello,
I'm under kubuntu 7.10 and I have the same sort of problem.
My C::B worspace is composed of four projects :
- 1 shared library;
- 2 plugins (.so) that are dynamically loaded by the shared library at execution time.
- 1 executable linked with the shared library;
The problem is, when executing the exec project with C::B, the dynamic loading can't work, because LD_LIBRARY_PATH is'nt set to point in the bin plugins directory.
For now, I have wrote a script I run out of C::B :
export LD_LIBRARY_PATH=../virtrev_gl_plugin_image_png/bin/Debug/:../virtrev_gl_plugin_mesh_3ds/bin/Debug/
bin/Debug/mario_project
But how could I configure project to run directly in C::B?
thanks :P
But how could I configure project to run directly in C::B?
C::B adjusts LD_LIBRARY_PATH automatically if you run in debugging mode (F8). For "normal" run mode (F9), it doesn't work because the spawned terminal doesn't inherit some specific environment variables (like LD_LIBRARY_PATH, LD_PRELOAD, etc). Haven't found a way around it yet...
What about running the program in the terminal like this:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:foo:bar executable
That should work.