Skip to content

Commit d780ba7

Browse files
committed
Merged master fixed conflict.
2 parents a1bdb8f + 7619cba commit d780ba7

File tree

3,064 files changed

+52280
-93022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,064 files changed

+52280
-93022
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ matrix:
2323
- llvm-toolchain-precise-3.8
2424
- ubuntu-toolchain-r-test
2525
- george-edison55-precise-backports # doxygen 1.8.3
26+
- sourceline: 'ppa:nomeata/travis-backports'
2627
# - laurent-boulard-devtools (for silver-search, not whitelisted yet https://github.com/travis-ci/apt-source-whitelist/pull/345)
2728
packages:
2829
- doxygen
@@ -31,7 +32,7 @@ matrix:
3132
- graphviz
3233
- libpq-dev
3334
- libfcgi-dev
34-
- libfftw3-3
35+
- libfftw3-3
3536
- pkg-config
3637
- perl # lookahead regex in spell check script
3738
- poppler-utils
@@ -42,12 +43,13 @@ matrix:
4243
# used for spell checks
4344
# - silversearcher-ag not available in precise nor in a white listed ppa (in osgeo4travis as for now)
4445
- expect-dev # unbuffer
46+
- coreutils
4547
# OSX based build with QT4 and Python 2
4648
# - os: osx
4749
# env:
4850
# - BUILD=osx
4951
# - IGNORE_BUILD_FAILURES=YES
50-
52+
5153

5254
git:
5355
depth: 30

CMakeLists.txt

+10-9
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ SET (WITH_BINDINGS TRUE CACHE BOOL "Determines whether python bindings should be
9696
IF (WITH_BINDINGS)
9797
# By default bindings will be installed only to QGIS directory
9898
# Someone might want to install it to python site-packages directory
99-
# as otherwise user has to use PYTHONPATH environemnt variable to add
99+
# as otherwise user has to use PYTHONPATH environment variable to add
100100
# QGIS bindings to package search path
101101
SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)")
102102
SET (WITH_STAGED_PLUGINS TRUE CACHE BOOL "Stage-install core Python plugins to run from build directory? (utilities and console are always staged)")
@@ -451,7 +451,7 @@ IF (WIN32)
451451
SET (DEFAULT_BIN_SUBDIR bin)
452452
SET (DEFAULT_CGIBIN_SUBDIR bin)
453453
# put all the build products into a single directory
454-
# under build (doesnt affect install target) to make for
454+
# under build (doesn't affect install target) to make for
455455
# easier debugging.
456456

457457
# Turn on defines for non standard maths stuff
@@ -569,15 +569,16 @@ IF(COMMAND cmake_policy)
569569
IF(NOT "${CMAKE_VERSION}" VERSION_LESS "3.3")
570570
cmake_policy(SET CMP0063 NEW)
571571
ENDIF(NOT "${CMAKE_VERSION}" VERSION_LESS "3.3")
572+
IF(MSVC)
573+
cmake_policy(SET CMP0020 NEW)
574+
ENDIF(MSVC)
572575
ENDIF(COMMAND cmake_policy)
573576

574-
IF (WIN32)
575-
IF(PEDANTIC AND NOT APPLE)
576-
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
577-
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
578-
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
579-
ENDIF(PEDANTIC AND NOT APPLE)
580-
ENDIF(WIN32)
577+
IF (PEDANTIC AND NOT WIN32 AND NOT APPLE)
578+
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
579+
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
580+
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
581+
ENDIF(PEDANTIC AND NOT WIN32 AND NOT APPLE)
581582

582583
SET(CMAKE_CXX_VISIBILITY_PRESET hidden)
583584
INCLUDE(GenerateExportHeader)

CONTRIBUTE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ by running the prepare commit script **before** issuing `git commit`.
1313

1414
This can be automated by setting up the pre-commit hook properly.
1515

16-
ln -s scripts/prepare-commit.sh .git/hooks/pre-commit
16+
ln -s ../../scripts/prepare-commit.sh .git/hooks/pre-commit
1717

1818
Getting your pull request merged
1919
--------------------------------

INSTALL

+17-55
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
QGIS
22
Building QGIS from source - step by step
3-
Monday January 09, 2017
3+
Wednesday January 25, 2017
44

55

6-
Last Updated: Monday January 09, 2017
7-
Last Change : Monday January 09, 2017
6+
Last Updated: Wednesday January 25, 2017
7+
Last Change : Friday January 20, 2017
88

