55< META HTTP-EQUIV ="Content-Type " CONTENT ="text/html; charset=utf-8 ">
66< TITLE > QGIS</ TITLE >
77
8- <!-- Included /home/fischer/src/qgis3/doc/ style.css -->
8+ <!-- Included style.css -->
99< STYLE TYPE ="text/css ">
1010body { background : white;
1111 color : black;
7777< DIV CLASS ="header " ID ="header ">
7878< H1 > QGIS</ H1 >
7979< H2 > Building QGIS from source - step by step</ H2 >
80- < H3 > Monday November 07, 2016 </ H3 >
80+ < H3 > Wednesday January 04, 2017 </ H3 >
8181</ DIV >
8282
8383< DIV CLASS ="body " ID ="body ">
8484< P >
85- Last Updated: Monday November 07, 2016
86- Last Change : Monday November 07 , 2016
85+ Last Updated: Wednesday January 04, 2017
86+ Last Change : Tuesday December 27 , 2016
8787</ P >
8888< DIV CLASS ="toc ">
8989
@@ -207,14 +207,17 @@ <H1>2. Overview</H1>
207207</ P >
208208
209209< UL >
210- < LI > Qt >= 4.8 .0
210+ < LI > Qt >= 5.3 .0
211211< LI > Proj >= 4.4.x
212212< LI > GEOS >= 3.4
213213< LI > Sqlite3 >= 3.0.0
214- < LI > GDAL/OGR >= 1.4.x
214+ < LI > SpatiaLite
215+ < LI > libspatialindex
216+ < LI > GDAL/OGR >= 2.0
215217< LI > Qwt >= 5.0 & (< 6.1 with internal QwtPolar)
216218< LI > expat >= 1.95
217219< LI > QScintilla2
220+ < LI > QCA
218221</ UL >
219222
220223< P >
@@ -229,8 +232,8 @@ <H1>2. Overview</H1>
229232< LI > for georeferencer - GSL >= 1.8
230233< LI > for postgis support and SPIT plugin - PostgreSQL >= 8.0.x
231234< LI > for gps plugin - gpsbabel
232- < LI > for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
233- < LI > for python support - SIP >= 4.12, PyQt >= 4.8 .3 must match Qt version, Qscintilla2
235+ < LI > for mapserver export and PyQGIS - Python >= 3.3
236+ < LI > for python support - SIP >= 4.12, PyQt >= 5 .3 must match Qt version, Qscintilla2
234237< LI > for qgis mapserver - FastCGI
235238< LI > for oracle provider - Oracle OCI library
236239</ UL >
@@ -434,13 +437,29 @@ <H2>3.7. Starting the compile</H2>
434437</ P >
435438
436439< div class ="code "> < PRE >
437- make
438- make install
440+ make -jX
441+ </ PRE > </ div >
442+
443+ < P >
444+ where X is the number of available cores. Depending on your platform,
445+ this can speed up the build time considerably.
446+ </ P >
447+ < P >
448+ Then you can directly run from the build directory:
449+ </ P >
450+
451+ < div class ="code "> < PRE >
452+ ./output/bin/qgis
439453</ PRE > </ div >
440454
441455< P >
442- It may take a little while to build depending on your platform.
456+ Another option is to install to your system:
443457</ P >
458+
459+ < div class ="code "> < PRE >
460+ make install
461+ </ PRE > </ div >
462+
444463< P >
445464After that you can try to run QGIS:
446465</ P >
@@ -451,20 +470,55 @@ <H2>3.7. Starting the compile</H2>
451470
452471< P >
453472If all has worked properly the QGIS application should start up and appear
454- on your screen. If you get the error message "error while loading shared libraries",
473+ on your screen. If you get the error message "error while loading shared libraries",
455474execute this command in your shell.
456475</ P >
457476
458477< div class ="code "> < PRE >
459478export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HOME}/apps/lib/
460479</ PRE > </ div >
461480
481+ < P >
482+ Optionally, if you already know what aspects you want in your custom build
483+ then you can skip the interactive ccmake .. part by using the cmake -D
484+ option for each aspect, e.g.:
485+ </ P >
486+
487+ < div class ="code "> < PRE >
488+ cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=${HOME}/apps ..
489+ </ PRE > </ div >
490+
491+ < P >
492+ Also, if you want to speed your build times, you can easily do it with ninja,
493+ an alternative to make with similar build options.
494+ </ P >
495+ < P >
496+ For example, to configure your build you can do either one of:
497+ </ P >
498+
499+ < div class ="code "> < PRE >
500+ ccmake -G Ninja ..
501+ </ PRE > </ div >
502+
503+ < div class ="code "> < PRE >
504+ cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=${HOME}/apps ..
505+ </ PRE > </ div >
506+
507+ < P >
508+ Build and install with ninja:
509+ </ P >
510+
511+ < div class ="code "> < PRE >
512+ ninja (uses all cores by default; also supports the above described -jX option)
513+ ninja install
514+ </ PRE > </ div >
515+
462516< A NAME ="toc11 "> </ A >
463517< H2 > 3.8. Building Debian packages</ H2 >
464518
465519< P >
466520Instead of creating a personal installation as in the previous step you can
467- also create debian package. This is done from the QGIS root directory, where
521+ also create debian package. This is done from the QGIS root directory, where
468522you'll find a debian directory.
469523</ P >
470524< P >
@@ -549,7 +603,7 @@ <H2>3.10. On Debian Linux</H2>
549603< H3 > 3.10.1. Install build dependencies</ H3 >
550604
551605< div class ="code "> < PRE >
552- apt-get install git build-essential cmake flex bison pyqt5-dev qttools5-dev qtpositioning5-dev libqt5svg5-dev libqt5webkit5-dev libqt5gui5 libqt5scripttools5 qtscript5-dev libqca-qt5-2-dev grass-dev libgeos-dev libgdal-dev libqt5xmlpatterns5-dev libqt5scintilla2-dev pyqt5.qsci-dev python3-pyqt5.qsci libgsl-dev txt2tags libproj-dev libqwt-qt5-dev libspatialindex-dev pyqt5-dev-tools qttools5-dev-tools qt5-default python3-future python3-pyqt5.qtsql python3-psycopg2
606+ apt-get install git build-essential cmake flex bison pyqt5-dev qttools5-dev qtpositioning5-dev libqt5svg5-dev libqt5webkit5-dev libqt5gui5 libqt5scripttools5 qtscript5-dev libqca-qt5-2-dev grass-dev libgeos-dev libgdal-dev libqt5xmlpatterns5-dev libqt5scintilla2-dev pyqt5.qsci-dev python3-pyqt5.qsci libgsl-dev txt2tags libproj-dev libqwt-qt5-dev libspatialindex-dev pyqt5-dev-tools qttools5-dev-tools qt5-default python3-future python3-pyqt5.qtsql python3-psycopg2 python3-sip-dev
553607</ PRE > </ div >
554608
555609< P >
@@ -3009,5 +3063,5 @@ <H1>9. Authors and Acknowledgments</H1>
30093063
30103064</ DIV >
30113065<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
3012- <!-- cmdline: txt2tags -\-encoding=utf-8 -o/home/fischer/src/qgis3/debian/build-master-ninja/doc/ INSTALL.html -t html /home/fischer/src/qgis3/doc/ INSTALL.t2t -->
3066+ <!-- cmdline: txt2tags -o INSTALL.html -t html INSTALL.t2t -->
30133067</ BODY > </ HTML >
0 commit comments