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
Search Criteria
Package Details: opencpn 5.10.2-2
Package Actions
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.000727 |
First Submitted: | 2009-07-08 14:25 (UTC) |
Last Updated: | 2024-10-11 10:06 (UTC) |
Dependencies (14)
- glew (glew-libepoxyAUR, glew-waylandAUR, glew-osmesa-gitAUR, glew-wayland-gitAUR, glew-gitAUR)
- glu (glu-gitAUR)
- libarchive (libarchive-gitAUR)
- libexif (libexif-gitAUR)
- libsndfile (libsndfile-gitAUR)
- portaudio
- rapidjson (rapidjson-gitAUR)
- tinyxml (tinyxml-gitAUR)
- webkit2gtk-4.1 (webkit2gtk-4.1-imgpasteAUR)
- wxsvg
- wxwidgets-gtk3 (wxwidgets-gtk3-gitAUR, wxwidgets-gtk3-lightAUR)
- cmake (cmake-gitAUR) (make)
- lsb-release (make)
- gpsd (optional) – GPS position support
Required by (7)
Sources (3)
zimm commented on 2024-10-26 20:10 (UTC)
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
cybuzuma commented on 2024-10-10 14:05 (UTC)
@glenjo: Can you post some output regarding that error? I can build this aur with gdal installed from the repos as well as without it. opencpn ships its own version of gdal, that's how the headers are included without the gdal package being a dependency.
cybuzuma commented on 2024-10-10 11:59 (UTC)
@hamdyaea1: I am sorry, but the actual error is still not in the text you pasted. "*** Attente des tâches non terminées...." means that an error occured above that line. So please look into the output above that line, and see if you can spot some output containing an error, not a warning.
(You might want to just edit your last comment to not clutter up the comments too much...)
glenjo commented on 2024-10-03 02:03 (UTC) (edited on 2024-10-03 02:04 (UTC) by glenjo)
I'm also having the build fail, and traced it back to the gdal package. It's using the include files in the gdal package for conversion between raster and vector chart types. I don't even see gdal listed as a dependancy so I'm wondering what I'm doing wrong at this point. any help would be appreciated!
hamdyaea1 commented on 2024-10-02 19:10 (UTC)
Here the end of the build
make[2]: *** [CMakeFiles/opencpn.dir/build.make:272: CMakeFiles/opencpn.dir/gui/src/chartdbs.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:842: CMakeFiles/opencpn.dir/all] Error 2
make[1]: *** Attente des tâches non terminées....
Dans la fonction « GPS_Serial_Write »,
mis en ligne depuis « GPS_Serial_Write_Packet » à /home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/gpssend.c:149:29:
/home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/gpsserial.c:426:21: attention: « write » lecture de 3 octet depuis une région de taille 1 [-Wstringop-overread]
426 | return write(psd->fd, obuf, size);
| ^
/home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/garmin_gps.h: Dans la fonction « GPS_Serial_Write_Packet »:
/home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/garmin_gps.h:72:8: note: l'objet source « dle » de taille 1
72 | UC dle;
| ^
/usr/include/unistd.h:378:16: note: dans un appel à la fonction « write » déclarée avec l'attribut « access (read_only, 2, 3) »
378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^
Dans la fonction « GPS_Serial_Write »,
mis en ligne depuis « GPS_Serial_Write_Packet » à /home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/gpssend.c:183:29:
/home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/gpsserial.c:426:21: attention: « write » lecture de 3 octet depuis une région de taille 1 [-Wstringop-overread]
426 | return write(psd->fd, obuf, size);
| ^
/home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/garmin_gps.h: Dans la fonction « GPS_Serial_Write_Packet »:
/home/hamdy/.cache/yay/opencpn/src/OpenCPN-Release_5.10.2/libs/garmin/jeeps/garmin_gps.h:76:8: note: l'objet source « chk » de taille 1
76 | UC chk;
| ^
/usr/include/unistd.h:378:16: note: dans un appel à la fonction « write » déclarée avec l'attribut « access (read_only, 2, 3) »
378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^
/usr/bin/ld: /tmp/cc6ABg3u.ltrans27.ltrans.o : dans la fonction « PluginHandler::installPlugin(PluginMetadata) » :
<artificial>:(.text+0x6ff5): avertissement : the use of
tmpnam' is dangerous, better use mkstemp'
[ 71%] Built target opencpn-cmd
make: *** [Makefile:156: all] Error 2
==> ERREUR : Une erreur s’est produite dans build().
Abandon…
-> error making: opencpn-exit status 4
-> Failed to install the following packages. Manual intervention is required:
opencpn - exit status 4
cybuzuma commented on 2024-10-02 09:02 (UTC) (edited on 2024-10-02 09:04 (UTC) by cybuzuma)
@hamdyaea1, I am afraid I need to see some more lines of your output. The ones you pasted show a warning, which should not break the build (it does not for me).
Also, you might want to surround your pasted log by three backticks:
` ` `
pasted text
` ` `
which will show it like this and make it much more readable:
pasted text
hamdyaea1 commented on 2024-10-01 20:34 (UTC)
| ^
/usr/bin/ld: /tmp/ccLaIHJV.ltrans27.ltrans.o : dans la fonction « PluginHandler::installPlugin(PluginMetadata) » : Hi, on Linux manjaro I can't build the last version of this package :
<artificial>:(.text+0x6ff5): avertissement : the use of tmpnam' is dangerous, better use
mkstemp'
[ 71%] Built target opencpn-cmd
make: *** [Makefile:156: all] Error 2
==> ERREUR : Une erreur s’est produite dans build().
Abandon…
-> error making: opencpn-exit status 4
-> Failed to install the following packages. Manual intervention is required:
opencpn - exit status 4
Pinned Comments
cybuzuma commented on 2022-09-29 08:33 (UTC) (edited on 2024-10-11 10:14 (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 encounter errors with plugins after a opencpn update, you might need to rebuild the affected plugin, for example using
makepkg -fi
.