49
49
5.8. Check out the QGIS Source Code
50
50
5.9. Starting the compile
51
51
5.10. Running QGIS
52
- 5.11. Initial setup
53
- 5.11.1. MSYS
54
- 5.11.2. MinGW
55
- 5.11.3. Flex and Bison
56
- 5.12. Installing dependencies
57
- 5.12.1. Getting ready
58
- 5.12.2. GDAL level one
59
- 5.12.3. GRASS
60
- 5.12.4. GDAL level two
61
- 5.12.5. GEOS
62
- 5.12.6. SQLITE
63
- 5.12.7. GSL
64
- 5.12.8. EXPAT
65
- 5.12.9. POSTGRES
66
- 5.13. Cleanup
67
- 6. Further help and information
68
- 7. Authors and Acknowledgments
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. Further help and information
69
+ 8. Authors and Acknowledgments
69
70
70
71
71
72
------------------------------------------------------------------------
@@ -772,13 +773,17 @@ above commands to select the Qt4 version of the relevant applications.
772
773
773
774
774
775
sudo apt-get install gdal-bin libgdal1-dev libgeos-dev proj libtool \
775
- libgdal-doc libhdf4g-dev libhdf4g-run python-dev \
776
- swig libgsl0-dev g++ libjasper-1.701-dev libtiff4-dev subversion gsl-bin \
776
+ libgdal-doc libhdf4g-dev libhdf4g-run python-dev python-qt4-dev sip4 \
777
+ swig libgsl0-dev g++ libjasper-1.701-dev libtiff4-dev subversion gsl-bin \
777
778
libsqlite3-dev sqlite3 ccache make libpq-dev flex bison
778
779
779
780
780
781
/!\ Debian users should use libgdal-dev above rather
781
782
783
+ /!\ *Note:* For python language bindings SIP >= 4.5 and PyQt4 >= 4.1 is required! Some stable GNU/Linux
784
+ distributions (e.g. Debian or SuSE) only provide SIP < 4.5 and PyQt4 < 4.1. To include support for python
785
+ language bindings you need to build and install those packages from source.
786
+
782
787
783
788
5.5. GRASS Specific Steps
784
789
=========================
@@ -914,16 +919,17 @@ Now you can try to run QGIS:
914
919
If all has worked properly the QGIS application should start up and appear
915
920
on your screen.
916
921
917
- = Creation of MSYS environment for compilation of Quantum GIS
918
- (including all dark magic involved) =
919
922
923
+ 6. Creation of MSYS environment for compilation of Quantum GIS
924
+ ==============================================================
920
925
921
- 5.11. Initial setup
922
- ===================
923
926
927
+ 6.1. Initial setup
928
+ ==================
924
929
925
- 5.11.1. MSYS
926
- ============
930
+
931
+ 6.1.1. MSYS
932
+ ===========
927
933
928
934
This is the environment that supplies many utilities from UNIX world in Windows and is needed
929
935
by many dependencies to be able to compile.
@@ -937,8 +943,8 @@ Install to c:\msys
937
943
All stuff we're going to compile is going to get to this directory (resp. its subdirs).
938
944
939
945
940
- 5.11 .2. MinGW
941
- =============
946
+ 6.1 .2. MinGW
947
+ ============
942
948
943
949
Download from here:
944
950
@@ -949,8 +955,8 @@ Install to c:\msys\mingw
949
955
It suffices to download and install only g++ and mingw-make components.
950
956
951
957
952
- 5.11 .3. Flex and Bison
953
- ======================
958
+ 6.1 .3. Flex and Bison
959
+ =====================
954
960
955
961
Flex and Bison are tools for generation of parsers, they're needed for GRASS and also QGIS compilation.
956
962
@@ -965,12 +971,12 @@ Download the following packages:
965
971
Unpack them all to c:\msys\local
966
972
967
973
968
- 5.12 . Installing dependencies
969
- =============================
974
+ 6.2 . Installing dependencies
975
+ ============================
970
976
971
977
972
- 5.12 .1. Getting ready
973
- =====================
978
+ 6.2 .1. Getting ready
979
+ ====================
974
980
975
981
Paul Kelly did a great job and prepared a package of precompiled libraries for GRASS.
976
982
The package currently includes:
@@ -995,8 +1001,8 @@ Moreover he also left the notes how to compile it (for those interested):
995
1001
Unpack the whole package to c:\msys\local
996
1002
997
1003
998
- 5.12 .2. GDAL level one
999
- ======================
1004
+ 6.2 .2. GDAL level one
1005
+ =====================
1000
1006
1001
1007
Since Quantum GIS needs GDAL with GRASS support, we need to compile GDAL
1002
1008
from source - Paul Kelly's package doesn't include GRASS support in GDAL.
@@ -1060,8 +1066,8 @@ Libtool on windows assumes a line length limit of 8192 for some reason and tries
1060
1066
Make and make install should be hassle free after this.
1061
1067
1062
1068
1063
- 5.12 .3. GRASS
1064
- =============
1069
+ 6.2 .3. GRASS
1070
+ ============
1065
1071
1066
1072
Grab sources from CVS or use a weekly snapshot, see:
1067
1073
@@ -1087,8 +1093,8 @@ By the way, these pages might be useful:
1087
1093
- http://geni.ath.cx/grass.html
1088
1094
1089
1095
1090
- 5.12 .4. GDAL level two
1091
- ======================
1096
+ 6.2 .4. GDAL level two
1097
+ =====================
1092
1098
1093
1099
At this stage, we'll use GDAL sources we've used before, only the compilation will be a bit different.
1094
1100
@@ -1111,8 +1117,8 @@ Then again, edit gdal-config and change line with CONFIG_LIBS
1111
1117
Now, GDAL should be able to work also with GRASS raster layers.
1112
1118
1113
1119
1114
- 5.12 .5. GEOS
1115
- ============
1120
+ 6.2 .5. GEOS
1121
+ ===========
1116
1122
1117
1123
Download the sources:
1118
1124
@@ -1141,8 +1147,8 @@ Now, in MSYS console, go to the source directory and run:
1141
1147
1142
1148
1143
1149
1144
- 5.12 .6. SQLITE
1145
- ==============
1150
+ 6.2 .6. SQLITE
1151
+ =============
1146
1152
1147
1153
You can use precompiled DLL, no need to compile from source:
1148
1154
@@ -1159,8 +1165,8 @@ Then download this archive:
1159
1165
and copy sqlite3.h to c:\msys\local\include
1160
1166
1161
1167
1162
- 5.12 .7. GSL
1163
- ===========
1168
+ 6.2 .7. GSL
1169
+ ==========
1164
1170
1165
1171
Download sources:
1166
1172
@@ -1177,8 +1183,8 @@ Run from MSYS console in the source directory:
1177
1183
1178
1184
1179
1185
1180
- 5.12 .8. EXPAT
1181
- =============
1186
+ 6.2 .8. EXPAT
1187
+ ============
1182
1188
1183
1189
Download sources:
1184
1190
@@ -1195,8 +1201,8 @@ Run from MSYS console in the source directory:
1195
1201
1196
1202
1197
1203
1198
- 5.12 .9. POSTGRES
1199
- ================
1204
+ 6.2 .9. POSTGRES
1205
+ ===============
1200
1206
1201
1207
We're going to use precompiled binaries. Use the link below for download:
1202
1208
@@ -1205,21 +1211,21 @@ We're going to use precompiled binaries. Use the link below for download:
1205
1211
copy contents of pgsql directory from the archive to c:\msys\local
1206
1212
1207
1213
1208
- 5.13 . Cleanup
1209
- =============
1214
+ 6.3 . Cleanup
1215
+ ============
1210
1216
1211
1217
We're done with preparation of MSYS environment. Now you can delete all stuff in c:\msys\local\src - it takes quite a lot
1212
1218
of space and it's not necessary at all.
1213
1219
1214
1220
1215
- 6 . Further help and information
1221
+ 7 . Further help and information
1216
1222
===============================
1217
1223
1218
1224
Please visit http://qgis.org for information on joining our mailing lists
1219
1225
and getting involved in the project further.
1220
1226
1221
1227
1222
- 7 . Authors and Acknowledgments
1228
+ 8 . Authors and Acknowledgments
1223
1229
==============================
1224
1230
1225
1231
The follwing people have contributed to this document:
0 commit comments