QLandkarteGT

If by now you do not know what QLandkarteGT is for, I highly recommend to install QMapShack. In contrary to QLandKarteGT QMapShack is still in development and part of most Distributions. QMapShack does have some nice features you do not want to miss out on and it is available in Debian. Just type the normal apt install qmapshack for installing it.

So, why this page?
I started using Qlankarte - the precursor of QLandkarteGT - in the year 2008. And I still own and use a Garmin eTrex Vista HCx! Yes it is still working and traveled thousands of kilometers with me.
Even though I switched to QMapShack meanwhile, there are still some features not covered by QMapShack. The most important is, with QLandkarteGT you can easily create the so called gmapsupp.img file for your Garmin, out of one big OSM map or several maps. The max µSD card size this old GPS device can use, is 2GB. And all maps have to be in this one file on this card. (Thanks Garmin…). Which is far too small for Europe (~10GB) or Asia (~5GB).
QLandkarteGT is not longer in development and the last Debian release which came with QLandkarteGT is Debian 9 ("stretch"). After that, it was removed from the package list.
So I tried building it from source in 2019 on my Debian 10 system. And again in 2020 on Debian 11 because I needed several programs in newer versions then available with stable.

building it on/for Debian 10 ("buster")

Install the necessary packages with root privileges

apt install git-buildpackage libdmtx-dev libexif-dev libgps-dev libqt5serialport5-dev \
    libqt5webkit5-dev qtmultimedia5-dev qtscript5-dev docbook2x libgdal-dev
Clone the original debian building repo, apply my patch und build the package with your normal user privileges
git clone https://anonscm.debian.org/git/pkg-grass/qlandkartegt.git
wget https://www.renatscher.de/files/qlandkartegt_fix-buildproblems-on-buster.patch
cd qlandkartegt
git apply --check < ../qlandkartegt_fix-buildproblems-on-buster.patch \
    && git am < ../qlandkartegt_fix-buildproblems-on-buster.patch
gbp buildpackage && echo 'ready to install with dpkg -i ../qlandkartegt_1.8.1+ds-9_amd64.deb'
git clean -fd

building it on/for Debian 11 ("bullseye")

Same like before. Plus the additional patch fixing the differences from buster to bullseye. This should be possible to build on buster, too. But I cannot test this any more.
Install the necessary packages with root privileges

apt install git-buildpackage libdmtx-dev libexif-dev libgps-dev libqt5serialport5-dev \
    libqt5webkit5-dev qtmultimedia5-dev qtscript5-dev docbook2x libgdal-dev
Clone the original debian building repo, apply my patches und build the package with your normal user privileges
git clone https://anonscm.debian.org/git/pkg-grass/qlandkartegt.git
wget https://www.renatscher.de/files/qlandkartegt_fix-buildproblems-on-buster.patch
wget https://www.renatscher.de/files/qlandkartegt_fix-buildproblems-on-bullseye.patch
cd qlandkartegt
git apply --check < ../qlandkartegt_fix-buildproblems-on-buster.patch \
    && git am < ../qlandkartegt_fix-buildproblems-on-buster.patch
git apply --check < ../qlandkartegt_fix-buildproblems-on-bullseye.patch \
    && git am < ../qlandkartegt_fix-buildproblems-on-bullseye.patch
gbp buildpackage && echo 'ready to install with dpkg -i ../qlandkartegt_1.8.1+ds-9_amd64.deb'
git clean -fd 

Disclaimer

This does not fix open bugs or feature requests. e.g. the search and routing is still broken, because of api changes.
I will not fix this! Use QMapShack instead.