FS#59044 - [qgis] uses deprecated and removed CMake command
Attached to Project:
Community Packages
Opened by czk (czk) - Sunday, 17 June 2018, 17:17 GMT
Last edited by Balló György (City-busz) - Thursday, 05 July 2018, 00:51 GMT
Opened by czk (czk) - Sunday, 17 June 2018, 17:17 GMT
Last edited by Balló György (City-busz) - Thursday, 05 July 2018, 00:51 GMT
|
Details
Trying to build
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/qgis
on an up-to-date Arch Linux fails as follows:
$ makepkg -s -L -f ==> Making package: qgis 3.0.3-1 (Sun 17 Jun 2018 07:10:20 PM CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found qgis-3.0.3.tar.bz2 ==> Validating source files with sha256sums... qgis-3.0.3.tar.bz2 ... Passed ==> Extracting sources... -> Extracting qgis-3.0.3.tar.bz2 with bsdtar ==> Starting prepare()... ==> Starting build()... CMake Deprecation Warning at CMakeLists.txt:7 (CMAKE_POLICY): The OLD behavior for policy CMP0048 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. -- The C compiler identification is GNU 8.1.1 -- The CXX compiler identification is GNU 8.1.1 -- 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 -- Detecting C compile features -- Detecting C compile features - 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 -- Detecting CXX compile features -- Detecting CXX compile features - done -- QGIS version: 3.0.3 Girona (30003) -- Could not find GRASS 7 -- Looking for openpty -- Looking for openpty - not found -- Looking for openpty -- Looking for openpty - found -- Looking for proj_info in /usr/lib/libproj.so -- Looking for proj_info in /usr/lib/libproj.so - found -- Found Proj: /usr/lib/libproj.so (5.1.0) CMake Deprecation Warning at cmake/FindGEOS.cmake:17 (CMAKE_POLICY): The OLD behavior for policy CMP0053 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:226 (FIND_PACKAGE) -- Found GEOS: /usr/lib/libgeos_c.so (3.6.2) CMake Deprecation Warning at cmake/FindGDAL.cmake:17 (CMAKE_POLICY): The OLD behavior for policy CMP0053 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:227 (FIND_PACKAGE) -- Found GDAL: /usr/lib/libgdal.so (2.3.0) -- Found Expat: /lib/libexpat.so -- Found Spatialindex: /usr/lib/libspatialindex.so -- Found Qwt: /usr/lib/libqwt.so (6.1.3) -- Found libzip: /usr/lib/libzip.so -- Found Qextserialport: /usr/lib/libQt5ExtSerialPort.so -- Found Sqlite3: /usr/lib/libsqlite3.so -- Found PostgreSQL: /usr/lib/libpq.so -- Found SpatiaLite: /usr/lib/libspatialite.so -- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so -- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so - found -- Qt WebKit support enabled -- Found Qt version: 5.11.0 -- Found QScintilla2: /usr/lib/libqscintilla2_qt5.so (2.10.4) -- Found QtKeychain: /usr/lib/libqt5keychain.so -- Found QCA: /usr/lib/libqca-qt5.so (2.1.3) -- QtCore/QCA include/lib variables missing or CMake is cross-compiling, -- skipping QCA OpenSSL plugin C++ check -- Pedantic compiler settings enabled -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.5", minimum required is "3") -- Found Python executable: /usr/bin/python3 -- Found Python version: 3.6.5 -- Found Python library: /usr/lib/libpython3.6m.so -- Found Python site-packages: /usr/lib/python3.6/site-packages -- Found PyQt5 version: 5.10.1 -- Found SIP version: 4.19.8 -- Found QScintilla2 PyQt module: 2.10.4 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Found QwtPolar: /usr/lib/libqwtpolar.so -- Found GSL: -L/usr/lib -lgsl -lgslcblas -lm CMake Error at src/3d/CMakeLists.txt:148 (qt5_use_modules): Unknown CMake command "qt5_use_modules". -- Configuring incomplete, errors occurred! See also "/home/dane/devel/aur/qgis-community/src/qgis-3.0.3/build/CMakeFiles/CMakeOutput.log". See also "/home/dane/devel/aur/qgis-community/src/qgis-3.0.3/build/CMakeFiles/CMakeError.log". ==> ERROR: A failure occurred in build(). Aborting... |
This task depends upon
Closed by Balló György (City-busz)
Thursday, 05 July 2018, 00:51 GMT
Reason for closing: Fixed
Additional comments about closing: qgis 3.2.0-1
Thursday, 05 July 2018, 00:51 GMT
Reason for closing: Fixed
Additional comments about closing: qgis 3.2.0-1
https://bugreports.qt.io/browse/QTBUG-63519