5
5
< META HTTP-EQUIV ="Content-Type " CONTENT ="text/html; charset=utf-8 ">
6
6
< TITLE > QGIS</ TITLE >
7
7
8
- <!-- Included /home/fischer/src/qgis3/ doc/style.css -->
8
+ <!-- Included doc/style.css -->
9
9
< STYLE TYPE ="text/css ">
10
10
body { background : white;
11
11
color : black;
77
77
< DIV CLASS ="header " ID ="header ">
78
78
< H1 > QGIS</ H1 >
79
79
< H2 > Building QGIS from source - step by step</ H2 >
80
- < H3 > Monday January 09 , 2017</ H3 >
80
+ < H3 > Wednesday January 25 , 2017</ H3 >
81
81
</ DIV >
82
82
83
83
< DIV CLASS ="body " ID ="body ">
84
84
< P >
85
- Last Updated: Monday January 09 , 2017
86
- Last Change : Monday January 09 , 2017
85
+ Last Updated: Wednesday January 25 , 2017
86
+ Last Change : Friday January 20 , 2017
87
87
</ P >
88
88
< DIV CLASS ="toc ">
89
89
@@ -92,47 +92,45 @@ <H3>Monday January 09, 2017</H3>
92
92
< LI > < A HREF ="#toc2 "> Overview</ A >
93
93
< LI > < A HREF ="#toc3 "> Building on GNU/Linux</ A >
94
94
< UL >
95
- < LI > < A HREF ="#toc4 "> 3.1. Building QGIS with Qt 4 .x</ A >
95
+ < LI > < A HREF ="#toc4 "> 3.1. Building QGIS with Qt 5 .x</ A >
96
96
< LI > < A HREF ="#toc5 "> 3.2. Prepare apt</ A >
97
97
< LI > < A HREF ="#toc6 "> 3.3. Install build dependencies</ A >
98
98
< LI > < A HREF ="#toc7 "> 3.4. Setup ccache (Optional)</ A >
99
99
< LI > < A HREF ="#toc8 "> 3.5. Prepare your development environment</ A >
100
100
< LI > < A HREF ="#toc9 "> 3.6. Check out the QGIS Source Code</ A >
101
101
< LI > < A HREF ="#toc10 "> 3.7. Starting the compile</ A >
102
102
< LI > < A HREF ="#toc11 "> 3.8. Building Debian packages</ A >
103
- < LI > < A HREF ="#toc12 "> 3.9. Building QGIS with Qt 5.x</ A >
104
- < LI > < A HREF ="#toc13 "> 3.10. On Debian Linux</ A >
105
- < LI > < A HREF ="#toc14 "> 3.11. On Fedora Linux</ A >
103
+ < LI > < A HREF ="#toc12 "> 3.9. On Fedora Linux</ A >
106
104
</ UL >
107
- < LI > < A HREF ="#toc15 "> Building on Windows</ A >
105
+ < LI > < A HREF ="#toc13 "> Building on Windows</ A >
108
106
< UL >
109
- < LI > < A HREF ="#toc16 "> 4.1. Building with Microsoft Visual Studio</ A >
110
- < LI > < A HREF ="#toc17 "> 4.2. Building using MinGW</ A >
111
- < LI > < A HREF ="#toc18 "> 4.3. Creation of MSYS environment for compilation of QGIS</ A >
107
+ < LI > < A HREF ="#toc14 "> 4.1. Building with Microsoft Visual Studio</ A >
108
+ < LI > < A HREF ="#toc15 "> 4.2. Building using MinGW</ A >
109
+ < LI > < A HREF ="#toc16 "> 4.3. Creation of MSYS environment for compilation of QGIS</ A >
112
110
</ UL >
113
- < LI > < A HREF ="#toc19 "> Building on MacOS X</ A >
111
+ < LI > < A HREF ="#toc17 "> Building on MacOS X</ A >
114
112
< UL >
115
- < LI > < A HREF ="#toc20 "> 5.1. Install Developer Tools</ A >
116
- < LI > < A HREF ="#toc21 "> 5.2. Install Qt4 from disk image</ A >
117
- < LI > < A HREF ="#toc22 "> 5.3. Install CMake for OSX</ A >
118
- < LI > < A HREF ="#toc23 "> 5.4. Install development frameworks for QGIS dependencies</ A >
119
- < LI > < A HREF ="#toc24 "> 5.5. API documentation</ A >
120
- < LI > < A HREF ="#toc25 "> 5.6. QGIS source</ A >
121
- < LI > < A HREF ="#toc26 "> 5.7. Configure the build</ A >
122
- < LI > < A HREF ="#toc27 "> 5.8. Building</ A >
123
- < LI > < A HREF ="#toc28 "> 5.9. Post-Install</ A >
113
+ < LI > < A HREF ="#toc18 "> 5.1. Install Developer Tools</ A >
114
+ < LI > < A HREF ="#toc19 "> 5.2. Install Qt4 from disk image</ A >
115
+ < LI > < A HREF ="#toc20 "> 5.3. Install CMake for OSX</ A >
116
+ < LI > < A HREF ="#toc21 "> 5.4. Install development frameworks for QGIS dependencies</ A >
117
+ < LI > < A HREF ="#toc22 "> 5.5. API documentation</ A >
118
+ < LI > < A HREF ="#toc23 "> 5.6. QGIS source</ A >
119
+ < LI > < A HREF ="#toc24 "> 5.7. Configure the build</ A >
120
+ < LI > < A HREF ="#toc25 "> 5.8. Building</ A >
121
+ < LI > < A HREF ="#toc26 "> 5.9. Post-Install</ A >
124
122
</ UL >
125
- < LI > < A HREF ="#toc29 "> Setting up the WCS test server on GNU/Linux</ A >
123
+ < LI > < A HREF ="#toc27 "> Setting up the WCS test server on GNU/Linux</ A >
126
124
< UL >
127
- < LI > < A HREF ="#toc30 "> 6.1. Preparation</ A >
128
- < LI > < A HREF ="#toc31 "> 6.2. Setup mapserver</ A >
129
- < LI > < A HREF ="#toc32 "> 6.3. Create a home page</ A >
130
- < LI > < A HREF ="#toc33 "> 6.4. Now deploy it</ A >
131
- < LI > < A HREF ="#toc34 "> 6.5. Debugging</ A >
125
+ < LI > < A HREF ="#toc28 "> 6.1. Preparation</ A >
126
+ < LI > < A HREF ="#toc29 "> 6.2. Setup mapserver</ A >
127
+ < LI > < A HREF ="#toc30 "> 6.3. Create a home page</ A >
128
+ < LI > < A HREF ="#toc31 "> 6.4. Now deploy it</ A >
129
+ < LI > < A HREF ="#toc32 "> 6.5. Debugging</ A >
132
130
</ UL >
133
- < LI > < A HREF ="#toc35 "> Setting up a Jenkins Build Server</ A >
134
- < LI > < A HREF ="#toc36 "> Debug output and running tests</ A >
135
- < LI > < A HREF ="#toc37 "> Authors and Acknowledgments</ A >
131
+ < LI > < A HREF ="#toc33 "> Setting up a Jenkins Build Server</ A >
132
+ < LI > < A HREF ="#toc34 "> Debug output and running tests</ A >
133
+ < LI > < A HREF ="#toc35 "> Authors and Acknowledgments</ A >
136
134
</ OL >
137
135
138
136
</ DIV >
@@ -253,14 +251,14 @@ <H1>2. Overview</H1>
253
251
< H1 > 3. Building on GNU/Linux</ H1 >
254
252
255
253
< A NAME ="toc4 "> </ A >
256
- < H2 > 3.1. Building QGIS with Qt 4 .x</ H2 >
254
+ < H2 > 3.1. Building QGIS with Qt 5 .x</ H2 >
257
255
258
256
< P >
259
257
< B > Requires:</ B > Ubuntu / Debian derived distro
260
258
</ P >
261
259
< P >
262
260
/!\ < B > Note:</ B > Refer to the section Building Debian packages for building
263
- debian packages. Unless you plan to develop on QGIS, that is probably the
261
+ debian packages. Unless you plan to develop on QGIS, that is probably the
264
262
easiest option to compile and install QGIS.
265
263
</ P >
266
264
< P >
@@ -433,6 +431,12 @@ <H2>3.7. Starting the compile</H2>
433
431
interactive dialog.
434
432
</ P >
435
433
< P >
434
+ /!\ < B > Warning:</ B > Make sure that your build directory is completely empty when you
435
+ enter the command. Do never try to "re-use" an existing < B > Qt4</ B > build directory.
436
+ If you want to use `ccmake` or other interactive tools, run the command in
437
+ the empty build directory once before starting to use the interactive tools.
438
+ </ P >
439
+ < P >
436
440
Now on with the build:
437
441
</ P >
438
442
@@ -574,67 +578,14 @@ <H2>3.8. Building Debian packages</H2>
574
578
</ PRE > </ div >
575
579
576
580
< A NAME ="toc12 "> </ A >
577
- < H2 > 3.9. Building QGIS with Qt 5.x</ H2 >
578
-
579
- < P >
580
- /!\ < B > Warning:</ B > Qt 5 is not officially supported. Building against Qt 5
581
- libraries seems to work quite well already but be prepared that you are one
582
- of very few with this setup. We strongly recommend using QGIS with Qt 4 for
583
- production work.
584
- </ P >
585
- < P >
586
- Python bindings in particular are not expected to be compatible. When Qt 5
587
- is enabled, the build system automatically activates Python 3 and PyQt5 as well.
588
- There are no plugins and not even the python code shipped along the QGIS source
589
- code is compatible with PyQt5.
590
- </ P >
591
- < P >
592
- You have been warned.
593
- </ P >
594
-
595
- < A NAME ="toc13 "> </ A >
596
- < H2 > 3.10. On Debian Linux</ H2 >
597
-
598
- < P >
599
- We assume that you have the source code of QGIS ready and created a new
600
- subdirectory called `build` or `build-qt5` in it.
601
- </ P >
602
-
603
- < H3 > 3.10.1. Install build dependencies</ H3 >
604
-
605
- < div class ="code "> < PRE >
606
- 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
607
- </ PRE > </ div >
608
-
609
- < P >
610
- Make sure that your build directory is completely empty when you enter the
611
- following command. Do never try to "re-use" an existing Qt4 build directory.
612
- If you want to use `ccmake` or other interactive tools, run the following
613
- command in the empty build directory once before starting to use the
614
- interactive tools.
615
- </ P >
616
-
617
- < div class ="code "> < PRE >
618
- cmake
619
- </ PRE > </ div >
620
-
621
- < P >
622
- 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)
623
- </ P >
624
-
625
- < div class ="code "> < PRE >
626
- make
627
- </ PRE > </ div >
628
-
629
- < A NAME ="toc14 "> </ A >
630
- < H2 > 3.11. On Fedora Linux</ H2 >
581
+ < H2 > 3.9. On Fedora Linux</ H2 >
631
582
632
583
< P >
633
584
We assume that you have the source code of QGIS ready and created a
634
585
new subdirectory called `build` or `build-qt5` in it.
635
586
</ P >
636
587
637
- < H3 > 3.11 .1. Install build dependencies</ H3 >
588
+ < H3 > 3.9 .1. Install build dependencies</ H3 >
638
589
639
590
< div class ="code "> < PRE >
640
591
dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static
@@ -692,10 +643,10 @@ <H3>3.11.1. Install build dependencies</H3>
692
643
make install
693
644
</ PRE > </ div >
694
645
695
- < A NAME ="toc15 "> </ A >
646
+ < A NAME ="toc13 "> </ A >
696
647
< H1 > 4. Building on Windows</ H1 >
697
648
698
- < A NAME ="toc16 "> </ A >
649
+ < A NAME ="toc14 "> </ A >
699
650
< H2 > 4.1. Building with Microsoft Visual Studio</ H2 >
700
651
701
652
< P >
@@ -953,7 +904,7 @@ <H3>4.1.6. Osgeo4w packaging</H3>
953
904
< I > ms-windows/osgeo4w/package.cmd</ I >
954
905
</ P >
955
906
956
- < A NAME ="toc17 "> </ A >
907
+ < A NAME ="toc15 "> </ A >
957
908
< H2 > 4.2. Building using MinGW</ H2 >
958
909
959
910
< P >
@@ -1222,7 +1173,7 @@ <H3>4.2.12. Create the installation package: (optional)</H3>
1222
1173
on qgis.nsi and choose the option 'Compile NSIS Script'.
1223
1174
</ P >
1224
1175
1225
- < A NAME ="toc18 "> </ A >
1176
+ < A NAME ="toc16 "> </ A >
1226
1177
< H2 > 4.3. Creation of MSYS environment for compilation of QGIS</ H2 >
1227
1178
1228
1179
< H3 > 4.3.1. Initial setup</ H3 >
@@ -1479,7 +1430,7 @@ <H3>4.3.3. Cleanup</H3>
1479
1430
of space and it's not necessary at all.
1480
1431
</ P >
1481
1432
1482
- < A NAME ="toc19 "> </ A >
1433
+ < A NAME ="toc17 "> </ A >
1483
1434
< H1 > 5. Building on MacOS X</ H1 >
1484
1435
1485
1436
< P >
@@ -1546,7 +1497,7 @@ <H1>5. Building on MacOS X</H1>
1546
1497
many threads.
1547
1498
</ P >
1548
1499
1549
- < A NAME ="toc20 "> </ A >
1500
+ < A NAME ="toc18 "> </ A >
1550
1501
< H2 > 5.1. Install Developer Tools</ H2 >
1551
1502
1552
1503
< P >
@@ -1603,7 +1554,7 @@ <H2>5.1. Install Developer Tools</H2>
1603
1554
(e.g. OSG & osgEarth), try using only the LLVM compilers.
1604
1555
</ P >
1605
1556
1606
- < A NAME ="toc21 "> </ A >
1557
+ < A NAME ="toc19 "> </ A >
1607
1558
< H2 > 5.2. Install Qt4 from disk image</ H2 >
1608
1559
1609
1560
< P >
@@ -1663,7 +1614,7 @@ <H2>5.2. Install Qt4 from disk image</H2>
1663
1614
CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build.
1664
1615
</ P >
1665
1616
1666
- < A NAME ="toc22 "> </ A >
1617
+ < A NAME ="toc20 "> </ A >
1667
1618
< H2 > 5.3. Install CMake for OSX</ H2 >
1668
1619
1669
1620
< P >
@@ -1745,7 +1696,7 @@ <H3>5.3.1. Optional setup: ccache</H3>
1745
1696
osgEarth), try bypassing ccache.
1746
1697
</ P >
1747
1698
1748
- < A NAME ="toc23 "> </ A >
1699
+ < A NAME ="toc21 "> </ A >
1749
1700
< H2 > 5.4. Install development frameworks for QGIS dependencies</ H2 >
1750
1701
1751
1702
< P >
@@ -2418,7 +2369,7 @@ <H3>5.4.13. Optional dependencies: OSG & osgEarth</H3>
2418
2369
And as for OSG, you can leave the bin/ executables where they are.
2419
2370
</ P >
2420
2371
2421
- < A NAME ="toc24 "> </ A >
2372
+ < A NAME ="toc22 "> </ A >
2422
2373
< H2 > 5.5. API documentation</ H2 >
2423
2374
2424
2375
< P >
@@ -2454,7 +2405,7 @@ <H2>5.5. API documentation</H2>
2454
2405
QGIS.app/Contents/Resources/doc
2455
2406
</ P >
2456
2407
2457
- < A NAME ="toc25 "> </ A >
2408
+ < A NAME ="toc23 "> </ A >
2458
2409
< H2 > 5.6. QGIS source</ H2 >
2459
2410
2460
2411
< P >
@@ -2489,7 +2440,7 @@ <H2>5.6. QGIS source</H2>
2489
2440
2490
2441
</ PRE > </ div >
2491
2442
2492
- < A NAME ="toc26 "> </ A >
2443
+ < A NAME ="toc24 "> </ A >
2493
2444
< H2 > 5.7. Configure the build</ H2 >
2494
2445
2495
2446
< P >
@@ -2630,7 +2581,7 @@ <H2>5.7. Configure the build</H2>
2630
2581
-D QGIS_MACAPP_BUNDLE=2 \
2631
2582
</ PRE > </ div >
2632
2583
2633
- < A NAME ="toc27 "> </ A >
2584
+ < A NAME ="toc25 "> </ A >
2634
2585
< H2 > 5.8. Building</ H2 >
2635
2586
2636
2587
< P >
@@ -2658,7 +2609,7 @@ <H2>5.8. Building</H2>
2658
2609
sudo make install
2659
2610
</ PRE > </ div >
2660
2611
2661
- < A NAME ="toc28 "> </ A >
2612
+ < A NAME ="toc26 "> </ A >
2662
2613
< H2 > 5.9. Post-Install</ H2 >
2663
2614
2664
2615
< P >
@@ -2694,7 +2645,7 @@ <H2>5.9. Post-Install</H2>
2694
2645
installing the mod-fastcgi that is missing on Lion.
2695
2646
</ P >
2696
2647
2697
- < A NAME ="toc29 "> </ A >
2648
+ < A NAME ="toc27 "> </ A >
2698
2649
< H1 > 6. Setting up the WCS test server on GNU/Linux</ H1 >
2699
2650
2700
2651
< P >
@@ -2705,7 +2656,7 @@ <H1>6. Setting up the WCS test server on GNU/Linux</H1>
2705
2656
require slight variations in package names.
2706
2657
</ P >
2707
2658
2708
- < A NAME ="toc30 "> </ A >
2659
+ < A NAME ="toc28 "> </ A >
2709
2660
< H2 > 6.1. Preparation</ H2 >
2710
2661
2711
2662
< P >
@@ -2725,7 +2676,7 @@ <H2>6.1. Preparation</H2>
2725
2676
cd cgi-bin/
2726
2677
</ P >
2727
2678
2728
- < A NAME ="toc31 "> </ A >
2679
+ < A NAME ="toc29 "> </ A >
2729
2680
< H2 > 6.2. Setup mapserver</ H2 >
2730
2681
2731
2682
< P >
@@ -2791,7 +2742,7 @@ <H2>6.2. Setup mapserver</H2>
2791
2742
</VirtualHost>
2792
2743
</ PRE > </ div >
2793
2744
2794
- < A NAME ="toc32 "> </ A >
2745
+ < A NAME ="toc30 "> </ A >
2795
2746
< H2 > 6.3. Create a home page</ H2 >
2796
2747
2797
2748
< div class ="code "> < PRE >
@@ -2809,7 +2760,7 @@ <H2>6.3. Create a home page</H2>
2809
2760
http://wcs.qgis.org/1.9.0/wcs
2810
2761
</ PRE > </ div >
2811
2762
2812
- < A NAME ="toc33 "> </ A >
2763
+ < A NAME ="toc31 "> </ A >
2813
2764
< H2 > 6.4. Now deploy it</ H2 >
2814
2765
2815
2766
< div class ="code "> < PRE >
@@ -2822,14 +2773,14 @@ <H2>6.4. Now deploy it</H2>
2822
2773
sudo /etc/init.d/apache2 reload
2823
2774
</ PRE > </ div >
2824
2775
2825
- < A NAME ="toc34 "> </ A >
2776
+ < A NAME ="toc32 "> </ A >
2826
2777
< H2 > 6.5. Debugging</ H2 >
2827
2778
2828
2779
< div class ="code "> < PRE >
2829
2780
sudo tail -f /var/log/apache2/wcs_qgis.org/error.log
2830
2781
</ PRE > </ div >
2831
2782
2832
- < A NAME ="toc35 "> </ A >
2783
+ < A NAME ="toc33 "> </ A >
2833
2784
< H1 > 7. Setting up a Jenkins Build Server</ H1 >
2834
2785
2835
2786
< P >
@@ -2931,7 +2882,7 @@ <H1>7. Setting up a Jenkins Build Server</H1>
2931
2882
< A HREF ="http://alexott.blogspot.com/2012/03/jenkins-cmakectest.html "> http://alexott.blogspot.com/2012/03/jenkins-cmakectest.html</ A >
2932
2883
</ UL >
2933
2884
2934
- < A NAME ="toc36 "> </ A >
2885
+ < A NAME ="toc34 "> </ A >
2935
2886
< H1 > 8. Debug output and running tests</ H1 >
2936
2887
2937
2888
< P >
@@ -2997,7 +2948,7 @@ <H1>8. Debug output and running tests</H1>
2997
2948
ctest --verbose --tests-regex SomeTestName
2998
2949
</ PRE > </ div >
2999
2950
3000
- < A NAME ="toc37 "> </ A >
2951
+ < A NAME ="toc35 "> </ A >
3001
2952
< H1 > 9. Authors and Acknowledgments</ H1 >
3002
2953
3003
2954
< P >
@@ -3063,5 +3014,5 @@ <H1>9. Authors and Acknowledgments</H1>
3063
3014
3064
3015
</ DIV >
3065
3016
<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
3066
- <!-- cmdline: txt2tags -\-encoding=utf-8 -o/home/fischer/src/qgis3/debian/build-master-ninja/ doc/INSTALL.html -t html /home/fischer/src/qgis3/ doc/INSTALL.t2t -->
3017
+ <!-- cmdline: txt2tags -\-encoding=utf-8 -o doc/INSTALL.html -t html doc/INSTALL.t2t -->
3067
3018
</ BODY > </ HTML >
0 commit comments