Is there any programmatic way to get the location of a dynamic library loaded by a program?
I know that it is possible to get the 'executable' running path. But it is not enough for me.
I'm developing an external library that has some dependencies and I need to point accordingly to its location.
For example, the program is running at:
/local/deepLearning/bin
And this program uses a dynamic library located at:
/local/external/libs/faciesAnalysis
What I need is, at runtime, the string
"/local/external/libs/facesAnalysis"
I am working on linux, any suggestion?