Custom transport message: where do I put the shared library?
I made a custom gazebo message using the official tutorial. After building the custom message, I wind up with a shared library "libCustomMessage.so". I'm able to successfully compile and link a gazebo plugin using the custom message and its shared library.
Where do I put the shared library so that my gazebo plugin can load the it at runtime? I know I can just add the shared library's path to LDLIBRARYPATH, but this seems dirty considering only this one plugin will use the custom message and its library. Is there any other way to get it to work?
Asked by pcdangio on 2016-04-20 22:14:43 UTC
Answers
I think you can try to edit the GAZEBO_PLUGIN_PATH in .bashrc
Asked by wangshanren on 2016-04-20 23:34:50 UTC
Comments
I tried putting the shared library in the gazebo plugin path as well... had no luck. I could only get it to work if the shared library's directory was in LD_LIBRARY_PATH. I'm at work right now, but will retry putting it in the plugin path one more time when I get home.
Asked by pcdangio on 2016-04-21 08:59:26 UTC
Comments