Page 1 of 1

Executable cannot locate shared libraries

Posted: Fri Sep 21, 2012 2:59 am
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 ..

Re: Executable cannot locate shared libraries

Posted: Fri Sep 21, 2012 12:27 pm
by Jarod42
check this topic Run error when project build successfully.

set LD_LIBRARY_PATH in environment per configuration per project.