Fatal assertion with older Garmin etrex H
Description:
Using older Garmin etrex H gives the following error:
gpsbabel: /usr/src/debug/gpsbabel/gpsbabel-gpsbabel_1_9_0/garmin.cc:380: void rw_init(const QString&): Assertion `!QString(valid_waypt_chars).contains('-')' failed.
Aborted
(see also gpsbabel forum thread )
Solution (tested locally) is to explicitly build release version so that assertions are not fatal
patch:
diff --git a/PKGBUILD b/PKGBUILD
index 3c710ef..e10e160 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,6 +23,8 @@ prepare() {
build() {
cmake -B build -S $pkgname-${pkgname}_${pkgver//./_} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DQT_DIR=/usr/lib/cmake/Qt6 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGPSBABEL_WITH_ZLIB=pkgconfig \
-DGPSBABEL_WITH_SHAPELIB=pkgconfig \
(needed Qt6 locally to prevent failed build against Qt5)
Edited by Michael Lapsley