<div dir="ltr">Hi,<div>I am trying to compile QGIS 3.38 on windows 11 with MSVC2019 and getting the following error at first level.</div><div><br></div><div><p style="margin:0px">
</p><p style="margin:0px">Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.</p><p style="margin:0px">QGIS version: 3.38.0 Grenoble (33800)<br></p><p style="margin:0px">Found OpenCL C++ headers: C:/OSGeo4W/include<br></p><p style="margin:0px">Could not find GRASS 7<br></p><p style="margin:0px">Found GRASS 8: C:/OSGeo4W/apps/grass/grass83 (8.3.2, off_t size = 8)<br></p><p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Warning at cmake/FindProj.cmake:21 (find_package):</span><br></p><p style="margin:0px"><span style="color:rgb(255,0,0)"><b> Could not find a configuration file for package "PROJ" that is compatible<br> with requested version "".<br></b><br> The following configuration files were considered but not accepted:<br> C:/OSGeo4W/lib/cmake/proj/proj-config.cmake, version: 9.4.0 (MSVC_TOOLSET_VERSION = 143)<br>Call Stack (most recent call first):<br> CMakeLists.txt:361 (find_package)<br></span>Found Proj: C:/OSGeo4W/lib/proj.lib version 9 (9.4.0)<span style="color:rgb(255,0,0)"><br></span></p><p style="margin:0px">Found Proj: PROJ_DIR-NOTFOUND<br></p><p style="margin:0px">Found Geos: 3.12.2 C:/OSGeo4W/lib/cmake/GEOS<br></p><p style="margin:0px">Found GDAL: 3.9.1 C:/OSGeo4W/apps/gdal/lib/cmake/gdal<br></p><p style="margin:0px">Found Spatialindex: C:/OSGeo4W/lib/spatialindex-64.lib<br></p><p style="margin:0px">Found libzip: C:/OSGeo4W/lib/zip.lib<br></p><p style="margin:0px">Found Sqlite3: C:/OSGeo4W/lib/sqlite3_i.lib<br></p><p style="margin:0px">Found Protobuf: C:/OSGeo4W/lib/libprotobuf.lib<br></p><p style="margin:0px">Found zlib: C:/OSGeo4W/lib/zlib.lib<br></p><p style="margin:0px">Found exiv2: C:/OSGeo4W/lib/exiv2.lib<br></p><p style="margin:0px">Checking for one of the modules 'spatialite'<br></p><p style="margin:0px">Found SpatiaLite: C:/OSGeo4W/lib/spatialite_i.lib<br></p><p style="margin:0px">Qt WebKit support enabled<br></p><p style="margin:0px">Using embedded laz-perf<br></p><p style="margin:0px">Found ZSTD: C:/OSGeo4W/lib/zstd.lib<br></p><p style="margin:0px">Found PDAL: pdalcpp (2.6.3)<br></p><p style="margin:0px">Found Draco: C:/OSGeo4W/lib/draco.lib (1.5.7)<br></p><p style="margin:0px">PDF4Qt disabled<br></p><p style="margin:0px">QtWebEngine support DISABLED.<br></p><p style="margin:0px">Found Qt version: 5.15.13<br></p><p style="margin:0px">Found QScintilla2: C:/OSGeo4W/apps/Qt5/lib/qscintilla2_qt5.lib (2.14.1)<br></p><p style="margin:0px">Found Qwt: C:/OSGeo4W/apps/Qt5/lib/qwt.lib (6.2.0)<br></p><p style="margin:0px">Found QCA: C:/OSGeo4W/apps/Qt5/lib/qca-qt5.lib (2.3.8)<br></p><p style="margin:0px">Pedantic compiler settings enabled<br></p><p style="margin:0px"><span style="color:rgb(255,0,0)">-- Found Python executable: C:/OSGeo4W/bin/python3.exe (version 3.12.4)</span><br></p><p style="margin:0px"><span style="color:rgb(255,0,0)">-- Python library: C:/OSGeo4W/apps/Python312/libs/python312.lib</span><br></p><p style="margin:0px"><span style="color:rgb(255,0,0)">-- Python site-packages: C:\OSGeo4W\apps\Python312\Lib\site-packages</span><br></p><p style="margin:0px">Found SIP version: 6.8.3<br></p><p style="margin:0px">Found PyQt5 version: 5.15.10<br></p><p style="margin:0px">Found QScintilla2 PyQt module: 2.14.1<br></p><p style="margin:0px">Using PROJ >= 6 srs database.<br></p><p style="margin:0px">QtGamepad not enabled - disabling bindings for derived classes<br></p><p style="margin:0px">Ctest Binary Directory set to: C:/repo/QGIS_3.38/build2019/output/bin<br></p><p style="margin:0px">Configuring done (19.2s)<br></p><p style="margin:0px"><br></p><p style="margin:0px"><b>Unable to find the PROJ directory.</b></p><p style="margin:0px">Any help?</p><p style="margin:0px"><br></p><p style="margin:0px">Regards</p><p style="margin:0px">Paul N</p></div></div>