Hello,
After dozens of trials, here is the new page:
https://github.com/Maproom/qmapshack/wiki/Build-Ubuntu-24-04-3
I hope that I did not break anything.
Happy sunday,
Chris
-------- Message transféré --------
Sujet : Re: [Qlandkartegt-users] Cannot compile using Ubuntu v24
Date : Thu, 1 Jan 2026 17:59:42 +0100 (CET)
De : [email protected]
Pour : [email protected]
Thanks again,
This works.
And yes having quazip built with system Qt and QMS with added QT6.10
leads to issues.
It is fine when run from ./bin/qmapshack.
Copilot gave me this workaround:
/Create a wrapper script /usr/local/bin/qmapshack-qt610:/
/
/
/sudo tee /usr/local/bin/qmapshack-qt610 >/dev/null <<'EOF'/
/#!/usr/bin/env bash/
/export LD_LIBRARY_PATH=/opt/QT/6.10.1/gcc_64/lib/
/export QT_PLUGIN_PATH=/opt/QT/6.10.1/gcc_64/plugins/
/export QML2_IMPORT_PATH=/opt/QT/6.10.1/gcc_64/qml/
/exec /usr/bin/qmapshack "$@"/
/EOF/
/sudo chmod +x /usr/local/bin/qmapshack-qt610/
Christophe
De : Torsten Metzner <[email protected]>
À : [email protected];
[email protected]
Objet : Re: [Qlandkartegt-users] Cannot compile using Ubuntu v24
Date : 29/12/2025 23:48:07 Europe/Paris
Hi Christophe,
I checked my instructions/comments from end of May together with the
currently available Ubuntu 24.04.3 LTS and QT 6.10.1. It still works
as in the past with Ubuntu 24.04.2 LTS and QT 6.9.
For transparency, here are the complete instructions:
(1) Installing Ubuntu 24.04.3 LTS desktop,
ubuntu-24.04.3-desktop-amd64.iso in a VM.
- For completeness, I choose:
- Updated the installer and restart the installation from the Desktop
- Extended selection
- Install third-party software for graphics and Wi-Fi hardware
- Download and install support for additional media formats
- Erase disk and install Ubuntu
- Checking for Software Updates
- For completeness, for my convenience I installed also the following:
- sudo apt update
- sudo apt upgrade
- sudo reboot
- sudo apt install synaptic apt-file openssh-server gnome-tweaks
(2) Installing some needed tools for building software
- sudo apt install g++ make cmake cmake-curses-gui git
(3) Installing QT 6.10.1 under /opt/QT
Because qmapshack-dev needs at least QT 6.8. I did not check this
again. Ubuntu 24.04.3 comes with QT 6.4.2
- sudo apt install libxcb-cursor0 libxcb-cursor-dev # Needed for
installing QT, at least the installer told me this.
- Installing QT as usual. You must have an QT account. Then you must
download the online installer.
- You should use the Custom Installation, because in addition to the
standard installation you also need, must install:
- Qt 5 Compatibility module, Qt WebChannel, Qt Positioning and the
Qt WebEngine Extension.
(4) Now the special things concerning QMapShack, it is very similar to
what is written for Ubuntu 22.04. But 24.04 has the correct version of
the "additional" software like GDAL or PROJ, so you do not have to
build it by your own.
- sudo apt install default-libmysqlclient-dev sqlite3 \
libsqlite3-dev libtiff-dev libghc-bzlib-dev # very
similar to Ubuntu 22.04
- sudo apt install libgdal-dev libroutino-dev libalglib-dev #
showing the difference to Ubuntu 22.04
- sudo apt install libquazip1-qt6-dev libcups2-dev # As
mentioned in the past this is special for QT6
For me libproj-dev was already installed. If not, install it with:
sudo apt install libproj-dev
Then I build QMackShack as usual. Let us assume the following:
For me everything is build under ~/QMS and in ~/QMS I have also the
qmapshack-dev.zip file.
cd ~/QMS
unzip -x ~/qmapshack-dev.zip
mkdir build_QMapShack
cd build_QMapShack
cmake ../qmapshack-dev -DCMAKE_PREFIX_PATH=/opt/QT/6.10.1/gcc_64/ #
Because I do not want to install it, I avoided
#
something like -DCMAKE_INSTALL_PREFIX=/usr
make -j6 # my VM has 8 processors
After the make command I could start QMapShack with: ./bin/qmapshack
I did not check more.
(5) Remarks, because we are using a different QT version then the one
which is used for Ubuntu 24.04.3
./bin/qmapshack is using the correct QT libraries, e.g.:
$ ldd ./bin/qmapshack | egrep 'Qt6Core.so|quazip'
libquazip1-qt6.so.1 => /lib/x86_64-linux-gnu/libquazip1-qt6.so.1
(0x00007ecca2b25000)
libQt6Core.so.6 => /opt/QT/6.10.1/gcc_64/lib/libQt6Core.so.6
(0x00007ecc91c00000)
But system libraries, e.g. libquazip are linked against the QT
libraries from the system
$ ldd /usr/lib/x86_64-linux-gnu/libquazip1-qt6.so | grep libQt6Core.so
libQt6Core.so.6 => /lib/x86_64-linux-gnu/libQt6Core.so.6
(0x000073e611a00000)
Potentially this can lead to problems because we have a flat
namespace for symbols under Linux.
I hope this helps,
Torsten
On 29.12.25 11:37, [email protected] wrote:
Hello all,
I was really planning to add a wiki section about how to build with
Ubuntu v24 and Qt5 in June this year... but then Qt6 arrived. And it
is December now.
And build instructions below do not work for me :(
Is it possible to have a quick list a of commands to build, and this
time hopefully I will update the wiki.
Thanks,
Christophe
De : zero <[email protected]>
À : [email protected]
Objet : Re: [Qlandkartegt-users] Cannot compile using Ubuntu v24
Date : 01/06/2025 21:40:05 Europe/Paris
Thanks again Torsten,
I am a bit overloaded right now, but knowing how to build in dev
mode is
also very useful.
Some years ago I did some pull requests.
Christophe
Le 30/05/2025 à 23:13, Torsten Metzner a écrit :
> Hi Christophe,
>
> if you want to build qmapshack-dev you must install a little bit more:
> - sudo apt install libquazip1-qt6-dev libcups2-dev
> - sudo apt install cmake-curses-gui # if you want to use ccmake
> instead of cmake
>
> Because qmapshack-dev need at least QT 6.8 you must also install a
> newer QT version, because Ubuntu 24.04.2 came with QT 6.4.2
>
> I used QT 6.9 for this. You should use Custom Installation,
because in
> addition to the standard installation you also need, must install:
> - Qt 5 Compatibility module, Qt WebChannel, Qt Positioning and
the Qt
> WebEngine Extension.
>
> Let us assume QT 6.9 is installed in /sharedBuild/QT
>
> Then you can build qmapshack-dev as usual, the cmake command using
> your local QT installation is then:
>
> cmake ../qmapshack-dev
-DCMAKE_PREFIX_PATH=/sharedBuild/QT/6.9.0/gcc_64
>
> For me this work and I can build QMapShack and start it again with
> ./bin/qmapshack
> I did not test more.
>
> You do not have to set the LD_LIBRARY_PATH for starting it,
because if
> you use ldd ./bin/qmapshack you will see that it is linked against
the
> correct libraries, e.g.:
> $ ldd ./bin/qmapshack | grep Qt6Core.so
> libQt6Core.so.6 => /sharedBuild/QT/6.9.0/gcc_64/lib/libQt6Core.so.6
> (0x0000738628c00000)
>
> Some remark concerning libquazip1-qt6-dev from the system. It is
> linked against the qt6 libraries which came together with the system,
> e.g.:
>
> $ ldd /usr/lib/x86_64-linux-gnu/libquazip1-qt6.so | grep libQt6Core.so
> libQt6Core.so.6 => /lib/x86_64-linux-gnu/libQt6Core.so.6
> (0x0000780287000000)
>
> Potentially this can lead to problems because we have a flat
namespace
> for symbols under Linux.
>
> I hope this is helpful,
> Torsten
>
>
> On 30.05.25 15:55, [email protected] wrote:
>> Thanks Torsten !
>>
>> It compiles like a charm.
>> I will find some time to create a new Wiki page for Ubuntu 24.
>>
>> Have a good day,
>>
>> Christophe
>>
>>
>> _______________________________________________
>> Qlandkartegt-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>
>
>
>
> _______________________________________________
> Qlandkartegt-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users