[Qgis-developer] Qt5 and Python 3

Richard Duivenvoorde rdmailings at duif.net
Mon May 16 23:08:34 PDT 2016


On 16-05-16 22:46, Matthias Kuhn wrote:
> Hi Richard,
> 
> Seems your binaries try to pick up something related to Qt4 (suspects
> are qwt, qca and qscintilla).
> Are you sure you did "cmake -DENABLE_QT5=ON" in an empty build folder?
> Once a folder is configured for either Qt5 or Qt4, this cannot be
> changed later on.

Ah thanks for the answer.

Yes, I'm pretty sure I have -DENABLE_QT5=ON, though I use ccmake. I also
tried cmake now (see below for full command + output used).

But crux indeed is that for qca and libqwt, that apparently not have
install candidates in a clean Debian Stable. See below for current
status of those in different Debians.

Next try will then be on compiling on Debian testing...
Not sure if Bas knows if there is a chance that those qt5 version will
come into Jessie. But I understand Jurgen also has been busy to create
packages for the time (Qt4-)Webkit is removed from repo's. So for normal
installation there is a solution too.

My point is I just try to be able to compile/install/test from source on
a (if possible) vanilla Debian (be it Jessie or Wheezy is both ok for me).

So: testing/Wheezy will be next for me!

Regards & Thanks for putting time into all this,

Richard



https://packages.debian.org/search?keywords=qca

apt-cache search qca
psi - Jabber client using Qt
qbzr - Graphical interface for Bazaar using the Qt toolkit
libqca2-plugin-cyrus-sasl - QCA Cyrus SASL plugin for libqca2
libqca2 - libraries for the Qt Cryptographic Architecture
libqca2-dbg - debug symbols for the Qt Cryptographic Architecture
libqca2-dev - development files for the Qt Cryptographic Architecture
libqca2-doc - API documentation for the Qt Cryptographic Architecture
qca2-utils - command line tool for the Qt Cryptographic Architecture
libqca2-plugin-gnupg - QCA gnupg plugin for libqca2
libqca2-plugin-ossl - SSL/TLS support for the Qt Cryptographic Architecture

https://packages.debian.org/search?keywords=libqwt-qt5-dev

$ apt-cache search libqwt
libqwt-dev - Qt widgets library for technical applications (development)
libqwt-doc - Qt widgets library for technical applications (documentation)
libqwt6 - Qt widgets library for technical applications (runtime)
libqwt5-doc - Qt widgets library for technical applications (documentation)
libqwt5-qt4 - Qt4 widgets library for technical applications (runtime)
libqwt5-qt4-dev - Qt4 widgets library for technical applications
(development)
libqwtplot3d-doc - 3D plotting library based on Qt/OpenGL (documentation)
libqwtplot3d-qt4-0 - 3D plotting library based on Qt4/OpenGL (runtime)
libqwtplot3d-qt4-dev - 3D plotting library based on Qt4/OpenGL (development)


 $ cmake -DPORT_PLUGINS=ON -DENABLE_QT5=ON -DWITH_QWTPOLAR=OFF
-DBUILD_TESTING=FALSE
-DCMAKE_INSTALL_PREFIX=/home/richard/apps/qgis3/master/debug
-DQCA_LIBRARY=/usr/lib/x86_64-linux-gnu/libqca.so
-DQWT_LIBRARY=/usr/lib/libqwt.so
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.4m.so.1
-DWITH_BINDINGS=OFF -DCMAKE_BUILD_TYPE=Debug ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- QGIS version: 2.15.0 Master (21500)
-- Found GRASS 6: /usr/lib/grass64 (6.4.4, off_t size = )
-- Could not find GRASS 7
-- Looking for openpty
-- Looking for openpty - not found
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /usr/lib/libproj.so
-- Found GEOS: /usr/lib/libgeos_c.so (3.4.2)
CMake Warning at cmake/FindGDAL.cmake:114 (MESSAGE):
  GDAL version is too old (1.10.1) to support GeoPackage.  1.11.0 or higher
  is recommended.
Call Stack (most recent call first):
  CMakeLists.txt:194 (FIND_PACKAGE)


-- Found GDAL: /usr/lib/libgdal.so (1.10.1)
-- Found Expat: /usr/lib/x86_64-linux-gnu/libexpat.so
-- Found Spatialindex: /usr/lib/x86_64-linux-gnu/libspatialindex.so
-- Found Qwt: /usr/lib/libqwt.so (6.0.0-svn)
-- Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- Found PostgreSQL: /usr/lib/x86_64-linux-gnu/libpq.so
-- Found SpatiaLite: /usr/lib/x86_64-linux-gnu/libspatialite.so
-- Looking for gaiaDropTable in /usr/lib/x86_64-linux-gnu/libspatialite.so
-- Looking for gaiaDropTable in
/usr/lib/x86_64-linux-gnu/libspatialite.so - found
-- Looking for gaiaStatisticsInvalidate in
/usr/lib/x86_64-linux-gnu/libspatialite.so
-- Looking for gaiaStatisticsInvalidate in
/usr/lib/x86_64-linux-gnu/libspatialite.so - not found
-- Looking for spatialite_init_ex in
/usr/lib/x86_64-linux-gnu/libspatialite.so
-- Looking for spatialite_init_ex in
/usr/lib/x86_64-linux-gnu/libspatialite.so - found
-- Found Qt version: 5.3.2
-- Touch support disabled
-- Found QScintilla2: /usr/lib/libqt5scintilla2.so (2.8.4)
-- Found QCA: /usr/lib/x86_64-linux-gnu/libqca.so (2.0.3)
-- QtCore/QCA include/lib variables missing or CMake is cross-compiling,
--   skipping QCA OpenSSL plugin C++ check
-- Pedantic compiler settings enabled
-- Debug output enabled
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.4.2",
minimum required is "3")
-- Found GSL: -L/usr/lib -lgsl -lgslcblas -lm
-- Looking for updwtmpx
-- Looking for updwtmpx - found
-- Ctest Binary Directory set to:
/home/richard/dev/qgis/git/qgis/build/output/bin
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    PORT_PLUGINS
    PYTHON_LIBRARY


-- Build files have been written to: /home/richard/dev/qgis/git/qgis/build


More information about the Qgis-developer mailing list