Opencpn(1) | General Commands Manual | Opencpn(1) |
opencpn - Chartplotter and GPS Navigation Software
opencpn [options]
OpenCPN is a chartplotter and navigation GUI program supporting navigation under way as well as planning. It supports a wide range of chart formats using a plugin system. Other plugins provides support for e. g. radar, AIS and weather maps. Program is localized in 20+ languages and ported to several OS including MacOS, Windows and Linux.
Plugin loading depends on that the opencpn main program can locate the plugin object file and that the plugin can locate it's own data.
On Linux, the main program searches for plugin .so-files in two locatiosn. The first is ~/.local/lib/opencpn.
The second is @install-dir@/../lib/opencpn where @install-dir@ is the location where opencpn is installed. If for example opencpn is installed in /usr/bin plugins will be loaded from /usr/lib/opencpn.
On other platforms plugins are also loaded from two different locations, one of which used primarely for system plugins and requiring administrative privileges. The other is a user-writable locations used by the plugin manager.
A plugin's data directory is a path ending with opencpn/plugins/<plugin_name>. On Linux, this is by default searched in ~/.local/share:/usr/local/share:/usr/share. This search path is overridden by XDG_DATA_DIRS as defined by the freedesktop spec. Only plugins adapted for this (i. e., using GetPluginDataDir()) handles this properly.
On other platforms plugin data directories are located in similar locations which also must be retrieved in runtime using GetPluginDataDir().
If LD_LIBRARY_PATH exists in the environment opencpn uses it without modifications.
Otherwise LD_LIBRARY_PATH is set to the same path as from which plugins are loaded, see above. This ensures that helper binaries can load possible libraries installed in the same directories as the plugin.
https://www.opencpn.org
https://www.freedesktop.org
https://opencpn-manuals.github.io/main
July 2018 |