@vwidmer, turns out I have gcc11 set as default in my path after running into problems with gcc12 earlier
Here's how I got it to build with wxgtk30 (AUR) and gcc11 (Community) https://gist.github.com/dantob/d8438eb1da0aaa24d48e510e39b7771f
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.000049 |
First Submitted: | 2009-07-08 14:25 (UTC) |
Last Updated: | 2025-04-18 21:11 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 13 Next › Last »
@vwidmer, turns out I have gcc11 set as default in my path after running into problems with gcc12 earlier
Here's how I got it to build with wxgtk30 (AUR) and gcc11 (Community) https://gist.github.com/dantob/d8438eb1da0aaa24d48e510e39b7771f
You can try [deleted as I took over this package] There is a problem with the class wxTransformMatrix which opencpn uses since 5.6.2. It is marked as deprecated in wx-3.2 in a way that causes a compiler error (see https://github.com/wxWidgets/wxWidgets/issues/22790). I created a patch file with a dirty hack that makes opencpn compile and work as far as I can tell.
@dantob can you share your PKGBUILD or what you changed? I tried and opencpn compiles but when I try to run it just says "Floating point exception (core dumped)"
This doesn't build against wxwidgets-gtk3 3.2.0
in extra. But I did get a working version 5.6.2
build using wxgtk30 3.0.5.1
in aur using paths like /opt/wxgtk-3.0.5/wx-config
. (you can install both wx packages at the same time)
@tasso I'm sorry you feel that way, unfortunately, it's out of my hands.
You can bring this issue upstream at https://github.com/OpenCPN/OpenCPN/ if you want, and/or offer help for development and maintenance of packages. I know the team is short-staffed and could use help.
I'm not sure that downloading >600 MByte of flatpak-bs and relying on a third party container thingy which is not lxc should really be the recommended way to install. :(
OK thank you.
I hope someone will adopt it. I would do it if i had the skills.
Updating to 5.6.2 given me a segmentation fault. Unfortunately I've given up on my goal to live in a houseboat so I am no longer interested in maintaining this package and investigating further, so I am disowning it. Sorry :/
Just for information @Npa, the recommended way to install OpenCPN on most platform is now using Flatpak: https://opencpn.org/OpenCPN/info/downloadopencpn.html
This is almost the only way to guarantee that plugins will work properly. I had lots and lots of issues previously with compiling plugins up to date.
My pleasure :)
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):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
.