5
5
6
6
1. Introduction
7
7
2. General Build Note
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
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
65
77
7.2.5. GEOS
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
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. Building under Windows using MSVC Express
84
+ 8.1. System preparation
85
+ 8.2. Install Visual Studio Express 2005
86
86
9. Authors and Acknowledgments
87
87
88
88
@@ -141,51 +141,11 @@ For complete information, see the wiki at:
141
141
http://wiki.qgis.org/qgiswiki/Building_with_CMake
142
142
143
143
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
144
+ 3. Building under windows using msys
185
145
====================================
186
146
187
147
188
- 4 .1. MSYS:
148
+ 3 .1. MSYS:
189
149
==========
190
150
191
151
MSYS provides a unix style build environment under windows. We have created a
@@ -202,7 +162,7 @@ our pre-made one, detailed instructions are provided elsewhere in this
202
162
document.
203
163
204
164
205
- 4 .2. Qt4.3
165
+ 3 .2. Qt4.3
206
166
==========
207
167
208
168
Download qt4.3 opensource precompiled edition exe and install (including the
@@ -238,7 +198,7 @@ following command:
238
198
239
199
240
200
241
- 4 .3. Flex and Bison
201
+ 3 .3. Flex and Bison
242
202
===================
243
203
244
204
*** Note I think this section can be removed as it should be installed int the
@@ -249,23 +209,23 @@ http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16424
249
209
(the zip bin) and extract it into c:\msys\mingw\bin
250
210
251
211
252
- 4 .4. Python stuff: (optional)
212
+ 3 .4. Python stuff: (optional)
253
213
=============================
254
214
255
215
Follow this section in case you would like to use Python bindings for QGIS. To
256
216
be able to compile bindings, you need to compile SIP and PyQt4 from sources as
257
217
their installer doesn't include some development files which are necessary.
258
218
259
219
260
- 4 .4.1. Download and install Python - use Windows installer
220
+ 3 .4.1. Download and install Python - use Windows installer
261
221
==========================================================
262
222
263
223
(It doesn't matter to what folder you'll install it)
264
224
265
225
http://python.org/download/
266
226
267
227
268
- 4 .4.2. Download SIP and PyQt4 sources
228
+ 3 .4.2. Download SIP and PyQt4 sources
269
229
=====================================
270
230
271
231
http://www.riverbankcomputing.com/Downloads/sip4/
@@ -275,7 +235,7 @@ Extract each of the above zip files in a temporary directory. Make sure
275
235
to get versions that match your current Qt installed version.
276
236
277
237
278
- 4 .4.3. Compile SIP
238
+ 3 .4.3. Compile SIP
279
239
==================
280
240
281
241
@@ -286,7 +246,7 @@ to get versions that match your current Qt installed version.
286
246
287
247
288
248
289
- 4 .4.4. Compile PyQt
249
+ 3 .4.4. Compile PyQt
290
250
===================
291
251
292
252
@@ -297,14 +257,14 @@ to get versions that match your current Qt installed version.
297
257
298
258
299
259
300
- 4 .4.5. Final python notes
260
+ 3 .4.5. Final python notes
301
261
=========================
302
262
303
263
/!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
304
264
successfull install, they're not needed anymore.
305
265
306
266
307
- 4 .5. Subversion:
267
+ 3 .5. Subversion:
308
268
================
309
269
310
270
In order to check out QGIS sources from the repository, you need Subversion
@@ -313,15 +273,15 @@ client. This installer should work fine:
313
273
http://subversion.tigris.org/files/documents/15/36797/svn-1.4.3-setup.exe
314
274
315
275
316
- 4 .6. CMake:
276
+ 3 .6. CMake:
317
277
===========
318
278
319
279
CMake is build system used by Quantum GIS. Download it from here:
320
280
321
281
http://www.cmake.org/files/v2.4/cmake-2.4.6-win32-x86.exe
322
282
323
283
324
- 4 .7. QGIS:
284
+ 3 .7. QGIS:
325
285
==========
326
286
327
287
Start a cmd.exe window ( Start -> Run -> cmd.exe ) Create development
@@ -344,7 +304,7 @@ For svn 0.8 branch
344
304
345
305
346
306
347
- 4 .8. Compiling:
307
+ 3 .8. Compiling:
348
308
===============
349
309
350
310
As a background read the generic building with CMake notes at the end of
@@ -368,7 +328,7 @@ Create build directory and set it as current directory:
368
328
369
329
370
330
371
- 4 .9. Configuration
331
+ 3 .9. Configuration
372
332
==================
373
333
374
334
@@ -393,15 +353,15 @@ install prefix to its default c:\program files\
393
353
When configuration is done, click 'OK' to exit the setup utility.
394
354
395
355
396
- 4 .10. Compilation and installation
356
+ 3 .10. Compilation and installation
397
357
==================================
398
358
399
359
400
360
make make install
401
361
402
362
403
363
404
- 4 .11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
364
+ 3 .11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
405
365
=================================================================================
406
366
407
367
Make sure to copy all .dll:s needed to the same directory as the qgis.exe
@@ -422,7 +382,7 @@ c:\msys\local\bin and c:\msys\local\lib directories, so the DLLs will be
422
382
used from that place.
423
383
424
384
425
- 4 .12. Create the installation package: (optional)
385
+ 3 .12. Create the installation package: (optional)
426
386
=================================================
427
387
428
388
Downlad and install NSIS from (http://nsis.sourceforge.net/Main_Page)
@@ -432,21 +392,21 @@ tree. Read the READMEfile there and follow the instructions. Next right click
432
392
on qgis.nsi and choose the option 'Compile NSIS Script'.
433
393
434
394
435
- 5 . Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
395
+ 4 . Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
436
396
==============================================================
437
397
438
398
In this approach I will try to avoid as much as possible building dependencies
439
399
from source and rather use frameworks wherever possible.
440
400
441
401
442
- 5 .1. Install XCODE
402
+ 4 .1. Install XCODE
443
403
==================
444
404
445
405
I recommend to get the latest xcode dmg from the Apple XDC Web site. Install
446
406
XCODE after the ~941mb download is complete.
447
407
448
408
449
- 5 .2. Install Qt4 from .dmg
409
+ 4 .2. Install Qt4 from .dmg
450
410
==========================
451
411
452
412
You need a minimum of Qt4.2. I suggest getting the latest (at time of writing).
@@ -482,7 +442,7 @@ Second change the default mkspec symlink so that it points to macx-g++:
482
442
483
443
484
444
485
- 5 .3. Install development frameworks for QGIS dependencies
445
+ 4 .3. Install development frameworks for QGIS dependencies
486
446
=========================================================
487
447
488
448
Download William Kyngesburye's excellent all in one framework that includes
@@ -505,7 +465,7 @@ There are some additional dependencies that at the time of writing are not
505
465
provided as frameworks so we will need to build these from source.
506
466
507
467
508
- 5 .3.1. Additional Dependencies : GSL
468
+ 4 .3.1. Additional Dependencies : GSL
509
469
====================================
510
470
511
471
Retrieve the Gnu Scientific Library from
@@ -526,7 +486,7 @@ Then extract it and build it to a prefix of /usr/local:
526
486
527
487
528
488
529
- 5 .3.2. Additional Dependencies : Expat
489
+ 4 .3.2. Additional Dependencies : Expat
530
490
======================================
531
491
532
492
Get the expat sources:
@@ -545,7 +505,7 @@ Get the expat sources:
545
505
546
506
547
507
548
- 5 .3.3. Additional Dependencies : SIP
508
+ 4 .3.3. Additional Dependencies : SIP
549
509
====================================
550
510
551
511
Retrieve the python bindings toolkit SIP from
@@ -566,7 +526,7 @@ Then extract and build it to a prefix of /usr/local:
566
526
567
527
568
528
569
- 5 .3.4. Additional Dependencies : PyQt
529
+ 4 .3.4. Additional Dependencies : PyQt
570
530
=====================================
571
531
572
532
Make sure you have the latest python fom
@@ -602,7 +562,7 @@ Then extract and build it to a prefix of /usr/local:
602
562
603
563
604
564
605
- 5 .3.5. Additional Dependencies : Bison
565
+ 4 .3.5. Additional Dependencies : Bison
606
566
======================================
607
567
608
568
The version of bison available by default on Mac OSX is too old so you need to
@@ -624,7 +584,7 @@ Now build and install it to a prefix of /usr/local :
624
584
625
585
626
586
627
- 5 .4. Install CMAKE for OSX
587
+ 4 .4. Install CMAKE for OSX
628
588
==========================
629
589
630
590
Get the latest release from here:
@@ -642,7 +602,7 @@ At the time of writing the file I grabbed was:
642
602
Once downloaded open the dmg and run the installer
643
603
644
604
645
- 5 .5. Install subversion for OSX
605
+ 4 .5. Install subversion for OSX
646
606
===============================
647
607
648
608
The http://sourceforge.net/projects/macsvn/ (MacSVN) project has a downloadable
@@ -685,7 +645,7 @@ old) that is installed by MacOSX
685
645
Now close and reopen your shell to get the updated vars.
686
646
687
647
688
- 5 .6. Check out QGIS from SVN
648
+ 4 .6. Check out QGIS from SVN
689
649
============================
690
650
691
651
Now we are going to check out the sources for QGIS. First we will create a
@@ -732,7 +692,7 @@ this:
732
692
I suggest you press 'p' to accept the key permanently.
733
693
734
694
735
- 5 .7. Configure the build
695
+ 4 .7. Configure the build
736
696
========================
737
697
738
698
CMake supports out of source build so we will create a 'build' dir for the
@@ -762,7 +722,7 @@ Kyngesburye for this hint):
762
722
763
723
764
724
765
- 5 .8. GEOS Issues
725
+ 4 .8. GEOS Issues
766
726
================
767
727
768
728
I had some issues with GEOS headers so I made the following edits:
@@ -772,7 +732,7 @@ In file /Library/Frameworks/GEOS.framework/Headers/io.h, comment out line 61
772
732
In file /Library/Frameworks/GEOS.framework/Headers/geom.h, comment out line 145
773
733
774
734
775
- 5 .9. Building
735
+ 4 .9. Building
776
736
=============
777
737
778
738
Now we can start the build process:
@@ -788,11 +748,11 @@ If all built without errors you can then install it:
788
748
789
749
790
750
791
- 6 . Building on GNU/Linux
751
+ 5 . Building on GNU/Linux
792
752
========================
793
753
794
754
795
- 6 .1. Building QGIS with Qt4.x
755
+ 5 .1. Building QGIS with Qt4.x
796
756
=============================
797
757
798
758
*Requires:* Ubuntu Edgy / Debian derived distro
@@ -809,7 +769,7 @@ in use for a while, you may need to just skip those steps which are irrelevant
809
769
to you.
810
770
811
771
812
- 6 .2. Prepare apt
772
+ 5 .2. Prepare apt
813
773
================
814
774
815
775
The packages qgis depends on to build are available in the "universe" component
@@ -828,7 +788,7 @@ Now update your local sources database:
828
788
829
789
830
790
831
- 6 .3. Install Qt4
791
+ 5 .3. Install Qt4
832
792
================
833
793
834
794
@@ -874,7 +834,7 @@ Use the simple command line dialog that appears after running each of the
874
834
above commands to select the Qt4 version of the relevant applications.
875
835
876
836
877
- 6 .4. Install additional software dependencies required by QGIS
837
+ 5 .4. Install additional software dependencies required by QGIS
878
838
==============================================================
879
839
880
840
@@ -892,7 +852,7 @@ distributions (e.g. Debian or SuSE) only provide SIP < 4.5 and PyQt4 < 4.1. To i
892
852
language bindings you may need to build and install those packages from source.
893
853
894
854
895
- 6 .5. GRASS Specific Steps
855
+ 5 .5. GRASS Specific Steps
896
856
=========================
897
857
898
858
/!\ *Note:* If you don't need to build with GRASS support, you can
@@ -907,7 +867,7 @@ Now you can install grass from dapper:
907
867
/!\ You may need to explicitly state your grass version e.g. libgdal1-1.3.2-grass
908
868
909
869
910
- 6 .6. Setup ccache (Optional)
870
+ 5 .6. Setup ccache (Optional)
911
871
============================
912
872
913
873
You should also setup ccache to speed up compile times:
@@ -919,7 +879,7 @@ You should also setup ccache to speed up compile times:
919
879
920
880
921
881
922
- 6 .7. Prepare your development environment
882
+ 5 .7. Prepare your development environment
923
883
=========================================
924
884
925
885
As a convention I do all my development work in $HOME/dev/<language>, so in
@@ -934,7 +894,7 @@ this:
934
894
This directory path will be assumed for all instructions that follow.
935
895
936
896
937
- 6 .8. Check out the QGIS Source Code
897
+ 5 .8. Check out the QGIS Source Code
938
898
===================================
939
899
940
900
There are two ways the source can be checked out. Use the anonymous method
@@ -973,7 +933,7 @@ qgis.org certificate. Press 'p' to accept it permanently:
973
933
974
934
975
935
976
- 6 .9. Starting the compile
936
+ 5 .9. Starting the compile
977
937
=========================
978
938
979
939
I compile my development version of QGIS into my ~/apps directory to avoid
@@ -1015,7 +975,7 @@ Now on with the build:
1015
975
It may take a little while to build depending on your platform.
1016
976
1017
977
1018
- 6 .10. Running QGIS
978
+ 5 .10. Running QGIS
1019
979
==================
1020
980
1021
981
Now you can try to run QGIS:
@@ -1028,15 +988,15 @@ If all has worked properly the QGIS application should start up and appear
1028
988
on your screen.
1029
989
1030
990
1031
- 7 . Creation of MSYS environment for compilation of Quantum GIS
991
+ 6 . Creation of MSYS environment for compilation of Quantum GIS
1032
992
==============================================================
1033
993
1034
994
1035
- 7 .1. Initial setup
995
+ 6 .1. Initial setup
1036
996
==================
1037
997
1038
998
1039
- 7 .1.1. MSYS
999
+ 6 .1.1. MSYS
1040
1000
===========
1041
1001
1042
1002
This is the environment that supplies many utilities from UNIX world in Windows and is needed
@@ -1051,7 +1011,7 @@ Install to c:\msys
1051
1011
All stuff we're going to compile is going to get to this directory (resp. its subdirs).
1052
1012
1053
1013
1054
- 7 .1.2. MinGW
1014
+ 6 .1.2. MinGW
1055
1015
============
1056
1016
1057
1017
Download from here:
@@ -1063,7 +1023,7 @@ Install to c:\msys\mingw
1063
1023
It suffices to download and install only g++ and mingw-make components.
1064
1024
1065
1025
1066
- 7 .1.3. Flex and Bison
1026
+ 6 .1.3. Flex and Bison
1067
1027
=====================
1068
1028
1069
1029
Flex and Bison are tools for generation of parsers, they're needed for GRASS and also QGIS compilation.
@@ -1079,11 +1039,11 @@ Download the following packages:
1079
1039
Unpack them all to c:\msys\local
1080
1040
1081
1041
1082
- 7 .2. Installing dependencies
1042
+ 6 .2. Installing dependencies
1083
1043
============================
1084
1044
1085
1045
1086
- 7 .2.1. Getting ready
1046
+ 6 .2.1. Getting ready
1087
1047
====================
1088
1048
1089
1049
Paul Kelly did a great job and prepared a package of precompiled libraries for GRASS.
@@ -1109,7 +1069,7 @@ Moreover he also left the notes how to compile it (for those interested):
1109
1069
Unpack the whole package to c:\msys\local
1110
1070
1111
1071
1112
- 7 .2.2. GDAL level one
1072
+ 6 .2.2. GDAL level one
1113
1073
=====================
1114
1074
1115
1075
Since Quantum GIS needs GDAL with GRASS support, we need to compile GDAL
@@ -1174,7 +1134,7 @@ Libtool on windows assumes a line length limit of 8192 for some reason and tries
1174
1134
Make and make install should be hassle free after this.
1175
1135
1176
1136
1177
- 7 .2.3. GRASS
1137
+ 6 .2.3. GRASS
1178
1138
============
1179
1139
1180
1140
Grab sources from CVS or use a weekly snapshot, see:
@@ -1201,7 +1161,7 @@ By the way, these pages might be useful:
1201
1161
- http://geni.ath.cx/grass.html
1202
1162
1203
1163
1204
- 7 .2.4. GDAL level two
1164
+ 6 .2.4. GDAL level two
1205
1165
=====================
1206
1166
1207
1167
At this stage, we'll use GDAL sources we've used before, only the compilation will be a bit different.
@@ -1225,7 +1185,7 @@ Then again, edit gdal-config and change line with CONFIG_LIBS
1225
1185
Now, GDAL should be able to work also with GRASS raster layers.
1226
1186
1227
1187
1228
- 7 .2.5. GEOS
1188
+ 6 .2.5. GEOS
1229
1189
===========
1230
1190
1231
1191
Download the sources:
@@ -1255,7 +1215,7 @@ Now, in MSYS console, go to the source directory and run:
1255
1215
1256
1216
1257
1217
1258
- 7 .2.6. SQLITE
1218
+ 6 .2.6. SQLITE
1259
1219
=============
1260
1220
1261
1221
You can use precompiled DLL, no need to compile from source:
@@ -1273,7 +1233,7 @@ Then download this archive:
1273
1233
and copy sqlite3.h to c:\msys\local\include
1274
1234
1275
1235
1276
- 7 .2.7. GSL
1236
+ 6 .2.7. GSL
1277
1237
==========
1278
1238
1279
1239
Download sources:
@@ -1291,7 +1251,7 @@ Run from MSYS console in the source directory:
1291
1251
1292
1252
1293
1253
1294
- 7 .2.8. EXPAT
1254
+ 6 .2.8. EXPAT
1295
1255
============
1296
1256
1297
1257
Download sources:
@@ -1309,7 +1269,7 @@ Run from MSYS console in the source directory:
1309
1269
1310
1270
1311
1271
1312
- 7 .2.9. POSTGRES
1272
+ 6 .2.9. POSTGRES
1313
1273
===============
1314
1274
1315
1275
We're going to use precompiled binaries. Use the link below for download:
@@ -1319,26 +1279,30 @@ We're going to use precompiled binaries. Use the link below for download:
1319
1279
copy contents of pgsql directory from the archive to c:\msys\local
1320
1280
1321
1281
1322
- 7 .3. Cleanup
1282
+ 6 .3. Cleanup
1323
1283
============
1324
1284
1325
1285
We're done with preparation of MSYS environment. Now you can delete all stuff in c:\msys\local\src - it takes quite a lot
1326
1286
of space and it's not necessary at all.
1327
1287
1328
1288
1329
- 8 . Building with MS Visual Studio
1289
+ 7 . Building with MS Visual Studio
1330
1290
=================================
1331
1291
1292
+ /!\ This section describes a process where you build all dependencies yourself. See the section
1293
+ after this for a simpler procedure where we have all the dependencies you need pre-packaged
1294
+ and we focus just on getting Visual Studio Express set up and building QGIS.
1295
+
1332
1296
Note that this does not currently include GRASS or Python plugins.
1333
1297
1334
1298
1335
- 8 .1. Setup Visual Studio
1299
+ 7 .1. Setup Visual Studio
1336
1300
========================
1337
1301
1338
1302
This section describes the setup required to allow Visual Studio to be used to build QGIS.
1339
1303
1340
1304
1341
- 8 .1.1. Express Edition
1305
+ 7 .1.1. Express Edition
1342
1306
======================
1343
1307
1344
1308
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:
@@ -1353,7 +1317,7 @@ You will also need to perform the edits described here to remove the need for a
1353
1317
http://www.codeproject.com/wtl/WTLExpress.asp
1354
1318
1355
1319
1356
- 8 .1.2. All Editions
1320
+ 7 .1.2. All Editions
1357
1321
===================
1358
1322
1359
1323
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:
@@ -1362,13 +1326,13 @@ You will need stdint.h and unistd.h. unistd.h comes with GnuWin32 version of fle
1362
1326
Copy both of these to <vsinstalldir>\VC\include.
1363
1327
1364
1328
1365
- 8 .2. Download/Install Dependencies
1329
+ 7 .2. Download/Install Dependencies
1366
1330
==================================
1367
1331
1368
1332
This section describes the downloading and installation of the various QGIS dependencies.
1369
1333
1370
1334
1371
- 8 .2.1. Flex and Bison
1335
+ 7 .2.1. Flex and Bison
1372
1336
=====================
1373
1337
1374
1338
Flex and Bison are tools for generation of parsers, they're needed for GRASS and also QGIS compilation.
@@ -1380,15 +1344,15 @@ Download the following packages and run the installers:
1380
1344
http://gnuwin32.sourceforge.net/downlinks/bison.php
1381
1345
1382
1346
1383
- 8 .2.2. Qt
1347
+ 7 .2.2. Qt
1384
1348
=========
1385
1349
1386
1350
Build Qt following the instructions here:
1387
1351
1388
1352
http://wiki.qgis.org/qgiswiki/Building_QT_4_with_Visual_C%2B%2B_2005
1389
1353
1390
1354
1391
- 8 .2.3. Proj.4
1355
+ 7 .2.3. Proj.4
1392
1356
=============
1393
1357
1394
1358
Get proj.4 source from here:
@@ -1418,7 +1382,7 @@ Install by running the following in the top level directory setting PROJ_DIR as
1418
1382
This can also be added to a batch file.
1419
1383
1420
1384
1421
- 8 .2.4. GSL
1385
+ 7 .2.4. GSL
1422
1386
==========
1423
1387
1424
1388
Get gsl source from here:
@@ -1427,7 +1391,7 @@ Get gsl source from here:
1427
1391
Build using the gsl.sln file
1428
1392
1429
1393
1430
- 8 .2.5. GEOS
1394
+ 7 .2.5. GEOS
1431
1395
===========
1432
1396
1433
1397
Get geos from svn (svn checkout http://svn.refractions.net/geos/trunk geos).
@@ -1463,7 +1427,7 @@ Run the following in top level directory, setting GEOS_DIR as appropriate:
1463
1427
This can also be added to a batch file.
1464
1428
1465
1429
1466
- 8 .2.6. GDAL
1430
+ 7 .2.6. GDAL
1467
1431
===========
1468
1432
1469
1433
Get gdal from svn (svn checkout https://svn.osgeo.org/gdal/branches/1.4/gdal gdal).
@@ -1483,7 +1447,7 @@ and
1483
1447
1484
1448
1485
1449
1486
- 8 .2.7. PostGIS
1450
+ 7 .2.7. PostGIS
1487
1451
==============
1488
1452
1489
1453
Get PostGIS and the Windows version of PostgreSQL from here:
@@ -1492,7 +1456,7 @@ Get PostGIS and the Windows version of PostgreSQL from here:
1492
1456
Note the warning about not installing the version of PostGIS that comes with the PostgreSQL installer. Simply run the installers.
1493
1457
1494
1458
1495
- 8 .2.8. Expat
1459
+ 7 .2.8. Expat
1496
1460
============
1497
1461
1498
1462
Get expat from here:
@@ -1503,7 +1467,7 @@ You'll need expat-win32bin-2.0.1.exe.
1503
1467
Simply run the executable to install expat.
1504
1468
1505
1469
1506
- 8 .2.9. CMake
1470
+ 7 .2.9. CMake
1507
1471
============
1508
1472
1509
1473
Get CMake from here:
@@ -1512,7 +1476,7 @@ Get CMake from here:
1512
1476
You'll need cmake-<version>-win32-x86.exe. Simply run this to install CMake.
1513
1477
1514
1478
1515
- 8 .3. Building QGIS with CMAKE
1479
+ 7 .3. Building QGIS with CMAKE
1516
1480
=============================
1517
1481
1518
1482
Get QGIS source from svn (svn co https://svn.qgis.org/repos/qgis/trunk/qgis qgis).
@@ -1542,6 +1506,49 @@ Build the ALL_BUILD project. This will build all the QGIS binaries along with al
1542
1506
You will also either need to add all the dependency dlls to the QGIS install directory or add their respective directories to your PATH.
1543
1507
1544
1508
1509
+ 8. Building under Windows using MSVC Express
1510
+ ============================================
1511
+
1512
+ /!\ Note: Building under MSVC is still a work in progress. In particular the
1513
+ following dont work yet: python, grass, postgis connections.
1514
+
1515
+ /!\ This section of the document is in draft form and is not ready to be used
1516
+ yet.
1517
+
1518
+
1519
+ 8.1. System preparation
1520
+ =======================
1521
+
1522
+ I started with a clean XP install with Service Pack 2 and all patches applied.
1523
+ I have already compiled all the dependencies you need for gdal, expat etc,
1524
+ so this tutorial wont cover compiling those from source too. Since compiling
1525
+ these dependencies was a somewhat painful task I hope my precompiled libs
1526
+ will be adequate. If not I suggest you consult the individual projects for
1527
+ specific build documentation and support. Lets go over the process in a nutshell
1528
+ before we begin:
1529
+
1530
+ * Install XP (I used a Parallels virtual machine)
1531
+ * Install Visual Studio Express 2005 sp1
1532
+ * Install the Microsoft Platform SDK
1533
+ * Install command line subversion client
1534
+ * Install library dependencies bundle
1535
+ * Install Qt 4.3.2
1536
+ * Check out QGIS sources
1537
+ * Compile QGIS
1538
+ * Create setup.exe installer for QGIS
1539
+
1540
+
1541
+ 8.2. Install Visual Studio Express 2005
1542
+ =======================================
1543
+
1544
+ Get this Visual Studio Express 2005 sp1 for C++ here:
1545
+
1546
+ http://msdn2.microsoft.com/en-us/express/aa975050.aspx
1547
+
1548
+ The above page is confusing as it has lots of other stuff on it - just scroll
1549
+ down until you find a link labelled "Download Visual C++ 2005 Express SP1 �"
1550
+
1551
+
1545
1552
9. Authors and Acknowledgments
1546
1553
==============================
1547
1554
0 commit comments