[QGIS-Developer] Problem with building QGIS on Windows
Szymon Ślęczka
szymonsleczka7 at gmail.com
Sat Dec 10 12:22:38 PST 2022
Hello,
I want to build QGIS on Windows. I was trying to do everything which was
described here
https://github.com/qgis/QGIS/blob/master/INSTALL.md#4-building-on-windows
but when I did this section
*4.1.4.1 Using configonly.bat to create the MSVC solution file *I get the
error.
I don't understand the problem. So I have attached three files.
One file is a report from configonly.bat
Two files came from CMake: output and error
Maybe someone knows what is going on here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221210/cdd06880/attachment-0001.htm>
-------------- next part --------------
'"C:\OSGeo4W\bin\py3_env.bat"' is not recognized as an internal or external command,
operable program or batch file.
'"C:\OSGeo4W\bin\qt5_env.bat"' is not recognized as an internal or external command,
operable program or batch file.
BEGIN: 10.12.2022 19:48:27,17
CMAKE: 10.12.2022 19:48:27,25
CMake Error at CMakeLists.txt:12 (cmake_policy):
Policy "CMP0094" is not known to this version of CMake.
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- 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: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- QGIS version: 3.29.0 Master (32900)
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - found
-- Found OpenCL: C:/OSGeo4W/lib/opencl.lib (found version "2.2")
-- Found OpenCL C++ headers: C:/OSGeo4W/include
-- Found GRASS 8: c:/OSGeo4W/apps/grass/grass82 (8.2.0, off_t size = 8)
-- Found ODBC: odbc32.lib
-- Found FLEX: C:/cygwin64/bin/flex.exe (found suitable version "2.6.4", minimum required is "2.6")
-- Found BISON: C:/cygwin64/bin/bison.exe (found version "3.8.2")
CMake Error at cmake/FindProj.cmake:70 (FILE):
FILE failed to open for reading (No such file or directory):
C:/OSGeo4W/apps/proj-dev/include/proj_api.h
Call Stack (most recent call first):
CMakeLists.txt:354 (find_package)
-- Found Proj: C:/OSGeo4W/apps/proj-dev/lib/proj.lib version (..)
-- Found GEOS: C:/OSGeo4W/lib/geos_c.lib ()
-- Found GDAL: C:/OSGeo4W/apps/gdal-dev/lib/gdal_i.lib (3.7.0dev-494dfb0a4c)
-- Found Expat: C:/OSGeo4W/lib/libexpat.lib
-- Found Spatialindex: C:/OSGeo4W/lib/spatialindex-64.lib
-- Found LibZip: C:/OSGeo4W/lib/zip.lib
-- Found libzip: C:/OSGeo4W/lib/zip.lib
-- Found Sqlite3: C:/OSGeo4W/lib/sqlite3_i.lib
-- Found Protobuf: C:/OSGeo4W/lib/libprotobuf.lib (found version "3.13.0")
-- Found Protobuf: C:/OSGeo4W/lib/libprotobuf.lib
-- Found ZLIB: C:/OSGeo4W/lib/zlib.lib (found version "1.2.12")
-- Found zlib: C:/OSGeo4W/lib/zlib.lib
-- Found exiv2: C:/OSGeo4W/lib/exiv2.lib
-- Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR) (found version "14.3")
-- Found PostgreSQL: C:/OSGeo4W/lib/libpq.lib
-- Found SpatiaLite: C:/OSGeo4W/lib/spatialite_i.lib
-- Qt WebKit support enabled
-- Using embedded laz-perf
-- Found ZSTD: C:/OSGeo4W/lib/zstd.lib
-- Found ZSTD: C:/OSGeo4W/lib/zstd.lib
-- Found Qt version: 5.15.3
-- Found QScintilla2: C:/OSGeo4W/apps/Qt5/lib/qscintilla2.lib (2.13.1)
-- Found Qwt: C:/OSGeo4W/apps/Qt5/lib/qwt.lib (6.1.6)
-- Found QtKeychain: C:/OSGeo4W/apps/Qt5/lib/qt5keychain.lib
-- Found QCA: C:\OSGeo4W\apps\Qt5\lib\qca-qt5.lib (2.3.1)
-- Pedantic compiler settings enabled
-- Debug output enabled
-- Found GSL: C:/OSGeo4W/lib/gsl.lib;C:/OSGeo4W/lib/cblas.lib
-- Found Python: C:/OSGeo4W/bin/python3.exe (found suitable version "3.9.5", minimum required is "3.7") found components: Interpreter Development
-- Found Python executable: C:/OSGeo4W/bin/python3.exe (version 3.9.5)
-- Python library: C:/OSGeo4W/apps/Python39/libs/python39.lib
-- Python site-packages: C:\OSGeo4W\apps\Python39\Lib\site-packages
-- Found SIP version: 6.1.1
-- Found PyQt5 version: 5.15.4
-- Found QScintilla2 PyQt module: 2.13.1
-- git marker, but no git found - version will be unknown
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found HDF5: hdf5-shared (found version "1.10.7")
-- Found PkgConfig: C:/cygwin64/bin/pkg-config (found version "")
-- Found NetCDF: C:/OSGeo4W/lib/netcdf.lib
-- Found LibXml2: C:/OSGeo4W/lib/libxml2.lib (found version "2.9.10")
-- Found OCI: C:/OSGeo4W/lib/oci.lib
-- Found FCGI: C:/OSGeo4W/lib/libfcgi.lib
-- Using PROJ >= 6 srs database.
-- Ctest Binary Directory set to: C:/OSGeo4W/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/output/bin
-- Configuring incomplete, errors occurred!
See also "C:/OSGeo4W/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/CMakeFiles/CMakeOutput.log".
See also "C:/OSGeo4W/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/CMakeFiles/CMakeError.log".
cmake failed
BUILD ERROR 1: 10.12.2022 19:48:49,95
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeOutput.log
Type: application/octet-stream
Size: 36961 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221210/cdd06880/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeError.log
Type: application/octet-stream
Size: 8801 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221210/cdd06880/attachment-0003.obj>
More information about the QGIS-Developer
mailing list