11QGIS
22Building QGIS from source - step by step
3- Saturday September 23 , 2017
3+ Sunday October 29 , 2017
44
55
6- Last Updated: Saturday September 23 , 2017
7- Last Change : Saturday September 23 , 2017
6+ Last Updated: Sunday October 29 , 2017
7+ Last Change : Sunday October 29 , 2017
88
99
1010 1. Introduction
@@ -66,7 +66,7 @@ regularly updated to match the corresponding release. Instructions for the curre
6666master branch are available at
6767http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/doc/INSTALL.html.
6868If you wish to build another version of QGIS, ensure to checkout the appropriate
69- release branch.
69+ release branch. The QGIS source code can be found in the repository (https://github.com/qgis/QGIS).
7070
7171Please visit http://qgis.org for information on joining our mailing lists
7272and getting involved in the project further.
@@ -365,7 +365,7 @@ new subdirectory called `build` or `build-qt5` in it.
365365 3.9.1. Install build dependencies
366366 =================================
367367
368- dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static qt5-qtscript-devel qca-qt5-devel python3-qt5-devel python3-qscintilla-qt5-devel qscintilla-qt5-devel python3-qscintilla-devel python3-qscintilla-qt5 clang flex bison geos-devel gdal-devel sqlite-devel libspatialite-devel qt5-qtsvg-devel qt5-qtxmlpatterns-devel spatialindex-devel expat-devel proj-devel qwt-qt5-devel gsl-devel postgresql-devel cmake python3-future gdal-python3 python3-psycopg2 python3-PyYAML python3-pygments python3-jinja2 python3-OWSLib qca-qt5-ossl qwt-qt5-devel qtkeychain-qt5-devel qwt-devel sip-devel libzip-devel
368+ dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static qt5-qtscript-devel qca-qt5-devel qca-qt5-ossl qt5-qt3d-devel python3-qt5-devel python3-qscintilla-qt5-devel qscintilla-qt5-devel python3-qscintilla-devel python3-qscintilla-qt5 clang flex bison geos-devel gdal-devel sqlite-devel libspatialite-devel qt5-qtsvg-devel qt5-qtxmlpatterns-devel spatialindex-devel expat-devel proj-devel qwt-qt5-devel gsl-devel postgresql-devel cmake python3-future gdal-python3 python3-psycopg2 python3-PyYAML python3-pygments python3-jinja2 python3-OWSLib qca-qt5-ossl qwt-qt5-devel qtkeychain-qt5-devel qwt-devel sip-devel libzip-devel
369369
370370To build QGIS server additional dependencies are required:
371371
@@ -469,6 +469,7 @@ and from OSGeo4W (select Advanced Installation):
469469- python3-future
470470- python3-pyyaml
471471- python3-mock
472+ - python3-six
472473- qca-qt5-devel
473474- qca-qt5-libs
474475- qscintilla-qt5
@@ -669,23 +670,23 @@ it, just point the installer to c:\msys\mingw
669670
670671When Qt installation is complete:
671672
672- Edit C:\Qt\4.8.0 \bin\qtvars.bat and add the following lines:
673+ Edit C:\Qt\5.9.1 \bin\qtvars.bat and add the following lines:
673674
674675 set PATH=%PATH%;C:\msys\local\bin;c:\msys\local\lib
675676 set PATH=%PATH%;"C:\Program Files\Subversion\bin"
676677
677- I suggest you also add C:\Qt\4.8.0 \bin\ to your Environment Variables Path in
678+ I suggest you also add C:\Qt\5.9.1 \bin\ to your Environment Variables Path in
678679the windows system preferences.
679680
680681If you plan to do some debugging, you'll need to compile debug version of Qt:
681- C:\Qt\4.8.0 \bin\qtvars.bat compile_debug
682+ C:\Qt\5.9.1 \bin\qtvars.bat compile_debug
682683
683684Note: there is a problem when compiling debug version of Qt 4.7, the script ends with
684685this message "mingw32-make: *** No rule to make target `debug'. Stop.". To
685686compile the debug version you have to go out of src directory and execute the
686687following command:
687688
688- c:\Qt\4.8.0 make
689+ c:\Qt\5.9.1 make
689690
690691
691692 4.2.3. Flex and Bison
@@ -696,13 +697,16 @@ http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16424
696697(the zip bin) and extract it into c:\msys\mingw\bin
697698
698699
699- 4.2.4. Python stuff (optional)
700- ==============================
700+ 4.2.4. Python
701+ =============
701702
702703Follow this section in case you would like to use Python bindings for QGIS. To
703- be able to compile bindings, you need to compile SIP and PyQt4 from sources as
704+ be able to compile bindings, you need to compile SIP and PyQt5 from sources as
704705their installer doesn't include some development files which are necessary.
705706
707+ Note that even if you compile without the Python bindings, Python3 is still
708+ a necessary dependency for building QGIS.
709+
706710
707711 4.2.4.1. Download and install Python - use Windows installer
708712 ============================================================
@@ -712,7 +716,7 @@ their installer doesn't include some development files which are necessary.
712716http://python.org/download/
713717
714718
715- 4.2.4.2. Download SIP and PyQt4 sources
719+ 4.2.4.2. Download SIP and PyQt5 sources
716720 =======================================
717721
718722http://www.riverbankcomputing.com/software/sip/download
@@ -725,7 +729,7 @@ to get versions that match your current Qt installed version.
725729 4.2.4.3. Compile SIP
726730 ====================
727731
728- c:\Qt\4.8.0 \bin\qtvars.bat
732+ c:\Qt\5.9.1 \bin\qtvars.bat
729733 python configure.py -p win32-g++
730734 make
731735 make install
@@ -734,7 +738,7 @@ to get versions that match your current Qt installed version.
734738 4.2.4.4. Compile PyQt
735739 =====================
736740
737- c:\Qt\4.8.0 \bin\qtvars.bat
741+ c:\Qt\5.9.1 \bin\qtvars.bat
738742 python configure.py
739743 make
740744 make install
@@ -743,7 +747,7 @@ to get versions that match your current Qt installed version.
743747 4.2.4.5. Final python notes
744748 ===========================
745749
746- /!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
750+ /!\ You can delete the directories with unpacked SIP and PyQt5 sources after a
747751successful install, they're not needed anymore.
748752
749753
@@ -761,7 +765,7 @@ https://git-scm.com/download/win
761765
762766CMake is build system used by QGIS. Download it from here:
763767
764- http ://www. cmake.org/files/v2.8 /cmake-2.8.2-win32-x86.exe
768+ https ://cmake.org/files/v3.9 /cmake-3.9.3-win64-x64.msi
765769
766770
767771 4.2.7. QGIS
@@ -787,9 +791,9 @@ this document.
787791Start a cmd.exe window ( Start -> Run -> cmd.exe ) if you don't have one
788792already. Add paths to compiler and our MSYS environment:
789793
790- c:\Qt\4.8.0 \bin\qtvars.bat
794+ c:\Qt\5.9.1 \bin\qtvars.bat
791795
792- For ease of use add c:\Qt\4.8.0 \bin\ to your system path in system
796+ For ease of use add c:\Qt\5.9.1 \bin\ to your system path in system
793797properties so you can just type qtvars.bat when you open the cmd console.
794798Create build directory and set it as current directory:
795799
0 commit comments