Page 1 of 1

Plugin loading failures

Posted: 21 May 2013, 18:23
by adubswils
Hello,

I am having trouble with a plugin that I have developed. v-rep indicates that it has failed to load the plugin and directs me to check whether the plugin can find all of its linked libraries. The plugin compiles correctly (it finds the v-rep header files), and ldd shows that all links are known. I am compiling on Fedora 18 using gcc 4.7.2.

Are there other failure modes for the plugin loader? For instance, is my version of gcc incompatible with the current v-rep binaries? If so, what version of gcc was v-rep compiled with? Are there other potential failure points I should be aware of?

Re: Plugin loading failures

Posted: 21 May 2013, 19:44
by coppelia
Hello,

Can you try:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
ldd libYourLibrary.so

What happens when you launch vrep.sh is that additional locations where to search for libraries are added. This might mix-up something..

Cheers

Re: Plugin loading failures

Posted: 21 May 2013, 20:28
by adubswils
Hello,

I resolved the problem.

Currently, the vrep.sh script blows away the existing LD_LIBRARY_PATH. To overcome this problem I changed the vrep.sh script to append the library paths to the existing LD_LIBRARY_PATH. After this change the plugin was loaded correctly.

Thank you for the quick feedback.