@@ -204,8 +204,22 @@ sudo debi
204
204
205
205
== Building QGIS with Qt 5.x ==
206
206
207
+ /!\ **Warning:** Qt 5 is not officially supported. Building against Qt 5
208
+ libraries seems to work quiet well alrady but be prepared that you are one
209
+ of very few with this setup. We strongly recommend using QGIS with Qt 4.
210
+
211
+ Python bindings in particular are not expected to be compatible. When Qt 5
212
+ is enabled, the build system automatically activates Python 3 and PyQt5 as well.
213
+ There are no plugins and not even the python code shipped along the QGIS source
214
+ code is compatible with PyQt5.
215
+
216
+ You have been warned.
217
+
207
218
== On Fedora Linux ==
208
219
220
+ We assume that you have the source code of QGIS ready and created a
221
+ new subdirectory called `build` or `build-qt5` in it.
222
+
209
223
=== Install build dependencies ===
210
224
211
225
```
@@ -214,9 +228,36 @@ qt5-qtscript-devel qca-qt5-devel python3-qt5-devel python3-qscintilla-qt5-devel
214
228
qscintilla-qt5-devel python3-qscintilla-devel python3-qscintilla-qt5
215
229
clang flex bison geos-devel gdal-devel sqlite-devel libspatialite-devel
216
230
qt5-qtsvg-devel qt5-qtxmlpatterns-devel spatialindex-devel expat-devel proj-devel
217
- qwt-devel gsl-devel
231
+ qwt-devel gsl-devel postgresql-devel
218
232
```
219
233
234
+ Make sure that your build directory is completely empty when you enter the
235
+ following command. Do never try to "re-use" an existing Qt4 build directory.
236
+ If you want to use `ccmake` or other interactive tools, run the following
237
+ command in the empty build directory once before starting to use the interactive
238
+ tools.
239
+
220
240
```
221
241
cmake -DENABLE_QT5=ON -DWITH_QWTPOLAR=OFF ..
222
242
```
243
+
244
+ If everything went ok you can finally start to compile. (As usual append a -jX
245
+ where X is the number of available cores option to make to speed up your build
246
+ process)
247
+
248
+ ```
249
+ make
250
+ ```
251
+
252
+ Run from the build directory
253
+
254
+ ```
255
+ ./output/bin/qgis
256
+ ```
257
+
258
+ Or install to your system
259
+
260
+
261
+ ```
262
+ make install
263
+ ```
0 commit comments