Skip to content

Commit ca362df

Browse files
committed
More build instructions for Qt5/Fedora
1 parent 5387fd1 commit ca362df

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

doc/linux.t2t

+42-1
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,22 @@ sudo debi
204204

205205
== Building QGIS with Qt 5.x ==
206206

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+
207218
== On Fedora Linux ==
208219

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+
209223
=== Install build dependencies ===
210224

211225
```
@@ -214,9 +228,36 @@ qt5-qtscript-devel qca-qt5-devel python3-qt5-devel python3-qscintilla-qt5-devel
214228
qscintilla-qt5-devel python3-qscintilla-devel python3-qscintilla-qt5
215229
clang flex bison geos-devel gdal-devel sqlite-devel libspatialite-devel
216230
qt5-qtsvg-devel qt5-qtxmlpatterns-devel spatialindex-devel expat-devel proj-devel
217-
qwt-devel gsl-devel
231+
qwt-devel gsl-devel postgresql-devel
218232
```
219233

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+
220240
```
221241
cmake -DENABLE_QT5=ON -DWITH_QWTPOLAR=OFF ..
222242
```
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

Comments
 (0)