Executable cannot locate shared libraries

General questions regarding the usage of CodeLite
kam
CodeLite Curious
Posts: 5
Joined: Fri Sep 21, 2012 2:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Executable cannot locate shared libraries

Post by kam »

I am using Codelite to complete a project(SONO_MACHINE) which resides in a workspace(SONO) together with 4 shared libraries. THe problem "I'm having is that the main executable is not accessing the libraries during the Debug phase. The message I'm getting is

:dyld: Library not loaded: ./Debug/tonestat.so Referenced from: /Users/Creative/Library/Application Support/codelite/SONO/SONO_MACHINE/Debug/SONO_MACHINE Reason: image not found

(Where tonestat.so is the shared library and SONO_MACHINE is the executable).

Does './Debug/tonestat.so' refer to the shared library debug folder or the main executable debug folder? Where is the program searching? All shared libraries are compiled into their respected debug folders OK but Codelite seems unable to find them. I've struggled with this path issue for days searching for what help I can online but without success. Any tips as to how to organize paths generally with regard to the Debug phase would be extremely welcome. I'm descending into madness with this one! Thx in anticipation ..
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Executable cannot locate shared libraries

Post by Jarod42 »

check this topic Run error when project build successfully.

set LD_LIBRARY_PATH in environment per configuration per project.
Post Reply