Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

LD_LIBRARY_PATH Not Used

<< < (2/3) > >>

tiwag:
perfect done !

tiwag:
i remember, that i had a similar issue in the past and i could solve it, by a systemwide terminal setting.

there is any option , where you can select, if the standard terminal profile opens the terminal as login terminal or not.
if you set this to login-type, then all the pathes and settings are inherited otherwise not
(i was fighting with some pathes which i've had in my login terminals, but not in terminals which were openend from gnome gui)
since that time i always set this option to login-type by default ;-)

tiwag:
maybe i should also mention that i use the gnome-terminal to run my console apps
(standard in C::B is xterm IIRC)

Urxae:

--- Quote from: Game_Ender on January 05, 2006, 06:11:01 pm ---I am using rev 1658 and I am trying to run an Application from within Code::Blocks that links against libraries in LD_LIBRARY_PATH.  The libraries are in /usr/local/lib and I have edited my .bashrc to include this, so I can run the application manully from the command line fine.  I am compiling with a custom make file and that works fine too.  Yet when ever I try to run the app either as a GUI Application or a Console Application it can't find the libraries.  This happens even if I start Code::Blocks from the same terminal that I am able to run the app manually from.

--- End quote ---

What is the exact line in your .bashrc? Is it
--- Code: ---LD_LIBRARY_PATH=/usr/local/lib
--- End code ---
or
--- Code: ---export LD_LIBRARY_PATH=/usr/local/lib
--- End code ---
?

(I know you fixed it by replacing consolerunner, but that's hardly the cleanest solution)

Game_Ender:
The exact line is this:


--- Code: ---export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
--- End code ---

I also just tested an xterm, started from both from a Gnome terminal and the application menu, both echoed the proper LD_LIBRARY_PATH.  I have no idea what is going on.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version