BuildFedoraPROJ8 - Maproom/qmapshack GitHub Wiki

Prev (Linux Mint 20.1) | Home | Manual | Index | (OSX) Next


Table of contents


Compile and build QMapShack with PROJ 8 for Fedora 33

QMapShack versions beyond version 1.15.2 will use PROJ version 8. This requires some changes in the QMS build procedure. This page is an early release of the description of these changes. It can be used to build current QMS development versions.

Preliminary remark: The described installation procedure is based on an X11 display server. Switching from a Wayland display server (the default on Fedora 33) can be done during the login process (lower right gear on the login screen).

Warnings and hints:

  • GDAL version 3.x now depends on PROJ. Therefore, don't change the described installation sequence of packages.
  • If there are older versions of the used libraries on your system, remove them completely first.
  • Don't change the advised directory settings.

Install needed packages

  1. Run

     sudo dnf upgrade
     
     sudo dnf groupinstall "Development Tools" "Development Libraries"
     
     sudo dnf install qt5-linguist qt5-qttools-static qt5-qtwebengine-devel libjpeg-turbo-devel alglib-devel gdal-devel libtiff-devel libsq3-devel qt-creator
     
     mkdir ~/GPS
    

Install PROJ version 8

  1. Assume, that the current PROJ release is 8.0.0 (otherwise change the version number in the following lines!)

  2. Download

     cd ~/GPS
     wget https://download.osgeo.org/proj/proj-8.0.0.tar.gz
     tar xzvf proj-8.0.0.tar.gz
    
     cd proj-8.0.0
     mkdir build
     cd build
    
  3. Build and install

     ccmake .. -DCMAKE_INSTALL_PREFIX=/usr
    

    If the ccmake run stops, press c (maybe, several times) and then g.

     cmake --build . -j2
     sudo cmake --build . --target install
    

Note: The parameter j2 defines the number of simultaneously running jobs when building the code. You can increase this parameter to the value of the optimal compilation speed depending on your CPU (-j3, -j4, ...).

Install GDAL

Note: Please be patient. The building process will take some time. Depending on your hardware settings it may take 1-2 hours.

  1. Download

     cd ~/GPS
     wget https://github.com/OSGeo/gdal/releases/download/v3.2.2/gdal-3.2.2.tar.gz
     tar xvzf gdal-3.2.2.tar.gz
     cd gdal-3.2.2
    
  2. Build and install

     ./configure --prefix=/usr
     make -j2
     sudo make install
    

Install QUAZIP

  1. Assume, that the current QUAZIP release is 1.1 (otherwise change the version number in the following lines!)

  2. Download

     cd ~/GPS
     wget https://github.com/stachenov/quazip/archive/refs/tags/v1.1.tar.gz
     tar xvzf v1.1.tar.gz
    
     cd quazip-1.1
     mkdir build
     cd build
    
  3. Build and install

     ccmake .. -DCMAKE_INSTALL_PREFIX=/usr
    

    If the ccmake run stops, press c (maybe, several times) and then g.

     cmake --build . -j2
     sudo cmake --build . --target install
    

Install Routino

  1. Download

     cd ~/GPS
     svn co http://routino.org/svn/trunk routino
     cd routino
    
  2. Edit Makefile.conf:

    1. Line 48: set to prefix=/usr
    2. Line 51: set to `libdir=$(prefix)/lib64
  3. Build and install

     make -j2
     sudo make install
    

Install QMapShack

  1. Download

     cd ~/GPS
     git clone https://github.com/Maproom/qmapshack.git QMapShack
     mkdir build_QMapShack
     cd build_QMapShack
    
  2. Build and install

     ccmake ../QMapShack -DCMAKE_INSTALL_PREFIX=/usr
    

    If the ccmake run stops, press c (maybe, several times) and then g

  3. Run

     make -j2
     sudo make install
    

Run QMapShack

  1. Run

     qmapshack
    

Prev (Linux Mint 20.1) | Home | Manual | Index | Top | (OSX) Next