Skip to content

Commit aef2b00

Browse files
DelazJm-kuhn
authored andcommittedJan 27, 2017
QGIS 3 is only qt5 compliant
Remove qt4 mention (for linux based processes)
1 parent f7644b4 commit aef2b00

File tree

3 files changed

+86
-209
lines changed

3 files changed

+86
-209
lines changed
 

‎INSTALL

Lines changed: 16 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
QGIS
22
Building QGIS from source - step by step
3-
Monday January 09, 2017
3+
Wednesday January 25, 2017
44

55

6-
Last Updated: Monday January 09, 2017
7-
Last Change : Monday January 09, 2017
6+
Last Updated: Wednesday January 25, 2017
7+
Last Change : Friday January 20, 2017
88

99

1010
1. Introduction
1111
2. Overview
1212
3. Building on GNU/Linux
13-
3.1. Building QGIS with Qt 4.x
13+
3.1. Building QGIS with Qt 5.x
1414
3.2. Prepare apt
1515
3.3. Install build dependencies
1616
3.4. Setup ccache (Optional)
1717
3.5. Prepare your development environment
1818
3.6. Check out the QGIS Source Code
1919
3.7. Starting the compile
2020
3.8. Building Debian packages
21-
3.9. Building QGIS with Qt 5.x
22-
3.10. On Debian Linux
23-
3.11. On Fedora Linux
21+
3.9. On Fedora Linux
2422
4. Building on Windows
2523
4.1. Building with Microsoft Visual Studio
2624
4.2. Building using MinGW
@@ -139,13 +137,13 @@ those formats in GDAL.
139137
========================
140138

141139

142-
3.1. Building QGIS with Qt 4.x
140+
3.1. Building QGIS with Qt 5.x
143141
==============================
144142

145143
Requires: Ubuntu / Debian derived distro
146144

147145
/!\ Note: Refer to the section Building Debian packages for building
148-
debian packages. Unless you plan to develop on QGIS, that is probably the
146+
debian packages. Unless you plan to develop on QGIS, that is probably the
149147
easiest option to compile and install QGIS.
150148

151149
These notes are for Ubuntu - other versions and Debian derived distros may
@@ -263,6 +261,11 @@ be pressed several times before the 'g' option becomes available.
263261
After the 'g' generation is complete, press 'q' to exit the ccmake
264262
interactive dialog.
265263

264+
/!\ Warning: Make sure that your build directory is completely empty when you
265+
enter the command. Do never try to "re-use" an existing Qt4 build directory.
266+
If you want to use `ccmake` or other interactive tools, run the command in
267+
the empty build directory once before starting to use the interactive tools.
268+
266269
Now on with the build:
267270

268271
make -jX
@@ -349,56 +352,15 @@ Install them using dpkg. E.g.:
349352
sudo debi
350353

351354

352-
3.9. Building QGIS with Qt 5.x
353-
==============================
354-
355-
/!\ Warning: Qt 5 is not officially supported. Building against Qt 5
356-
libraries seems to work quite well already but be prepared that you are one
357-
of very few with this setup. We strongly recommend using QGIS with Qt 4 for
358-
production work.
359-
360-
Python bindings in particular are not expected to be compatible. When Qt 5
361-
is enabled, the build system automatically activates Python 3 and PyQt5 as well.
362-
There are no plugins and not even the python code shipped along the QGIS source
363-
code is compatible with PyQt5.
364-
365-
You have been warned.
366-
367-
368-
3.10. On Debian Linux
369-
=====================
370-
371-
We assume that you have the source code of QGIS ready and created a new
372-
subdirectory called `build` or `build-qt5` in it.
373-
374-
375-
3.10.1. Install build dependencies
376-
==================================
377-
378-
apt-get install git build-essential cmake flex bison pyqt5-dev qttools5-dev qtpositioning5-dev libqt5svg5-dev libqt5webkit5-dev libqt5gui5 libqt5scripttools5 qtscript5-dev libqca-qt5-2-dev grass-dev libgeos-dev libgdal-dev libqt5xmlpatterns5-dev libqt5scintilla2-dev pyqt5.qsci-dev python3-pyqt5.qsci libgsl-dev txt2tags libproj-dev libqwt-qt5-dev libspatialindex-dev pyqt5-dev-tools qttools5-dev-tools qt5-default python3-future python3-pyqt5.qtsql python3-psycopg2 python3-sip-dev
379-
380-
Make sure that your build directory is completely empty when you enter the
381-
following command. Do never try to "re-use" an existing Qt4 build directory.
382-
If you want to use `ccmake` or other interactive tools, run the following
383-
command in the empty build directory once before starting to use the
384-
interactive tools.
385-
386-
cmake
387-
388-
If everything went ok you can finally start to compile. (As usual append a -jX where X is the number of available cores option to make to speed up your build process)
389-
390-
make
391-
392-
393-
3.11. On Fedora Linux
394-
=====================
355+
3.9. On Fedora Linux
356+
====================
395357

396358
We assume that you have the source code of QGIS ready and created a
397359
new subdirectory called `build` or `build-qt5` in it.
398360

399361

400-
3.11.1. Install build dependencies
401-
==================================
362+
3.9.1. Install build dependencies
363+
=================================
402364

403365
dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static
404366
qt5-qtscript-devel qca-qt5-devel python3-qt5-devel python3-qscintilla-qt5-devel

0 commit comments

Comments
 (0)
Please sign in to comment.