I have a hack/workaround and I still trying to figure out why it doesn't work:
I renamed console_runner console_runner_prog and created this script called console_runner:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib /home/jlisee/apps/codeblocks-svn/bin/console_runner_prog $*
So codeblocks invokes the script which invokes the real console runner with the proper LD_LIBRARY_PATH and all the arguments.
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.
What is the exact line in your .bashrc? Is it LD_LIBRARY_PATH=/usr/local/lib
or export LD_LIBRARY_PATH=/usr/local/lib
?
(I know you fixed it by replacing consolerunner, but that's hardly the cleanest solution)
The exact line is this:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
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.
Is there any way you could check what the LD_LIBRARY_PATH is inside a program ran by C::B?
Maybe compile & run something this through it:
#include <stdlib.h>
int main() { system("/bin/$sh"); }
(But remove the $ that I had to put in to get this F-ing forum to let me post! :evil: :evil: :evil:)
and enter echo $LD_LIBRARY_PATH at the prompt?
Probably a security "feature" to prevent injection attacks or whatever, but VERY annoying. If only it would TELL me what was wrong with it instead of (title: "406 Not Acceptable")
Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Apache/1.3.34 Server at forums.codeblocks.org Port 80