|
1 | 1 | QGIS
|
2 | 2 | Building QGIS from source - step by step
|
3 |
| -Monday January 09, 2017 |
| 3 | +Wednesday January 25, 2017 |
4 | 4 |
|
5 | 5 |
|
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 |
8 | 8 |
|
9 | 9 |
|
10 | 10 | 1. Introduction
|
11 | 11 | 2. Overview
|
12 | 12 | 3. Building on GNU/Linux
|
13 |
| - 3.1. Building QGIS with Qt 4.x |
| 13 | + 3.1. Building QGIS with Qt 5.x |
14 | 14 | 3.2. Prepare apt
|
15 | 15 | 3.3. Install build dependencies
|
16 | 16 | 3.4. Setup ccache (Optional)
|
17 | 17 | 3.5. Prepare your development environment
|
18 | 18 | 3.6. Check out the QGIS Source Code
|
19 | 19 | 3.7. Starting the compile
|
20 | 20 | 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 |
24 | 22 | 4. Building on Windows
|
25 | 23 | 4.1. Building with Microsoft Visual Studio
|
26 | 24 | 4.2. Building using MinGW
|
@@ -139,13 +137,13 @@ those formats in GDAL.
|
139 | 137 | ========================
|
140 | 138 |
|
141 | 139 |
|
142 |
| - 3.1. Building QGIS with Qt 4.x |
| 140 | + 3.1. Building QGIS with Qt 5.x |
143 | 141 | ==============================
|
144 | 142 |
|
145 | 143 | Requires: Ubuntu / Debian derived distro
|
146 | 144 |
|
147 | 145 | /!\ 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 |
149 | 147 | easiest option to compile and install QGIS.
|
150 | 148 |
|
151 | 149 | 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.
|
263 | 261 | After the 'g' generation is complete, press 'q' to exit the ccmake
|
264 | 262 | interactive dialog.
|
265 | 263 |
|
| 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 | + |
266 | 269 | Now on with the build:
|
267 | 270 |
|
268 | 271 | make -jX
|
@@ -349,56 +352,15 @@ Install them using dpkg. E.g.:
|
349 | 352 | sudo debi
|
350 | 353 |
|
351 | 354 |
|
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 | + ==================== |
395 | 357 |
|
396 | 358 | We assume that you have the source code of QGIS ready and created a
|
397 | 359 | new subdirectory called `build` or `build-qt5` in it.
|
398 | 360 |
|
399 | 361 |
|
400 |
| - 3.11.1. Install build dependencies |
401 |
| - ================================== |
| 362 | + 3.9.1. Install build dependencies |
| 363 | + ================================= |
402 | 364 |
|
403 | 365 | dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static
|
404 | 366 | qt5-qtscript-devel qca-qt5-devel python3-qt5-devel python3-qscintilla-qt5-devel
|
@@ -753,7 +715,7 @@ to get versions that match your current Qt installed version.
|
753 | 715 | ===========================
|
754 | 716 |
|
755 | 717 | /!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
|
756 |
| -successfull install, they're not needed anymore. |
| 718 | +successful install, they're not needed anymore. |
757 | 719 |
|
758 | 720 |
|
759 | 721 | 4.2.5. git
|
|
0 commit comments