Skip to content

Commit e523780

Browse files
committed
add loading of spatialite on windows and remove remaining references to
pyspatialite (followup 39816cf)
1 parent 39816cf commit e523780

8 files changed

Lines changed: 34 additions & 45 deletions

File tree

.ci/travis/macos/install.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ cmake \
5858
-DENABLE_MODELTEST=ON \
5959
-DENABLE_PGTEST=OFF \
6060
-DWITH_QWTPOLAR=OFF \
61-
-DWITH_PYSPATIALITE=ON \
6261
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
6362
..
6463

INSTALL

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
QGIS
22
Building QGIS from source - step by step
3-
Saturday September 23, 2017
3+
Sunday October 29, 2017
44

55

6-
Last Updated: Saturday September 23, 2017
7-
Last Change : Saturday September 23, 2017
6+
Last Updated: Sunday October 29, 2017
7+
Last Change : Sunday October 29, 2017
88

99

1010
1. Introduction
@@ -66,7 +66,7 @@ regularly updated to match the corresponding release. Instructions for the curre
6666
master branch are available at
6767
http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/doc/INSTALL.html.
6868
If you wish to build another version of QGIS, ensure to checkout the appropriate
69-
release branch.
69+
release branch. The QGIS source code can be found in the repository (https://github.com/qgis/QGIS).
7070

7171
Please visit http://qgis.org for information on joining our mailing lists
7272
and getting involved in the project further.
@@ -365,7 +365,7 @@ new subdirectory called `build` or `build-qt5` in it.
365365
3.9.1. Install build dependencies
366366
=================================
367367

368-
dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static qt5-qtscript-devel qca-qt5-devel python3-qt5-devel python3-qscintilla-qt5-devel qscintilla-qt5-devel python3-qscintilla-devel python3-qscintilla-qt5 clang flex bison geos-devel gdal-devel sqlite-devel libspatialite-devel qt5-qtsvg-devel qt5-qtxmlpatterns-devel spatialindex-devel expat-devel proj-devel qwt-qt5-devel gsl-devel postgresql-devel cmake python3-future gdal-python3 python3-psycopg2 python3-PyYAML python3-pygments python3-jinja2 python3-OWSLib qca-qt5-ossl qwt-qt5-devel qtkeychain-qt5-devel qwt-devel sip-devel libzip-devel
368+
dnf install qt5-qtwebkit-devel qt5-qtlocation-devel qt5-qttools-static qt5-qtscript-devel qca-qt5-devel qca-qt5-ossl qt5-qt3d-devel python3-qt5-devel python3-qscintilla-qt5-devel qscintilla-qt5-devel python3-qscintilla-devel python3-qscintilla-qt5 clang flex bison geos-devel gdal-devel sqlite-devel libspatialite-devel qt5-qtsvg-devel qt5-qtxmlpatterns-devel spatialindex-devel expat-devel proj-devel qwt-qt5-devel gsl-devel postgresql-devel cmake python3-future gdal-python3 python3-psycopg2 python3-PyYAML python3-pygments python3-jinja2 python3-OWSLib qca-qt5-ossl qwt-qt5-devel qtkeychain-qt5-devel qwt-devel sip-devel libzip-devel
369369

370370
To build QGIS server additional dependencies are required:
371371

@@ -469,6 +469,7 @@ and from OSGeo4W (select Advanced Installation):
469469
- python3-future
470470
- python3-pyyaml
471471
- python3-mock
472+
- python3-six
472473
- qca-qt5-devel
473474
- qca-qt5-libs
474475
- qscintilla-qt5
@@ -669,23 +670,23 @@ it, just point the installer to c:\msys\mingw
669670

670671
When Qt installation is complete:
671672

672-
Edit C:\Qt\4.8.0\bin\qtvars.bat and add the following lines:
673+
Edit C:\Qt\5.9.1\bin\qtvars.bat and add the following lines:
673674

674675
set PATH=%PATH%;C:\msys\local\bin;c:\msys\local\lib
675676
set PATH=%PATH%;"C:\Program Files\Subversion\bin"
676677

677-
I suggest you also add C:\Qt\4.8.0\bin\ to your Environment Variables Path in
678+
I suggest you also add C:\Qt\5.9.1\bin\ to your Environment Variables Path in
678679
the windows system preferences.
679680

680681
If you plan to do some debugging, you'll need to compile debug version of Qt:
681-
C:\Qt\4.8.0\bin\qtvars.bat compile_debug
682+
C:\Qt\5.9.1\bin\qtvars.bat compile_debug
682683

683684
Note: there is a problem when compiling debug version of Qt 4.7, the script ends with
684685
this message "mingw32-make: *** No rule to make target `debug'. Stop.". To
685686
compile the debug version you have to go out of src directory and execute the
686687
following command:
687688

688-
c:\Qt\4.8.0 make
689+
c:\Qt\5.9.1 make
689690

690691

691692
4.2.3. Flex and Bison
@@ -696,13 +697,16 @@ http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16424
696697
(the zip bin) and extract it into c:\msys\mingw\bin
697698

698699

699-
4.2.4. Python stuff (optional)
700-
==============================
700+
4.2.4. Python
701+
=============
701702

702703
Follow this section in case you would like to use Python bindings for QGIS. To
703-
be able to compile bindings, you need to compile SIP and PyQt4 from sources as
704+
be able to compile bindings, you need to compile SIP and PyQt5 from sources as
704705
their installer doesn't include some development files which are necessary.
705706

707+
Note that even if you compile without the Python bindings, Python3 is still
708+
a necessary dependency for building QGIS.
709+
706710

707711
4.2.4.1. Download and install Python - use Windows installer
708712
============================================================
@@ -712,7 +716,7 @@ their installer doesn't include some development files which are necessary.
712716
http://python.org/download/
713717

714718

715-
4.2.4.2. Download SIP and PyQt4 sources
719+
4.2.4.2. Download SIP and PyQt5 sources
716720
=======================================
717721

718722
http://www.riverbankcomputing.com/software/sip/download
@@ -725,7 +729,7 @@ to get versions that match your current Qt installed version.
725729
4.2.4.3. Compile SIP
726730
====================
727731

728-
c:\Qt\4.8.0\bin\qtvars.bat
732+
c:\Qt\5.9.1\bin\qtvars.bat
729733
python configure.py -p win32-g++
730734
make
731735
make install
@@ -734,7 +738,7 @@ to get versions that match your current Qt installed version.
734738
4.2.4.4. Compile PyQt
735739
=====================
736740

737-
c:\Qt\4.8.0\bin\qtvars.bat
741+
c:\Qt\5.9.1\bin\qtvars.bat
738742
python configure.py
739743
make
740744
make install
@@ -743,7 +747,7 @@ to get versions that match your current Qt installed version.
743747
4.2.4.5. Final python notes
744748
===========================
745749

746-
/!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
750+
/!\ You can delete the directories with unpacked SIP and PyQt5 sources after a
747751
successful install, they're not needed anymore.
748752

749753

@@ -761,7 +765,7 @@ https://git-scm.com/download/win
761765

762766
CMake is build system used by QGIS. Download it from here:
763767

764-
http://www.cmake.org/files/v2.8/cmake-2.8.2-win32-x86.exe
768+
https://cmake.org/files/v3.9/cmake-3.9.3-win64-x64.msi
765769

766770

767771
4.2.7. QGIS
@@ -787,9 +791,9 @@ this document.
787791
Start a cmd.exe window ( Start -> Run -> cmd.exe ) if you don't have one
788792
already. Add paths to compiler and our MSYS environment:
789793

790-
c:\Qt\4.8.0\bin\qtvars.bat
794+
c:\Qt\5.9.1\bin\qtvars.bat
791795

792-
For ease of use add c:\Qt\4.8.0\bin\ to your system path in system
796+
For ease of use add c:\Qt\5.9.1\bin\ to your system path in system
793797
properties so you can just type qtvars.bat when you open the cmd console.
794798
Create build directory and set it as current directory:
795799

doc/INSTALL.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
66
<TITLE>QGIS</TITLE>
77

8-
<!-- Included doc/style.css -->
8+
<!-- Included /home/fischer/src/qgis/doc/style.css -->
99
<STYLE TYPE="text/css">
1010
body{ background: white;
1111
color: black;
@@ -77,13 +77,13 @@
7777
<DIV CLASS="header" ID="header">
7878
<H1>QGIS</H1>
7979
<H2>Building QGIS from source - step by step</H2>
80-
<H3>Saturday October 14, 2017</H3>
80+
<H3>Sunday October 29, 2017</H3>
8181
</DIV>
8282

8383
<DIV CLASS="body" ID="body">
8484
<P>
85-
Last Updated: Saturday October 14, 2017
86-
Last Change : Saturday October 14, 2017
85+
Last Updated: Sunday October 29, 2017
86+
Last Change : Sunday October 29, 2017
8787
</P>
8888
<DIV CLASS="toc">
8989

@@ -214,6 +214,7 @@ <H1>2. Overview</H1>
214214
<LI>QScintilla2
215215
<LI>QCA
216216
<LI>qtkeychain (&gt;= 0.5)
217+
<LI>libzip
217218
</UL>
218219

219220
<P>
@@ -3060,5 +3061,5 @@ <H1>9. Authors and Acknowledgments</H1>
30603061

30613062
</DIV>
30623063
<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
3063-
<!-- cmdline: txt2tags -\-encoding=utf-8 -o doc/INSTALL.html -t html doc/INSTALL.t2t -->
3064+
<!-- cmdline: txt2tags -\-encoding=utf-8 -o/home/fischer/src/qgis/debian/build-master-qt5/doc/INSTALL.html -t html /home/fischer/src/qgis/doc/INSTALL.t2t -->
30643065
</BODY></HTML>

doc/overview.t2t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Required build dependencies:
2727
- QScintilla2
2828
- QCA
2929
- qtkeychain (>= 0.5)
30+
- libzip
3031
-
3132

3233
Optional dependencies:

python/plugins/db_manager/README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

python/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ def spatialite_connect(*args, **kwargs):
598598
libs = [
599599
# SpatiaLite >= 4.2 and Sqlite >= 3.7.17, should work on all platforms
600600
("mod_spatialite", "sqlite3_modspatialite_init"),
601+
# SpatiaLite >= 4.2 (windows)
602+
("spatialite4.dll", "sqlite3_modspatialite_init"),
601603
# SpatiaLite >= 4.2 and Sqlite < 3.7.17 (Travis)
602604
("mod_spatialite.so", "sqlite3_modspatialite_init"),
603605
# SpatiaLite < 4.2 (linux)

scripts/addcopyright.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ for i in $FILES; do
4343
author=volayaf
4444
;;
4545

46-
src/app/gps/qwtpolar-*|src/app/qtmain_android.cpp|src/core/gps/qextserialport/*|lib/astyle/*|python/pyspatialite/*)
46+
src/app/gps/qwtpolar-*|src/app/qtmain_android.cpp|src/core/gps/qextserialport/*|lib/astyle/*)
4747
# Skip third party files
4848
echo $f skipped
4949
continue

scripts/update-indent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ASTYLEDIFF=astyle.r$REV0-r$REV1.diff
5757
# reformat
5858
for f in $MODIFIED; do
5959
case "$f" in
60-
src/core/gps/qextserialport/*|src/plugins/grass/qtermwidget/*|external/astyle/*|python/pyspatialite/*)
60+
src/core/gps/qextserialport/*|src/plugins/grass/qtermwidget/*|external/astyle/*)
6161
echo $f skipped
6262
continue
6363
;;

0 commit comments

Comments
 (0)