5
5
6
6
1. Introduction
7
7
2. General Build Note
8
- 3. Building under windows using msys
9
- 3.1. MSYS:
10
- 3.2. Qt4.3
11
- 3.3. Flex and Bison
12
- 3.4. Python stuff: (optional)
13
- 3.4.1. Download and install Python - use Windows installer
14
- 3.4.2. Download SIP and PyQt4 sources
15
- 3.4.3. Compile SIP
16
- 3.4.4. Compile PyQt
17
- 3.4.5. Final python notes
18
- 3.5. Subversion:
19
- 3.6. CMake:
20
- 3.7. QGIS:
21
- 3.8. Compiling:
22
- 3.9. Configuration
23
- 3.10. Compilation and installation
24
- 3.11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
25
- 3.12. Create the installation package: (optional)
26
- 4. Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
27
- 4.1. Install XCODE
28
- 4.2. Install Qt4 from .dmg
29
- 4.3. Install development frameworks for QGIS dependencies
30
- 4.3.1. Additional Dependencies : GSL
31
- 4.3.2. Additional Dependencies : Expat
32
- 4.3.3. Additional Dependencies : SIP
33
- 4.3.4. Additional Dependencies : PyQt
34
- 4.3.5. Additional Dependencies : Bison
35
- 4.4. Install CMAKE for OSX
36
- 4.5. Install subversion for OSX
37
- 4.6. Check out QGIS from SVN
38
- 4.7. Configure the build
39
- 4.8. GEOS Issues
40
- 4.9. Building
41
- 5. Building on GNU/Linux
42
- 5.1. Building QGIS with Qt4.x
43
- 5.2. Prepare apt
44
- 5.3. Install Qt4
45
- 5.4. Install additional software dependencies required by QGIS
46
- 5.5. GRASS Specific Steps
47
- 5.6. Setup ccache (Optional)
48
- 5.7. Prepare your development environment
49
- 5.8. Check out the QGIS Source Code
50
- 5.9. Starting the compile
51
- 5.10. Running QGIS
52
- 6. Creation of MSYS environment for compilation of Quantum GIS
53
- 6.1. Initial setup
54
- 6.1.1. MSYS
55
- 6.1.2. MinGW
56
- 6.1.3. Flex and Bison
57
- 6.2. Installing dependencies
58
- 6.2.1. Getting ready
59
- 6.2.2. GDAL level one
60
- 6.2.3. GRASS
61
- 6.2.4. GDAL level two
62
- 6.2.5. GEOS
63
- 6.2.6. SQLITE
64
- 6.2.7. GSL
65
- 6.2.8. EXPAT
66
- 6.2.9. POSTGRES
67
- 6.3. Cleanup
68
- 7. Building with MS Visual Studio
69
- 7.1. Setup Visual Studio
70
- 7.1.1. Express Edition
71
- 7.1.2. All Editions
72
- 7.2. Download/Install Dependencies
73
- 7.2.1. Flex and Bison
74
- 7.2.2. Qt
75
- 7.2.3. Proj.4
76
- 7.2.4. GSL
8
+ 3. Building under Windows using MSVC Express
9
+ 3.1. System preparation
10
+ 3.2. Install Visual Studio Express 2005
11
+ 4. Building under windows using msys
12
+ 4.1. MSYS:
13
+ 4.2. Qt4.3
14
+ 4.3. Flex and Bison
15
+ 4.4. Python stuff: (optional)
16
+ 4.4.1. Download and install Python - use Windows installer
17
+ 4.4.2. Download SIP and PyQt4 sources
18
+ 4.4.3. Compile SIP
19
+ 4.4.4. Compile PyQt
20
+ 4.4.5. Final python notes
21
+ 4.5. Subversion:
22
+ 4.6. CMake:
23
+ 4.7. QGIS:
24
+ 4.8. Compiling:
25
+ 4.9. Configuration
26
+ 4.10. Compilation and installation
27
+ 4.11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
28
+ 4.12. Create the installation package: (optional)
29
+ 5. Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
30
+ 5.1. Install XCODE
31
+ 5.2. Install Qt4 from .dmg
32
+ 5.3. Install development frameworks for QGIS dependencies
33
+ 5.3.1. Additional Dependencies : GSL
34
+ 5.3.2. Additional Dependencies : Expat
35
+ 5.3.3. Additional Dependencies : SIP
36
+ 5.3.4. Additional Dependencies : PyQt
37
+ 5.3.5. Additional Dependencies : Bison
38
+ 5.4. Install CMAKE for OSX
39
+ 5.5. Install subversion for OSX
40
+ 5.6. Check out QGIS from SVN
41
+ 5.7. Configure the build
42
+ 5.8. GEOS Issues
43
+ 5.9. Building
44
+ 6. Building on GNU/Linux
45
+ 6.1. Building QGIS with Qt4.x
46
+ 6.2. Prepare apt
47
+ 6.3. Install Qt4
48
+ 6.4. Install additional software dependencies required by QGIS
49
+ 6.5. GRASS Specific Steps
50
+ 6.6. Setup ccache (Optional)
51
+ 6.7. Prepare your development environment
52
+ 6.8. Check out the QGIS Source Code
53
+ 6.9. Starting the compile
54
+ 6.10. Running QGIS
55
+ 7. Creation of MSYS environment for compilation of Quantum GIS
56
+ 7.1. Initial setup
57
+ 7.1.1. MSYS
58
+ 7.1.2. MinGW
59
+ 7.1.3. Flex and Bison
60
+ 7.2. Installing dependencies
61
+ 7.2.1. Getting ready
62
+ 7.2.2. GDAL level one
63
+ 7.2.3. GRASS
64
+ 7.2.4. GDAL level two
77
65
7.2.5. GEOS
78
- 7.2.6. GDAL
79
- 7.2.7. PostGIS
80
- 7.2.8. Expat
81
- 7.2.9. CMake
82
- 7.3. Building QGIS with CMAKE
83
- 8. Authors and Acknowledgments
66
+ 7.2.6. SQLITE
67
+ 7.2.7. GSL
68
+ 7.2.8. EXPAT
69
+ 7.2.9. POSTGRES
70
+ 7.3. Cleanup
71
+ 8. Building with MS Visual Studio
72
+ 8.1. Setup Visual Studio
73
+ 8.1.1. Express Edition
74
+ 8.1.2. All Editions
75
+ 8.2. Download/Install Dependencies
76
+ 8.2.1. Flex and Bison
77
+ 8.2.2. Qt
78
+ 8.2.3. Proj.4
79
+ 8.2.4. GSL
80
+ 8.2.5. GEOS
81
+ 8.2.6. GDAL
82
+ 8.2.7. PostGIS
83
+ 8.2.8. Expat
84
+ 8.2.9. CMake
85
+ 8.3. Building QGIS with CMAKE
86
+ 9. Authors and Acknowledgments
84
87
85
88
86
89
------------------------------------------------------------------------
@@ -138,11 +141,51 @@ For complete information, see the wiki at:
138
141
http://wiki.qgis.org/qgiswiki/Building_with_CMake
139
142
140
143
141
- 3. Building under windows using msys
144
+ 3. Building under Windows using MSVC Express
145
+ ============================================
146
+
147
+ /!\ Note: Building under MSVC is still a work in progress. In particular the
148
+ following dont work yet: python, grass, postgis connections.
149
+
150
+
151
+ 3.1. System preparation
152
+ =======================
153
+
154
+ I started with a clean XP install with Service Pack 2 and all patches applied.
155
+ I have already compiled all the dependencies you need for gdal, expat etc,
156
+ so this tutorial wont cover compiling those from source too. Since compiling
157
+ these dependencies was a somewhat painful task I hope my precompiled libs
158
+ will be adequate. If not I suggest you consult the individual projects for
159
+ specific build documentation and support. Lets go over the process in a nutshell
160
+ before we begin:
161
+
162
+ * Install XP (I used a Parallels virtual machine)
163
+ * Install Visual Studio Express 2005 sp1
164
+ * Install the Microsoft Platform SDK
165
+ * Install command line subversion client
166
+ * Install library dependencies bundle
167
+ * Install Qt 4.3.2
168
+ * Check out QGIS sources
169
+ * Compile QGIS
170
+ * Create setup.exe installer for QGIS
171
+
172
+
173
+ 3.2. Install Visual Studio Express 2005
174
+ =======================================
175
+
176
+ Get this Visual Studio Express 2005 sp1 for C++ here:
177
+
178
+ http://msdn2.microsoft.com/en-us/express/aa975050.aspx
179
+
180
+ The above page is confusing as it has lots of other stuff on it - just scroll
181
+ down until you find a link labelled "Download Visual C++ 2005 Express SP1 �"
182
+
183
+
184
+ 4. Building under windows using msys
142
185
====================================
143
186
144
187
145
- 3 .1. MSYS:
188
+ 4 .1. MSYS:
146
189
==========
147
190
148
191
MSYS provides a unix style build environment under windows. We have created a
@@ -159,7 +202,7 @@ our pre-made one, detailed instructions are provided elsewhere in this
159
202
document.
160
203
161
204
162
- 3 .2. Qt4.3
205
+ 4 .2. Qt4.3
163
206
==========
164
207
165
208
Download qt4.3 opensource precompiled edition exe and install (including the
@@ -195,7 +238,7 @@ following command:
195
238
196
239
197
240
198
- 3 .3. Flex and Bison
241
+ 4 .3. Flex and Bison
199
242
===================
200
243
201
244
*** Note I think this section can be removed as it should be installed int the
@@ -206,23 +249,23 @@ http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16424
206
249
(the zip bin) and extract it into c:\msys\mingw\bin
207
250
208
251
209
- 3 .4. Python stuff: (optional)
252
+ 4 .4. Python stuff: (optional)
210
253
=============================
211
254
212
255
Follow this section in case you would like to use Python bindings for QGIS. To
213
256
be able to compile bindings, you need to compile SIP and PyQt4 from sources as
214
257
their installer doesn't include some development files which are necessary.
215
258
216
259
217
- 3 .4.1. Download and install Python - use Windows installer
260
+ 4 .4.1. Download and install Python - use Windows installer
218
261
==========================================================
219
262
220
263
(It doesn't matter to what folder you'll install it)
221
264
222
265
http://python.org/download/
223
266
224
267
225
- 3 .4.2. Download SIP and PyQt4 sources
268
+ 4 .4.2. Download SIP and PyQt4 sources
226
269
=====================================
227
270
228
271
http://www.riverbankcomputing.com/Downloads/sip4/
@@ -232,7 +275,7 @@ Extract each of the above zip files in a temporary directory. Make sure
232
275
to get versions that match your current Qt installed version.
233
276
234
277
235
- 3 .4.3. Compile SIP
278
+ 4 .4.3. Compile SIP
236
279
==================
237
280
238
281
@@ -243,7 +286,7 @@ to get versions that match your current Qt installed version.
243
286
244
287
245
288
246
- 3 .4.4. Compile PyQt
289
+ 4 .4.4. Compile PyQt
247
290
===================
248
291
249
292
@@ -254,14 +297,14 @@ to get versions that match your current Qt installed version.
254
297
255
298
256
299
257
- 3 .4.5. Final python notes
300
+ 4 .4.5. Final python notes
258
301
=========================
259
302
260
303
/!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
261
304
successfull install, they're not needed anymore.
262
305
263
306
264
- 3 .5. Subversion:
307
+ 4 .5. Subversion:
265
308
================
266
309
267
310
In order to check out QGIS sources from the repository, you need Subversion
@@ -270,15 +313,15 @@ client. This installer should work fine:
270
313
http://subversion.tigris.org/files/documents/15/36797/svn-1.4.3-setup.exe
271
314
272
315
273
- 3 .6. CMake:
316
+ 4 .6. CMake:
274
317
===========
275
318
276
319
CMake is build system used by Quantum GIS. Download it from here:
277
320
278
321
http://www.cmake.org/files/v2.4/cmake-2.4.6-win32-x86.exe
279
322
280
323
281
- 3 .7. QGIS:
324
+ 4 .7. QGIS:
282
325
==========
283
326
284
327
Start a cmd.exe window ( Start -> Run -> cmd.exe ) Create development
@@ -301,7 +344,7 @@ For svn 0.8 branch
301
344
302
345
303
346
304
- 3 .8. Compiling:
347
+ 4 .8. Compiling:
305
348
===============
306
349
307
350
As a background read the generic building with CMake notes at the end of
@@ -325,7 +368,7 @@ Create build directory and set it as current directory:
325
368
326
369
327
370
328
- 3 .9. Configuration
371
+ 4 .9. Configuration
329
372
==================
330
373
331
374
@@ -350,15 +393,15 @@ install prefix to its default c:\program files\
350
393
When configuration is done, click 'OK' to exit the setup utility.
351
394
352
395
353
- 3 .10. Compilation and installation
396
+ 4 .10. Compilation and installation
354
397
==================================
355
398
356
399
357
400
make make install
358
401
359
402
360
403
361
- 3 .11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
404
+ 4 .11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
362
405
=================================================================================
363
406
364
407
Make sure to copy all .dll:s needed to the same directory as the qgis.exe
@@ -379,7 +422,7 @@ c:\msys\local\bin and c:\msys\local\lib directories, so the DLLs will be
379
422
used from that place.
380
423
381
424
382
- 3 .12. Create the installation package: (optional)
425
+ 4 .12. Create the installation package: (optional)
383
426
=================================================
384
427
385
428
Downlad and install NSIS from (http://nsis.sourceforge.net/Main_Page)
@@ -389,21 +432,21 @@ tree. Read the READMEfile there and follow the instructions. Next right click
389
432
on qgis.nsi and choose the option 'Compile NSIS Script'.
390
433
391
434
392
- 4 . Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
435
+ 5 . Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
393
436
==============================================================
394
437
395
438
In this approach I will try to avoid as much as possible building dependencies
396
439
from source and rather use frameworks wherever possible.
397
440
398
441
399
- 4 .1. Install XCODE
442
+ 5 .1. Install XCODE
400
443
==================
401
444
402
445
I recommend to get the latest xcode dmg from the Apple XDC Web site. Install
403
446
XCODE after the ~941mb download is complete.
404
447
405
448
406
- 4 .2. Install Qt4 from .dmg
449
+ 5 .2. Install Qt4 from .dmg
407
450
==========================
408
451
409
452
You need a minimum of Qt4.2. I suggest getting the latest (at time of writing).
@@ -439,7 +482,7 @@ Second change the default mkspec symlink so that it points to macx-g++:
439
482
440
483
441
484
442
- 4 .3. Install development frameworks for QGIS dependencies
485
+ 5 .3. Install development frameworks for QGIS dependencies
443
486
=========================================================
444
487
445
488
Download William Kyngesburye's excellent all in one framework that includes
@@ -462,7 +505,7 @@ There are some additional dependencies that at the time of writing are not
462
505
provided as frameworks so we will need to build these from source.
463
506
464
507
465
- 4 .3.1. Additional Dependencies : GSL
508
+ 5 .3.1. Additional Dependencies : GSL
466
509
====================================
467
510
468
511
Retrieve the Gnu Scientific Library from
@@ -483,7 +526,7 @@ Then extract it and build it to a prefix of /usr/local:
483
526
484
527
485
528
486
- 4 .3.2. Additional Dependencies : Expat
529
+ 5 .3.2. Additional Dependencies : Expat
487
530
======================================
488
531
489
532
Get the expat sources:
@@ -502,7 +545,7 @@ Get the expat sources:
502
545
503
546
504
547
505
- 4 .3.3. Additional Dependencies : SIP
548
+ 5 .3.3. Additional Dependencies : SIP
506
549
====================================
507
550
508
551
Retrieve the python bindings toolkit SIP from
@@ -523,7 +566,7 @@ Then extract and build it to a prefix of /usr/local:
523
566
524
567
525
568
526
- 4 .3.4. Additional Dependencies : PyQt
569
+ 5 .3.4. Additional Dependencies : PyQt
527
570
=====================================
528
571
529
572
Make sure you have the latest python fom
@@ -559,7 +602,7 @@ Then extract and build it to a prefix of /usr/local:
559
602
560
603
561
604
562
- 4 .3.5. Additional Dependencies : Bison
605
+ 5 .3.5. Additional Dependencies : Bison
563
606
======================================
564
607
565
608
The version of bison available by default on Mac OSX is too old so you need to
@@ -581,7 +624,7 @@ Now build and install it to a prefix of /usr/local :
581
624
582
625
583
626
584
- 4 .4. Install CMAKE for OSX
627
+ 5 .4. Install CMAKE for OSX
585
628
==========================
586
629
587
630
Get the latest release from here:
@@ -599,7 +642,7 @@ At the time of writing the file I grabbed was:
599
642
Once downloaded open the dmg and run the installer
600
643
601
644
602
- 4 .5. Install subversion for OSX
645
+ 5 .5. Install subversion for OSX
603
646
===============================
604
647
605
648
The http://sourceforge.net/projects/macsvn/ (MacSVN) project has a downloadable
@@ -642,7 +685,7 @@ old) that is installed by MacOSX
642
685
Now close and reopen your shell to get the updated vars.
643
686
644
687
645
- 4 .6. Check out QGIS from SVN
688
+ 5 .6. Check out QGIS from SVN
646
689
============================
647
690
648
691
Now we are going to check out the sources for QGIS. First we will create a
@@ -689,7 +732,7 @@ this:
689
732
I suggest you press 'p' to accept the key permanently.
690
733
691
734
692
- 4 .7. Configure the build
735
+ 5 .7. Configure the build
693
736
========================
694
737
695
738
CMake supports out of source build so we will create a 'build' dir for the
@@ -719,7 +762,7 @@ Kyngesburye for this hint):
719
762
720
763
721
764
722
- 4 .8. GEOS Issues
765
+ 5 .8. GEOS Issues
723
766
================
724
767
725
768
I had some issues with GEOS headers so I made the following edits:
@@ -729,7 +772,7 @@ In file /Library/Frameworks/GEOS.framework/Headers/io.h, comment out line 61
729
772
In file /Library/Frameworks/GEOS.framework/Headers/geom.h, comment out line 145
730
773
731
774
732
- 4 .9. Building
775
+ 5 .9. Building
733
776
=============
734
777
735
778
Now we can start the build process:
@@ -745,11 +788,11 @@ If all built without errors you can then install it:
745
788
746
789
747
790
748
- 5 . Building on GNU/Linux
791
+ 6 . Building on GNU/Linux
749
792
========================
750
793
751
794
752
- 5 .1. Building QGIS with Qt4.x
795
+ 6 .1. Building QGIS with Qt4.x
753
796
=============================
754
797
755
798
*Requires:* Ubuntu Edgy / Debian derived distro
@@ -766,7 +809,7 @@ in use for a while, you may need to just skip those steps which are irrelevant
766
809
to you.
767
810
768
811
769
- 5 .2. Prepare apt
812
+ 6 .2. Prepare apt
770
813
================
771
814
772
815
The packages qgis depends on to build are available in the "universe" component
@@ -785,7 +828,7 @@ Now update your local sources database:
785
828
786
829
787
830
788
- 5 .3. Install Qt4
831
+ 6 .3. Install Qt4
789
832
================
790
833
791
834
@@ -831,13 +874,13 @@ Use the simple command line dialog that appears after running each of the
831
874
above commands to select the Qt4 version of the relevant applications.
832
875
833
876
834
- 5 .4. Install additional software dependencies required by QGIS
877
+ 6 .4. Install additional software dependencies required by QGIS
835
878
==============================================================
836
879
837
880
838
881
sudo apt-get install gdal-bin libgdal1-dev libgeos-dev proj \
839
882
libgdal-doc libhdf4g-dev libhdf4g-run python-dev \
840
- swig libgsl0-dev g++ libjasper-1.701-dev libtiff4-dev subversion \
883
+ libgsl0-dev g++ libjasper-1.701-dev libtiff4-dev subversion \
841
884
libsqlite3-dev sqlite3 ccache make libpq-dev flex bison cmake txt2tags \
842
885
python-qt4 python-qt4-dev python-sip4 sip4 python-sip4-dev
843
886
@@ -849,7 +892,7 @@ distributions (e.g. Debian or SuSE) only provide SIP < 4.5 and PyQt4 < 4.1. To i
849
892
language bindings you may need to build and install those packages from source.
850
893
851
894
852
- 5 .5. GRASS Specific Steps
895
+ 6 .5. GRASS Specific Steps
853
896
=========================
854
897
855
898
/!\ *Note:* If you don't need to build with GRASS support, you can
@@ -864,7 +907,7 @@ Now you can install grass from dapper:
864
907
/!\ You may need to explicitly state your grass version e.g. libgdal1-1.3.2-grass
865
908
866
909
867
- 5 .6. Setup ccache (Optional)
910
+ 6 .6. Setup ccache (Optional)
868
911
============================
869
912
870
913
You should also setup ccache to speed up compile times:
@@ -876,7 +919,7 @@ You should also setup ccache to speed up compile times:
876
919
877
920
878
921
879
- 5 .7. Prepare your development environment
922
+ 6 .7. Prepare your development environment
880
923
=========================================
881
924
882
925
As a convention I do all my development work in $HOME/dev/<language>, so in
@@ -891,7 +934,7 @@ this:
891
934
This directory path will be assumed for all instructions that follow.
892
935
893
936
894
- 5 .8. Check out the QGIS Source Code
937
+ 6 .8. Check out the QGIS Source Code
895
938
===================================
896
939
897
940
There are two ways the source can be checked out. Use the anonymous method
@@ -930,7 +973,7 @@ qgis.org certificate. Press 'p' to accept it permanently:
930
973
931
974
932
975
933
- 5 .9. Starting the compile
976
+ 6 .9. Starting the compile
934
977
=========================
935
978
936
979
I compile my development version of QGIS into my ~/apps directory to avoid
@@ -972,7 +1015,7 @@ Now on with the build:
972
1015
It may take a little while to build depending on your platform.
973
1016
974
1017
975
- 5 .10. Running QGIS
1018
+ 6 .10. Running QGIS
976
1019
==================
977
1020
978
1021
Now you can try to run QGIS:
@@ -985,15 +1028,15 @@ If all has worked properly the QGIS application should start up and appear
985
1028
on your screen.
986
1029
987
1030
988
- 6 . Creation of MSYS environment for compilation of Quantum GIS
1031
+ 7 . Creation of MSYS environment for compilation of Quantum GIS
989
1032
==============================================================
990
1033
991
1034
992
- 6 .1. Initial setup
1035
+ 7 .1. Initial setup
993
1036
==================
994
1037
995
1038
996
- 6 .1.1. MSYS
1039
+ 7 .1.1. MSYS
997
1040
===========
998
1041
999
1042
This is the environment that supplies many utilities from UNIX world in Windows and is needed
@@ -1008,7 +1051,7 @@ Install to c:\msys
1008
1051
All stuff we're going to compile is going to get to this directory (resp. its subdirs).
1009
1052
1010
1053
1011
- 6 .1.2. MinGW
1054
+ 7 .1.2. MinGW
1012
1055
============
1013
1056
1014
1057
Download from here:
@@ -1020,7 +1063,7 @@ Install to c:\msys\mingw
1020
1063
It suffices to download and install only g++ and mingw-make components.
1021
1064
1022
1065
1023
- 6 .1.3. Flex and Bison
1066
+ 7 .1.3. Flex and Bison
1024
1067
=====================
1025
1068
1026
1069
Flex and Bison are tools for generation of parsers, they're needed for GRASS and also QGIS compilation.
@@ -1036,11 +1079,11 @@ Download the following packages:
1036
1079
Unpack them all to c:\msys\local
1037
1080
1038
1081
1039
- 6 .2. Installing dependencies
1082
+ 7 .2. Installing dependencies
1040
1083
============================
1041
1084
1042
1085
1043
- 6 .2.1. Getting ready
1086
+ 7 .2.1. Getting ready
1044
1087
====================
1045
1088
1046
1089
Paul Kelly did a great job and prepared a package of precompiled libraries for GRASS.
@@ -1066,7 +1109,7 @@ Moreover he also left the notes how to compile it (for those interested):
1066
1109
Unpack the whole package to c:\msys\local
1067
1110
1068
1111
1069
- 6 .2.2. GDAL level one
1112
+ 7 .2.2. GDAL level one
1070
1113
=====================
1071
1114
1072
1115
Since Quantum GIS needs GDAL with GRASS support, we need to compile GDAL
@@ -1131,7 +1174,7 @@ Libtool on windows assumes a line length limit of 8192 for some reason and tries
1131
1174
Make and make install should be hassle free after this.
1132
1175
1133
1176
1134
- 6 .2.3. GRASS
1177
+ 7 .2.3. GRASS
1135
1178
============
1136
1179
1137
1180
Grab sources from CVS or use a weekly snapshot, see:
@@ -1158,7 +1201,7 @@ By the way, these pages might be useful:
1158
1201
- http://geni.ath.cx/grass.html
1159
1202
1160
1203
1161
- 6 .2.4. GDAL level two
1204
+ 7 .2.4. GDAL level two
1162
1205
=====================
1163
1206
1164
1207
At this stage, we'll use GDAL sources we've used before, only the compilation will be a bit different.
@@ -1182,7 +1225,7 @@ Then again, edit gdal-config and change line with CONFIG_LIBS
1182
1225
Now, GDAL should be able to work also with GRASS raster layers.
1183
1226
1184
1227
1185
- 6 .2.5. GEOS
1228
+ 7 .2.5. GEOS
1186
1229
===========
1187
1230
1188
1231
Download the sources:
@@ -1212,7 +1255,7 @@ Now, in MSYS console, go to the source directory and run:
1212
1255
1213
1256
1214
1257
1215
- 6 .2.6. SQLITE
1258
+ 7 .2.6. SQLITE
1216
1259
=============
1217
1260
1218
1261
You can use precompiled DLL, no need to compile from source:
@@ -1230,7 +1273,7 @@ Then download this archive:
1230
1273
and copy sqlite3.h to c:\msys\local\include
1231
1274
1232
1275
1233
- 6 .2.7. GSL
1276
+ 7 .2.7. GSL
1234
1277
==========
1235
1278
1236
1279
Download sources:
@@ -1248,7 +1291,7 @@ Run from MSYS console in the source directory:
1248
1291
1249
1292
1250
1293
1251
- 6 .2.8. EXPAT
1294
+ 7 .2.8. EXPAT
1252
1295
============
1253
1296
1254
1297
Download sources:
@@ -1266,7 +1309,7 @@ Run from MSYS console in the source directory:
1266
1309
1267
1310
1268
1311
1269
- 6 .2.9. POSTGRES
1312
+ 7 .2.9. POSTGRES
1270
1313
===============
1271
1314
1272
1315
We're going to use precompiled binaries. Use the link below for download:
@@ -1276,26 +1319,26 @@ We're going to use precompiled binaries. Use the link below for download:
1276
1319
copy contents of pgsql directory from the archive to c:\msys\local
1277
1320
1278
1321
1279
- 6 .3. Cleanup
1322
+ 7 .3. Cleanup
1280
1323
============
1281
1324
1282
1325
We're done with preparation of MSYS environment. Now you can delete all stuff in c:\msys\local\src - it takes quite a lot
1283
1326
of space and it's not necessary at all.
1284
1327
1285
1328
1286
- 7 . Building with MS Visual Studio
1329
+ 8 . Building with MS Visual Studio
1287
1330
=================================
1288
1331
1289
1332
Note that this does not currently include GRASS or Python plugins.
1290
1333
1291
1334
1292
- 7 .1. Setup Visual Studio
1335
+ 8 .1. Setup Visual Studio
1293
1336
========================
1294
1337
1295
1338
This section describes the setup required to allow Visual Studio to be used to build QGIS.
1296
1339
1297
1340
1298
- 7 .1.1. Express Edition
1341
+ 8 .1.1. Express Edition
1299
1342
======================
1300
1343
1301
1344
The free Express Edition lacks the platform SDK which contains headers and so on that are needed when building QGIS. The platform SDK can be installed as described here:
@@ -1310,7 +1353,7 @@ You will also need to perform the edits described here to remove the need for a
1310
1353
http://www.codeproject.com/wtl/WTLExpress.asp
1311
1354
1312
1355
1313
- 7 .1.2. All Editions
1356
+ 8 .1.2. All Editions
1314
1357
===================
1315
1358
1316
1359
You will need stdint.h and unistd.h. unistd.h comes with GnuWin32 version of flex & bison binaries (see later). stdint.h can be found here:
@@ -1319,13 +1362,13 @@ You will need stdint.h and unistd.h. unistd.h comes with GnuWin32 version of fle
1319
1362
Copy both of these to <vsinstalldir>\VC\include.
1320
1363
1321
1364
1322
- 7 .2. Download/Install Dependencies
1365
+ 8 .2. Download/Install Dependencies
1323
1366
==================================
1324
1367
1325
1368
This section describes the downloading and installation of the various QGIS dependencies.
1326
1369
1327
1370
1328
- 7 .2.1. Flex and Bison
1371
+ 8 .2.1. Flex and Bison
1329
1372
=====================
1330
1373
1331
1374
Flex and Bison are tools for generation of parsers, they're needed for GRASS and also QGIS compilation.
@@ -1337,15 +1380,15 @@ Download the following packages and run the installers:
1337
1380
http://gnuwin32.sourceforge.net/downlinks/bison.php
1338
1381
1339
1382
1340
- 7 .2.2. Qt
1383
+ 8 .2.2. Qt
1341
1384
=========
1342
1385
1343
1386
Build Qt following the instructions here:
1344
1387
1345
1388
http://wiki.qgis.org/qgiswiki/Building_QT_4_with_Visual_C%2B%2B_2005
1346
1389
1347
1390
1348
- 7 .2.3. Proj.4
1391
+ 8 .2.3. Proj.4
1349
1392
=============
1350
1393
1351
1394
Get proj.4 source from here:
@@ -1375,7 +1418,7 @@ Install by running the following in the top level directory setting PROJ_DIR as
1375
1418
This can also be added to a batch file.
1376
1419
1377
1420
1378
- 7 .2.4. GSL
1421
+ 8 .2.4. GSL
1379
1422
==========
1380
1423
1381
1424
Get gsl source from here:
@@ -1384,7 +1427,7 @@ Get gsl source from here:
1384
1427
Build using the gsl.sln file
1385
1428
1386
1429
1387
- 7 .2.5. GEOS
1430
+ 8 .2.5. GEOS
1388
1431
===========
1389
1432
1390
1433
Get geos from svn (svn checkout http://svn.refractions.net/geos/trunk geos).
@@ -1420,7 +1463,7 @@ Run the following in top level directory, setting GEOS_DIR as appropriate:
1420
1463
This can also be added to a batch file.
1421
1464
1422
1465
1423
- 7 .2.6. GDAL
1466
+ 8 .2.6. GDAL
1424
1467
===========
1425
1468
1426
1469
Get gdal from svn (svn checkout https://svn.osgeo.org/gdal/branches/1.4/gdal gdal).
@@ -1440,7 +1483,7 @@ and
1440
1483
1441
1484
1442
1485
1443
- 7 .2.7. PostGIS
1486
+ 8 .2.7. PostGIS
1444
1487
==============
1445
1488
1446
1489
Get PostGIS and the Windows version of PostgreSQL from here:
@@ -1449,7 +1492,7 @@ Get PostGIS and the Windows version of PostgreSQL from here:
1449
1492
Note the warning about not installing the version of PostGIS that comes with the PostgreSQL installer. Simply run the installers.
1450
1493
1451
1494
1452
- 7 .2.8. Expat
1495
+ 8 .2.8. Expat
1453
1496
============
1454
1497
1455
1498
Get expat from here:
@@ -1460,7 +1503,7 @@ You'll need expat-win32bin-2.0.1.exe.
1460
1503
Simply run the executable to install expat.
1461
1504
1462
1505
1463
- 7 .2.9. CMake
1506
+ 8 .2.9. CMake
1464
1507
============
1465
1508
1466
1509
Get CMake from here:
@@ -1469,7 +1512,7 @@ Get CMake from here:
1469
1512
You'll need cmake-<version>-win32-x86.exe. Simply run this to install CMake.
1470
1513
1471
1514
1472
- 7 .3. Building QGIS with CMAKE
1515
+ 8 .3. Building QGIS with CMAKE
1473
1516
=============================
1474
1517
1475
1518
Get QGIS source from svn (svn co https://svn.qgis.org/repos/qgis/trunk/qgis qgis).
@@ -1499,7 +1542,7 @@ Build the ALL_BUILD project. This will build all the QGIS binaries along with al
1499
1542
You will also either need to add all the dependency dlls to the QGIS install directory or add their respective directories to your PATH.
1500
1543
1501
1544
1502
- 8 . Authors and Acknowledgments
1545
+ 9 . Authors and Acknowledgments
1503
1546
==============================
1504
1547
1505
1548
The follwing people have contributed to this document:
0 commit comments