Code::Blocks Forums
User forums => Help => Topic started by: BajaExplorer on March 12, 2012, 11:27:03 pm
-
OS, Debian 6.
App compiles and runs in CB.
Running from command line project/bin/debug, the so libraries are not found.
CB did put all the libraries there.
Reconfigured CB to search/link (relative) in the debug library and recompiled.
But when running app it still complains about the lib being missing.
-
Read about LD_LIBRARY_PATH, C::B sets it automatically, when you have libraries and paths set up in the build options.
-
Thanks oBFusCATed.
Searched inet, seems to be a lot of posting against using that.
Never really did get the point they were trying to make against it.
After seeing what was required on a user to set it on their system,
decided against it. Unsure about the knowledge of customer to add it thru cmd
and at this time my knowledge of Linux OS is limited.
Decided to just dump all the libraries into /usr/lib and be done with it.
I expect the customer can copy them to there.
My first time programming on Linux and just took it for granted that putting them in the
same folder as the app, it would find them.
I do thank you for your time.
-
Which libraries haven't been found? All libwx_*.so should be in /usr/lib . This directory should be on the system libpath so that the libraries should always be found.