#########################
~/opencpn-git$ opencpn
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
connect(2) call to /dev/shm/jack-1004/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
12:12:46: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),_user_manual_3Agetting_started_3Aop
and your program used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8).kg/opencpn-git/usr/share/opencpn/do
c/opencpn/manual
(opencpn:284573): Gdk-ERROR **: 12:12:46.305: The program 'opencpn' received an X Window System error..2e157a_w.19.jpg
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 326 error_code 2 request_code 151 (GLX) minor_code 24)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
########################
First of all, I am surprised that ALSA lib is required.
I was able to run opencpn successfully, though there may have been some issues with alsa. For now, for my purposes. I am satisfied; but would like to be able to run the development version.
Thank you for all the help. Should this be marked SOLVED?
Alan
]]>git clone https://aur.archlinux.org/opencpn-git.git
cd opencpn-git/
git apply -v PKGBUILD.diff
Checking patch PKGBUILD...
Applied patch PKGBUILD cleanly.
I was able to install opencpn via the chroot method. It was not difficult. I would love to understand why this works. though probably this will have to wait.
It ran via the command line. But the following messages spewed forth:
###############################
$ opencpn
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
connect(2) call to /dev/shm/jack-1004/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
20:46:26: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8).
#####################################
Perhaps this is unrelated. I cannot understand why alsa is needed by Opencpn.
Loqs: Does this mean I could download the PKGBUILD, edit, then install in the same chroot method? Seems doable.
I would like to have to latest version of Opencpn. 5.2 is good, but just in case, the git pkg may have some changes. My interest is in the tides interface using xtide.
Nice to have it installed.
]]>git diff
diff --git a/PKGBUILD b/PKGBUILD
index b327052..3b522f2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# ---------------------------------------------------------------
pkgname=opencpn-git
-pkgver=5.2.0.r42.g14628ba0e
+pkgver=5.2.0.r94.g69c30afcf
pkgrel=1
pkgdesc="Open Source Chart Plotting / Marine Navigation - Git version"
arch=('x86_64' 'aarch64')
@@ -25,7 +25,9 @@ pkgver() {
}
prepare() {
- cd $pkgname
+ export PATH="$PWD/bin:$PATH"
+ mkdir bin
+ ln -s /usr/bin/wx-config-gtk3 bin/wx-config
}
build() {
Don't add specific dependencies to the chroot, let it use webkit2gtk & wxgtk3 from repos.
Try building opencpn the same way. If it fails post the logs.
]]>CMake Error at CMakeLists.txt:813 (message):
Cannot run wxWidgets version test (!)
-- Configuring incomplete, errors occurred!
See also "/build/opencpn-git/src/opencpn-git/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /home/mork/chroot/mork/build
I suspect the biggest issue is wxWidgets. One comment in AUR suggested that available wxWidgets are compiled with another version of GCC( gcc-10, I think). WxWidgets seems to be called by other names, such as wxgtk3 or wxgtk3-dev. I have tried reinstalling all of them. When reading through the instructions to do a chroot build, there is a suggestion to install dependencies in the Chroot as well. I am not sure this is correct, and if it is, not sure how to make sure the version installed there is the correct one (compiled with the correct version of GCC, for example) required by the PKGBUILD or the upstream source.
I think I can get this done with a little guidance. As of now, I am trying to blunder my way through the process, by installing wxgtk3-dev, which is compiled on this system when installed.
Thanks by the way for your suggestion.
Alan
]]>Is there something simple about this package before I post something more extensive?
Did you try building with `makepkg`? Maybe try building in a clean chroot. `opencpn` builds fine in a clean chroot at least for me.
]]>A
]]>IIRC both opencpn and opencpn-git packages download from git.
Thank you for responding,
Alan
]]>On the aur comment sections are various suggestions that are claimed to have worked.
Is there something simple about this package before I post something more extensive?
Alan Davis
]]>