I am building an application using a framework called ohNet.
After building the framework, there is the possibility to install the framework via make install. By default the libraries are installed inside the /usr/local/[lib|include] folders. ok.
I am using eclipse for development. In order to use this libraries I have to set the include path to the library (in this case usr/local/include/ohNet), set the Linker search path (-L)(/usr/local/lib/ohNet) and specific libraries (-l) (in this case i choose a library called libohNet.so which is in this folder.
When I build the project in eclipse it works fine, however if i try to run the programm i am faced with the following message:
error while loading shared libraries: libohNet.so: cannot open shared object file: No such file or directory
I've double checked this, and the file libohNet.so is in this directory!
What's the reason that this file cannot be found?
I searched on google and found some posts, saying that it is problematic that libraries are getting installed into /usr/local/lib instead of /usr/lib see here ...
Do I have to configure some additional settings in eclipse to make ld recognize libraries in this path? What's the solution for this?
regards