When trying to get the gui stuff up and running, I ran into an error when
loading io-graphics:
dlopen(“gri-photon.so”) failed: Library cannot be found
I spent several hours trying to figure out why it couldn’t find the library,
since
it was on the disk, the LD_LIBRARY_PATH variable was set, etc…
Eventually, I found that the DL_DEBUG variable would make it
output stuff when loading DLLs.
Turns out the library it couldn’t load was libphrender.so.2. So it seems
like the code in io-graphics is outputting the wrong file name when
dlopen() fails.
Well, it really was the dlopen() of gri-photon.so that failed.
Unfortunately, dlopen() doesn’t report back which dependency
it couldn’t find.
I believe our docs people have made an effort to document
DL_DEBUG more prominently.
Angela
Chris Fischer wrote:
When trying to get the gui stuff up and running, I ran into an error when
loading io-graphics:
dlopen(“gri-photon.so”) failed: Library cannot be found
I spent several hours trying to figure out why it couldn’t find the library,
since
it was on the disk, the LD_LIBRARY_PATH variable was set, etc…
Eventually, I found that the DL_DEBUG variable would make it
output stuff when loading DLLs.
Turns out the library it couldn’t load was libphrender.so.2. So it seems
like the code in io-graphics is outputting the wrong file name when
dlopen() fails.
“Angela Lin” <alin@qnx.com> wrote in message
news:c15b2p$17n$1@inn.qnx.com…
Well, it really was the dlopen() of gri-photon.so that failed.
Unfortunately, dlopen() doesn’t report back which dependency
it couldn’t find.
I believe our docs people have made an effort to document
DL_DEBUG more prominently.
I see what you are saying, but it doesn’t give any useful information
for fixing the problem when you get the error.
Why not have the error message include a statement like
“export DL_DEBUG=1, and rerun application for more info”.
Angela
Chris Fischer wrote:
When trying to get the gui stuff up and running, I ran into an error
when
loading io-graphics:
dlopen(“gri-photon.so”) failed: Library cannot be found
I spent several hours trying to figure out why it couldn’t find the
library,
since
it was on the disk, the LD_LIBRARY_PATH variable was set, etc…
Eventually, I found that the DL_DEBUG variable would make it
output stuff when loading DLLs.
Turns out the library it couldn’t load was libphrender.so.2. So it
seems
like the code in io-graphics is outputting the wrong file name when
dlopen() fails.