99

1010
1. Introduction
1111
2. Overview
1212
3. Building on GNU/Linux
13-
3.1. Building QGIS with Qt 4.x
13+
3.1. Building QGIS with Qt 5.x
1414
3.2. Prepare apt
1515
3.3. Install build dependencies
1616
3.4. Setup ccache (Optional)
1717
3.5. Prepare your development environment
1818
3.6. Check out the QGIS Source Code
1919
3.7. Starting the compile
2020
3.8. Building Debian packages
21-
3.9. Building QGIS with Qt 5.x
22-
3.10. On Debian Linux
23-
3.11. On Fedora Linux
21+
3.9. On Fedora Linux
2422
4. Building on Windows
2523
4.1. Building with Microsoft Visual Studio
2624
4.2. Building using MinGW
@@ -139,13 +137,13 @@ those formats in GDAL.
139137
========================
140138

141139

142-
3.1. Building QGIS with Qt 4.x
140+
3.1. Building QGIS with Qt 5.x
143141
==============================
144142

145143
Requires: Ubuntu / Debian derived distro
146144

147145
/!\ Note: Refer to the section Building Debian packages for building
148-
debian packages. Unless you plan to develop on QGIS, that is probably the
146+
debian packages. Unless you plan to develop on QGIS, that is probably the
149147
easiest option to compile and install QGIS.
150148

151149
These notes are for Ubuntu - other versions and Debian derived distros may
@@ -263,6 +261,11 @@ be pressed several times before the 'g' option becomes available.
263261
After the 'g' generation is complete, press 'q' to exit the ccmake
264262
interactive dialog.
265263

264+
/!\ Warning: Make sure that your build directory is completely empty when you
265+
enter the command. Do never try to "re-use" an existing Qt4 build directory.
266+
If you want to use `ccmake` or other interactive tools, run the command in
267+
the empty build directory once before starting to use the interactive tools.
268+
266269
Now on with the build:
267270

268271
make -jX
@@ -349,56 +352,15 @@ Install them using dpkg. E.g.:
349352
sudo debi
350353

351354

352-
3.9. Building QGIS with Qt 5.x
353-
==============================
354-
355-
/!\ Warning: Qt 5 is not officially supported. Building against Qt 5
356-
libraries seems to work quite well already but be prepared that you are one
357-
of very few with this setup. We strongly recommend using QGIS with Qt 4 for
358-
production work.
359-
360-
Python bindings in particular are not expected to be compatible. When Qt 5
361-
is enabled, the build system automatically activates Python 3 and PyQt5 as well.
362-
There are no plugins and not even the python code shipped along the QGIS source
363-
code is compatible with PyQt5.
364-
365-
You have been warned.
366-
367-
368-
3.10. On Debian Linux
369-
=====================
370-
371-
We assume that you have the source code of QGIS ready and created a new
372-
subdirectory called `build` or `build-qt5` in it.
373-
374-
375-
3.10.1. Install build dependencies
376-
==================================
377-
378-
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
379-
380-
Make sure that your build directory is completely empty when you enter the
381-
following command. Do never try to "re-use" an existing Qt4 build directory.
382-
If you want to use `ccmake` or other interactive tools, run the following
383-
command in the empty build directory once before starting to use the
384-
interactive tools.
385-
386-
cmake
387-
388-
If everything went ok you can finally start to compile. (As usual append a -jX where X is the number of available cores option to make to speed up your build process)
389-
390-
make
391-
392-
393-
3.11. On Fedora Linux
394-
=====================
355+
3.9. On Fedora Linux
356+
====================
395357

396358
We assume that you have the source code of QGIS ready and created a
397359
new subdirectory called `build` or `build-qt5` in it.
398360

399361

400-
3.11.1. Install build dependencies
401-
==================================
362+
3.9.1. Install build dependencies
363+
=================================
402364

403365
dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static
404366
qt5-qtscript-devel qca-qt5-devel python3-qt5-devel python3-qscintilla-qt5-devel
@@ -753,7 +715,7 @@ to get versions that match your current Qt installed version.
753715
===========================
754716

755717
/!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
756-
successfull install, they're not needed anymore.
718+
successful install, they're not needed anymore.
757719

758720

759721
4.2.5. git

0 commit comments

Comments
 (0)