News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

app not finding libraries.

Started by BajaExplorer, March 12, 2012, 11:27:03 PM

Previous topic - Next topic

BajaExplorer

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.



oBFusCATed

Read about LD_LIBRARY_PATH, C::B sets it automatically, when you have libraries and paths set up in the build options.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BajaExplorer

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.

Radek

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.