Author Topic: app not finding libraries.  (Read 3244 times)

Offline BajaExplorer

  • Single posting newcomer
  • *
  • Posts: 2
app not finding libraries.
« 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.



Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: app not finding libraries.
« Reply #1 on: March 12, 2012, 11:40:39 pm »
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!]

Offline BajaExplorer

  • Single posting newcomer
  • *
  • Posts: 2
Re: app not finding libraries.
« Reply #2 on: March 13, 2012, 12:21:11 am »
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.

Offline Radek

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: app not finding libraries.
« Reply #3 on: March 15, 2012, 11:59:59 am »
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.