Package Details: opencpn 5.10.2-3

Git Clone URL: https://aur.archlinux.org/opencpn.git (read-only, click to copy)
Package Base: opencpn
Description: Open Source Chart Plotting / Marine Navigation
Upstream URL: http://opencpn.org
Licenses: GPL2
Submitter: None
Maintainer: cybuzuma
Last Packager: cybuzuma
Votes: 35
Popularity: 0.000050
First Submitted: 2009-07-08 14:25 (UTC)
Last Updated: 2025-04-18 21:11 (UTC)

Pinned Comments

cybuzuma commented on 2022-09-29 08:33 (UTC) (edited on 2025-04-19 17:51 (UTC) by cybuzuma)

Please note that when using this package, you will not be able to use the Plugin Manager but have to install plugins via the aur or compile them yourself. If you need a plugin that is not in the aur, feel free to contact me for help.

If you added a plugin to an existing install before 5.10.2-3 or compiled a plugin yourself and can not see it in the plugin list, add the following to your ~/.opencpn/opencpn.conf file (thanks to @zimm):

[PlugIns/lib<name>_pi.so]
bEnabled=1

You can find the correct name by looking at the files in /usr/lib/opencpn.

If you encounter errors with plugins after an opencpn update, you might need to rebuild the affected plugin, for example using makepkg -fi.

Latest Comments

1 2 3 4 5 6 .. 13 Next › Last »

cybuzuma commented on 2025-04-18 21:17 (UTC)

@Apolo-XIII: Thank you for the report! I backported upstream's fix for this problem into 5.10.2-3

cybuzuma commented on 2025-04-18 21:15 (UTC) (edited on 2025-04-18 21:24 (UTC) by cybuzuma)

@tuspLAe8WFshQzNz @zimm: Thanks for your reports and workarounds!
Unfortunately, I could not find a good way to make the plugins visible.
I settled on enabling all plugins that are in the aur at first start (same place where the bundled ones are enabled) which should fix the problem for new users. As the set of plugins in the aur are known, this seemed to be the minimal impacting way to do it.
Will update the pinnend comment to aid those upgrading an existing install.

Apolo-XIII commented on 2025-04-12 09:14 (UTC)

Hi, I tried to install on a new pc and got the following error: CMake version = 4.0.1 -- CMAKE_SYSTEM_NAME = Linux -- CMAKE_INSTALL_LIBDIR lib CMake Error at libs/shapelib/CMakeLists.txt:173 (cmake_policy): Policy CMP0026 may not be set to OLD behavior because this version of CMake no longer supports it. The policy was introduced in CMake version 3.0.0, and use of NEW behavior is now required.

Please either update your CMakeLists.txt files to conform to the new behavior or use an older version of CMake that still supports the old behavior. Run cmake --help-policy CMP0026 for more information.

CMake Deprecation Warning at libs/ShapefileCpp/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier.

(removed some lines)

-- Configuring incomplete, errors occurred! ==> ERREUR : Une erreur s’est produite dans build(). Abandon…

Thanks for your work

tuspLAe8WFshQzNz commented on 2025-01-02 08:15 (UTC) (edited on 2025-01-02 08:15 (UTC) by tuspLAe8WFshQzNz)

@zimm I can confirm this does seem to do the trick for me as well.

I took a look at the log output of the plugin loader without manually enabling a plugin:

