@@ -49,7 +49,8 @@ Building QGIS from source - step by step
49
49
5.7. Prepare your development environment
50
50
5.8. Check out the QGIS Source Code
51
51
5.9. Starting the compile
52
- 5.10. Running QGIS
52
+ 5.10. Building Debian packages
53
+ 5.11. Running QGIS
53
54
6. Creation of MSYS environment for compilation of Quantum GIS
54
55
6.1. Initial setup
55
56
6.1.1. MSYS
@@ -150,9 +151,9 @@ simply copy the commands listed in codeblocks that look like this:
150
151
======================
151
152
152
153
At version 0.8.1 QGIS no longer uses the autotools for building. QGIS, like a
153
- number of major projects (eg. KDE 4.0), now uses cmake for building from
154
- source. The configure script in this directory simply checks for the existence
155
- of cmake and provides some clues to build QGIS.
154
+ number of major projects (eg. KDE 4.0), now uses cmake (http://www.cmake.org)
155
+ for building from source. The configure script in this directory simply checks
156
+ for the existence of cmake and provides some clues to build QGIS.
156
157
157
158
For complete information, see the wiki at:
158
159
http://wiki.qgis.org/qgiswiki/Building_with_CMake
@@ -170,16 +171,15 @@ For complete information, see the wiki at:
170
171
* Proj >= ? (known to work with 4.4.x)
171
172
* GEOS >= 2.2 (3.0 is supported, maybe 2.1.x works too)
172
173
* Sqlite3 >= ? (probably 3.0.0)
173
- * GDAL/OGR >= ? (1.2.x should work)
174
+ * GDAL/OGR >= 1.4.x (1.2.x should work)
174
175
175
176
'''Optional dependencies:'''
176
177
* for GRASS plugin - GRASS >= 6.0.0
177
178
* for georeferencer - GSL >= ? (works with 1.8)
178
- * for postgis support and SPIT plugin - PostgreSQL >= ?
179
+ * for postgis support and SPIT plugin - PostgreSQL >= 8.0.x
179
180
* for gps plugin - expat >= ? (1.95 is OK)
180
- * for mapserver export and PyQGIS - Python >= ? (probably 2.3)
181
- * for PyQGIS - SIP >= 4.5, PyQt >= 4.1
182
-
181
+ * for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
182
+ * for PyQGIS - SIP >= 4.5, PyQt >= must match Qt version
183
183
'''Recommended runtime deps:'''
184
184
* for gps plugin - gpsbabel
185
185
@@ -203,7 +203,7 @@ zip archive that contains just about all dependencies.
203
203
204
204
Get this:
205
205
206
- http://qgis. org/uploadfiles/msys /msys.zip
206
+ http://download.osgeo. org/qgis/win32 /msys.zip
207
207
208
208
and unpack to c:\msys
209
209
@@ -854,7 +854,7 @@ If all built without errors you can then install it:
854
854
5.1. Building QGIS with Qt4.x
855
855
=============================
856
856
857
- Requires: Ubuntu Gutsy / Debian derived distro
857
+ Requires: Ubuntu Hardy / Debian derived distro
858
858
859
859
These notes are current for Ubuntu 7.10 - other versions and Debian derived
860
860
distros may require slight variations in package names.
@@ -953,6 +953,12 @@ above commands to select the Qt4 version of the relevant applications.
953
953
distributions (e.g. Debian or SuSE) only provide SIP < 4.5 and PyQt4 < 4.1. To include support for python
954
954
language bindings you may need to build and install those packages from source.
955
955
956
+ If you do not have cmake installed already:
957
+
958
+
959
+ sudo apt-get install cmake
960
+
961
+
956
962
957
963
5.5. GRASS Specific Steps
958
964
=========================
@@ -1038,6 +1044,8 @@ qgis.org certificate. Press 'p' to accept it permanently:
1038
1044
5.9. Starting the compile
1039
1045
=========================
1040
1046
1047
+ /!\ *Note:* The next section describes howto build debian packages
1048
+
1041
1049
I compile my development version of QGIS into my ~/apps directory to avoid
1042
1050
conflicts with Ubuntu packages that may be under /usr. This way for example
1043
1051
you can use the binary packages of QGIS on your system along side with your
@@ -1077,7 +1085,46 @@ Now on with the build:
1077
1085
It may take a little while to build depending on your platform.
1078
1086
1079
1087
1080
- 5.10. Running QGIS
1088
+ 5.10. Building Debian packages
1089
+ ==============================
1090
+
1091
+ Instead of creating a personal installation as in the previous step you can
1092
+ also create debian package. This is done from the qgis root directory, where
1093
+ you'll find a debian directory.
1094
+
1095
+ First you need to install the debian packaging tools once:
1096
+
1097
+
1098
+ apt-get install build-essential
1099
+
1100
+
1101
+ The QGIS packages will be created with:
1102
+
1103
+
1104
+ dpkg-buildpackage -us -us -b
1105
+
1106
+
1107
+ /!\ *Note:* If dpkg-buildpackage complains about unmet build dependencies
1108
+ you can install them using apt-get and re-run the command.
1109
+
1110
+ /!\ *Note:* If you have libqgis1-dev installed, you need to remove it first
1111
+ using dpkg -r libqgis1-dev. Otherwise dpkg-buildpackage will complain about at
1112
+ build conflict.
1113
+
1114
+ The the packages are created in the parent directory (ie. one level up).
1115
+ Install them using dpkg. E.g.:
1116
+
1117
+
1118
+ sudo dpkg -i \
1119
+ ../qgis_1.0preview16_amd64.deb \
1120
+ ../libqgis-gui1_1.0preview16_amd64.deb \
1121
+ ../libqgis-core1_1.0preview16_amd64.deb \
1122
+ ../qgis-plugin-grass_1.0preview16_amd64.deb \
1123
+ ../python-qgis_1.0preview16_amd64.deb
1124
+
1125
+
1126
+
1127
+ 5.11. Running QGIS
1081
1128
==================
1082
1129
1083
1130
Now you can try to run QGIS:
@@ -2228,11 +2275,12 @@ The following people have contributed to this document:
2228
2275
- Juergen Fischer 2007
2229
2276
2230
2277
- OSX Section
2231
- - Tim Sutton, 2007
2278
+ - Tim Sutton 2007
2232
2279
- With special thanks to Tom Elwertowski and William Kyngesburye
2233
2280
2234
2281
- GNU/Linux Section
2235
2282
- Tim Sutton 2006
2283
+ - Debian package section: Juergen Fischer 2008
2236
2284
2237
2285
2238
2286
0 commit comments