Gepetto / gepetto-viewer

Graphical Interface for Pinocchio and HPP.
BSD 2-Clause "Simplified" License
44 stars 30 forks source link

Plugin loading #131

Closed nim65s closed 4 years ago

nim65s commented 4 years ago

Hi,

Running gepetto-gui, with gepetto-viewer & gepetto-viewer-corba raised the following errors:

"omniorbserver.so" :  "The shared library was not found."
Plugin "omniorbserver.so" not loaded: "The shared library was not found."

This .so is available at /usr/lib/gepetto-gui-plugins, so setting QT_PLUGIN_PATH to this path fixed the issue for me.

But depending on how I build GV & GV-corba, this is sometimes required and sometimes not.

Without this QT_PLUGIN_PATH, how is the plugin system able to find the plugins ?

jmirabel commented 4 years ago

It looks for the plugin in /gepetto-gui-plugins for each path in LD_LIBRARY_PATH.

nim65s commented 4 years ago

Thanks, I understand better.

jmirabel commented 4 years ago

I agree that the list of searched path is not exhaustive. Any suggestion is welcome.

nim65s commented 4 years ago

I'd suggest to just add ${CMAKE_INSTALL_PREFIX}/lib/gepetto-gui-plugins, and add a hint for GEPETTO_GUI_PLUGIN_DIRS in the error message.