22:50:38.643   DEBUG plugin_handler.cpp:375  
22:50:38.644 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /usr/lib/opencpn/libgrib_pi.so
22:50:38.644 MESSAGE plugin_loader.cpp:508 Checking plugin compatibility: /usr/lib/opencpn/libgrib_pi.so
22:50:38.644 MESSAGE plugin_loader.cpp:1374 Plugin is compatible: true
22:50:38.644 MESSAGE plugin_loader.cpp:1390 PluginLoader: Loading PlugIn: /usr/lib/opencpn/libgrib_pi.so
22:50:38.647   DEBUG plugin_loader.cpp:1491 blacklist: Get status for GRIB 5 0
22:50:38.647 MESSAGE plugin_loader.cpp:421 Loading plugins from dir: /usr/lib64/opencpn
22:50:38.647 MESSAGE plugin_loader.cpp:640 PluginLoader searching for PlugIns in location /usr/lib64/opencpn
22:50:38.647 MESSAGE plugin_loader.cpp:678 Found 6 candidates
22:50:38.647 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /usr/lib64/opencpn/libwmm_pi.so
22:50:38.647 MESSAGE plugin_loader.cpp:508 Checking plugin compatibility: /usr/lib64/opencpn/libwmm_pi.so
22:50:38.648 MESSAGE plugin_loader.cpp:1374 Plugin is compatible: true
22:50:38.648 MESSAGE plugin_loader.cpp:1390 PluginLoader: Loading PlugIn: /usr/lib64/opencpn/libwmm_pi.so
22:50:38.649   DEBUG plugin_loader.cpp:1491 blacklist: Get status for WMM 1 1
22:50:38.649 MESSAGE plugin_loader.cpp:534 Skipping not enabled candidate.
22:50:38.649 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /usr/lib64/opencpn/libpolar_pi.so
22:50:38.649 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /usr/lib64/opencpn/libchartdldr_pi.so
22:50:38.649 MESSAGE plugin_loader.cpp:508 Checking plugin compatibility: /usr/lib64/opencpn/libchartdldr_pi.so
22:50:38.649 MESSAGE plugin_loader.cpp:1374 Plugin is compatible: true
22:50:38.649 MESSAGE plugin_loader.cpp:1390 PluginLoader: Loading PlugIn: /usr/lib64/opencpn/libchartdldr_pi.so
22:50:38.651   DEBUG plugin_loader.cpp:1491 blacklist: Get status for ChartDownloader 1 4
22:50:38.651 MESSAGE plugin_loader.cpp:534 Skipping not enabled candidate.
22:50:38.651 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /usr/lib64/opencpn/libdashboard_pi.so
22:50:38.651 MESSAGE plugin_loader.cpp:508 Checking plugin compatibility: /usr/lib64/opencpn/libdashboard_pi.so
22:50:38.652 MESSAGE plugin_loader.cpp:1374 Plugin is compatible: true
22:50:38.652 MESSAGE plugin_loader.cpp:1390 PluginLoader: Loading PlugIn: /usr/lib64/opencpn/libdashboard_pi.so
22:50:38.653   DEBUG plugin_loader.cpp:1491 blacklist: Get status for Dashboard 1 2
22:50:38.653 MESSAGE plugin_loader.cpp:534 Skipping not enabled candidate.
22:50:38.653 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /usr/lib64/opencpn/libweather_routing_pi.so
22:50:38.653 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /usr/lib64/opencpn/libgrib_pi.so
22:50:38.660 MESSAGE glChartCanvas.cpp:562 BuildFBO 3
22:50:38.661 MESSAGE glChartCanvas.cpp:1016 OpenGL-> Framebuffer OK, size = 1646
22:50:38.701 MESSAGE o-charts_pi.cpp:2790 o_charts_pi:  OpenGL-> Minimum cartographic line width:  1.0
22:50:38.701   DEBUG pluginmanager.cpp:1857 OCPN_OPENGL_CONFIG

I believe that Skipping not enabled candidate. might indicate that your proposed solution is indeed the "correct" way to do it, or at least how OpenCPN seems to ship and bundle the default set of plugins in the first place.

Seems like the respective plugin aur packages must be updated to alter the OpenCPN configuration file?

zimm commented on 2025-01-01 22:21 (UTC) (edited on 2025-01-01 22:23 (UTC) by zimm)

@tuspLAe8WFshQzNz I think I found a solution, not sure if that's the right way to do it but seems to work. Edit ~/.opencpn/opencpn.conf and manually add an entry for your compiled plugin using the default plugins as examples. Doing that, the new plugin will be listed in the Plugins Manager and in the Toolbar Example: [PlugIns/libpolar.so] bEnable=1

tuspLAe8WFshQzNz commented on 2024-12-29 09:44 (UTC) (edited on 2024-12-29 09:45 (UTC) by tuspLAe8WFshQzNz)

@zimm I do see the same behaviour on my machine. Any plugin installed from the aur will compile and (apparently) install just fine, however, the plugin won't be listed or effective in OpenCPN. Also, running opencpn-cmd list-plugins does not list any plugins from the aur.

When I try to load the plugin from the aur helper's build cache directly, everything seems to work just fine:

opencpn-cmd load-plugin ~/.cache/yay/opencpn-plugin-polar/opencpn-plugin-polar-1.2.31.0-1-x86_64.pkg/usr/lib/opencpn/libpolar_pi.so yields File loaded OK. However, there seems to be an issue with the plugin catalog of OpenCPN which causes the plugins not to appear in the list and therefore, it is not possible to enabled them.

zimm commented on 2024-10-26 20:10 (UTC)

I have successfully compiled OpenCPN and a couple of plugins from AUR but the extra plugins are not visible in the "Plugins" tab of the options dialog. There were no errors during compilation and when starting OpenCPN the log file says that the extra plugins are detected as expected and there are no errors. But all I see in the "Plugins" tab are the 4 defaults (WMM, GRIBs, Dashboard and Chart Downloader) And it's a fresh compilation/installation, I did not have older versions. Is anyone else seeing this problem? Thanks

cybuzuma commented on 2024-10-11 10:12 (UTC)

@hamdyaea1: Thank you, now I could reproduce and fix your error. The problem arises when having shapelip as well as gdal installed. Then, the build will use the installed version for both of them instead of the bundled ones and break. As I do not have the time to fix OpenCPN to build with the versions in the arch repo, I simply forced the usage of the bundled shapelip.

@glenjo: I guess that this fixes your error as well.

@all: Please consider the note in the pinned comment about rebuilding plugins, if you encounter errors after only rebuilding opencpn.

hamdyaea1 commented on 2024-10-10 18:56 (UTC)

I have copied the full update with yay where the build fail here : https://pastecode.io/s/rz5std1s