[QGIS-Developer] How to solve the following errors when build QGIS3.1?

Zane Lau liuzhengisci at gmail.com
Wed Apr 25 08:53:02 PDT 2018


*Hello everyone! *
*It's my first time to build QGIS !  *


* Build Environment:         Windows 7 x64         CMake3.11,         VS
2015Tutorial:           Building QGIS from source - step by step Although I
have spent a week on solving build errors, I still cann't solve the
following error:*

*1. CMake Error at cmake/FindQwt.cmake:47 (FILE):*
*  FILE failed to open for reading (No such file or directory):*

*    C:/OSGeo4W64/apps/Qt5/include/qwt_global.h*
*Call Stack (most recent call first):*
*  CMakeLists.txt:241 (FIND_PACKAGE)*

*2. Traceback (most recent call last):*
*  File "Z:/GitHub/QGIS/cmake/FindPyQt5.py", line 34, in <module>*
*    import PyQt5.pyqtconfig*
*ModuleNotFoundError: No module named 'PyQt5'*

*3.**Traceback (most recent call last):*
*  File "Z:/GitHub/QGIS/cmake/FindPyQt5.py", line 37, in <module>*
*    import PyQt5.QtCore*
*ModuleNotFoundError: No module named 'PyQt5'*

*4.Traceback (most recent call last):*
*  File "Z:/GitHub/QGIS/cmake/FindSIP.py", line 33, in <module>*
*    import sipconfig*
*ModuleNotFoundError: No module named 'sipconfig'*

*5.CMake Error at cmake/FindSIP.cmake:54 (MESSAGE):*
*  Could not find SIP*
*Call Stack (most recent call first):*
*  CMakeLists.txt:711 (FIND_PACKAGE)*


*The whole information about build QGIS is as follows:*
*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.*


*QGIS version: 3.1.0 Master (30100)*
*Could not find GRASS 7*
*Found Proj: C:/OSGeo4W64/lib/proj_i.lib*
*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:236 (FIND_PACKAGE)*


*Found GEOS: C:/OSGeo4W64/lib/geos_c.lib (3.5.0)*
*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:237 (FIND_PACKAGE)*


*Found GDAL: C:/OSGeo4W64/lib/gdal_i.lib (2.2.4)*
*Found Expat: C:/OSGeo4W64/lib/expat.lib*
*Found Spatialindex: C:/OSGeo4W64/lib/spatialindex-64.lib*
*CMake Error at cmake/FindQwt.cmake:47 (FILE):*
*  FILE failed to open for reading (No such file or directory):*

*    C:/OSGeo4W64/apps/Qt5/include/qwt_global.h*
*Call Stack (most recent call first):*
*  CMakeLists.txt:241 (FIND_PACKAGE)*


*Found Qwt: C:/OSGeo4W64/apps/Qt5/lib/qwt.lib ()*
*Found libzip: C:/OSGeo4W64/etc/setup/libzip-libs.lst.gz*
*Found Sqlite3: C:/OSGeo4W64/lib/sqlite3_i.lib*
*Found PostgreSQL: C:/OSGeo4W64/lib/libpq.lib*
*Found SpatiaLite: C:/OSGeo4W64/lib/spatialite_i.lib*
*Qt WebKit support enabled*
*Found Qt version: 5.9.2*
*Found QScintilla2: C:/OSGeo4W64/apps/Qt5/lib/qscintilla2.lib (2.10.1)*
*Found QtKeychain: C:/OSGeo4W64/apps/Qt5/lib/qt5keychain.lib*
*Found QCA: C:/OSGeo4W64/apps/Qt5/lib/qca-qt5.lib (2.1.0)*
*Pedantic compiler settings enabled*
*Found Python executable:
C:/Users/Zane/AppData/Local/Programs/Python/Python36/python.exe*
*Found Python version: 3.6.5*
*Found Python library:
C:/Users/Zane/AppData/Local/Programs/Python/Python36/libs/python36.lib*
*Found Python site-packages:
C:/Users/Zane/AppData/Local/Programs/Python/Python36/Lib/site-packages*
*Traceback (most recent call last):*
*  File "Z:/GitHub/QGIS/cmake/FindPyQt5.py", line 34, in <module>*
*    import PyQt5.pyqtconfig*
*ModuleNotFoundError: No module named 'PyQt5'*

*During handling of the above exception, another exception occurred:*

*Traceback (most recent call last):*
*  File "Z:/GitHub/QGIS/cmake/FindPyQt5.py", line 37, in <module>*
*    import PyQt5.QtCore*
*ModuleNotFoundError: No module named 'PyQt5'*

*Traceback (most recent call last):*
*  File "Z:/GitHub/QGIS/cmake/FindSIP.py", line 33, in <module>*
*    import sipconfig*
*ModuleNotFoundError: No module named 'sipconfig'*

*CMake Error at cmake/FindSIP.cmake:54 (MESSAGE):*
*  Could not find SIP*
*Call Stack (most recent call first):*
*  CMakeLists.txt:711 (FIND_PACKAGE)*


*Configuring incomplete, errors occurred!*
*See also "Z:/GitHub/QGIS3_0_Build/CMakeFiles/CMakeOutput.log".*
*See also "Z:/GitHub/QGIS3_0_Build/CMakeFiles/CMakeError.log".*

Thanks for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180425/8f5bd0e5/attachment-0001.html>


More information about the QGIS-Developer mailing list