[QGIS-Developer] QGIS Compilation on Windows

rnathreddy at sanasw.com rnathreddy at sanasw.com
Thu Apr 15 11:35:30 PDT 2021


Hi,

I am trying to build the QGIS on windows and followed the instructions 
given at 
https://github.com/qgis/QGIS/blob/release-3_16/INSTALL.md#4-building-on-windows.

When the ConfigOnly.bat command issued from the command prompt I got the 
following error. I couldn't understand the error.  Can anyone help me?

When looked into the logs I understand that the

COMPILER_HAS_DEPRECATED_ATTR flag set in the compiler.

Regards
Raghunath


Messages displayed at the command prompt:

C:\OSGeo4W64\QGIS\ms-windows\osgeo4w>configonly.bat
BEGIN: 13-04-2021 22:52:57.08
CMAKE: 13-04-2021 22:52:57.17
CMake Error at CMakeLists.txt:12 (cmake_policy):
   Policy "CMP0094" is not known to this version of CMake.


-- Selecting Windows SDK version 10.0.14393.0 to target Windows 
10.0.18363.
-- QGIS version: 3.19.0 Master (31900)
-- Found OpenCL C++ headers: C:/OSGeo4W64/include
-- Found GRASS 7: C:/OSGEO4~1/apps/grass/grass78 (7.8.5, off_t size = 8)
-- Found Proj: C:/OSGeo4W64/apps/proj-dev/lib/proj.lib version 8 (8.1.0)
-- Found GEOS: C:/OSGeo4W64/lib/geos_c.lib (3.8.1)
-- Found GDAL: C:/OSGeo4W64/apps/gdal-dev/lib/gdal_i.lib (3.3.0dev)
-- Found Expat: C:/OSGeo4W64/lib/expat.lib
-- Found Spatialindex: C:/OSGeo4W64/lib/spatialindex-64.lib
-- Found Qwt: C:/OSGeo4W64/apps/Qt5/lib/qwt.lib (6.1.3)
-- Found libzip: C:/OSGeo4W64/lib/zip.lib
-- Found Sqlite3: C:/OSGeo4W64/lib/sqlite3_i.lib
-- Found Protobuf: C:/OSGeo4W64/lib/libprotobuf.lib
-- Found zlib: C:/OSGeo4W64/lib/zlib.lib
-- Found PostgreSQL: C:/OSGeo4W64/lib/libpq.lib
-- Found SpatiaLite: C:/OSGeo4W64/lib/spatialite_i.lib
-- Qt WebKit support enabled
-- Found ZSTD: C:/cygwin64/lib
-- Could NOT find LazPerf (missing: LazPerf_INCLUDE_DIR)
-- Using embedded laz-perf
-- Found Qt version: 5.11.2
-- Found QScintilla2: C:/OSGeo4W64/apps/Qt5/lib/qscintilla2.lib (2.10.8)
-- Found QtKeychain: C:/OSGeo4W64/apps/Qt5/lib/qt5keychain.lib
-- Found QCA: C:\OSGEO4~1\apps\Qt5\lib\qca-qt5.lib (2.1.3)
-- Pedantic compiler settings enabled
-- Debug output enabled
-- Found GSL: C:/OSGeo4W64/lib/gsl.lib;C:/OSGeo4W64/lib/cblas.lib
-- Found Python executable: C:/OSGeo4W64/bin/python3.exe (version 3.7.0)
-- Python library: C:/OSGeo4W64/apps/Python37/libs/python37.lib
-- Python site-packages: C:\OSGEO4~1\apps\Python37\Lib\site-packages
-- Found PyQt5 version: 5.11.3
-- Found SIP version: 4.19.14
-- Found QScintilla2 PyQt module: 2.10.8
-- Found exiv2: C:/OSGeo4W64/lib/exiv2.lib
-- Found OCI: C:/OSGeo4W64/lib/oci.lib
-- Found FCGI: C:/OSGeo4W64/lib/libfcgi.lib
-- Using PROJ >= 6 srs database.
-- Ctest Binary Directory set to: 
C:/OSGeo4W64/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/output/bin
-- Configuring incomplete, errors occurred!
See also 
"C:/OSGeo4W64/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/CMakeFiles/CMakeOutput.log".
See also 
"C:/OSGeo4W64/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/CMakeFiles/CMakeError.log".
cmake failed
BUILD ERROR 1: 13-04-2021 22:53:09.00

C:\OSGeo4W64\QGIS\ms-windows\osgeo4w>


More information about the QGIS-Developer mailing list