<div dir="ltr"><div>I am attempting to build QGIS on Windows 7 and am getting errors in the cmake-gui. I followed the general instructions found here:<br><br><a href="https://github.com/qgis/QGIS/blob/master/INSTALL">https://github.com/qgis/QGIS/blob/master/INSTALL</a><br><br></div><div>When I run "Configure" in cmake-gui it cannot find:<br></div><div>Qt5Core_DIR<br></div><div>Qt5Gui_DIR<br></div><div>SPATIALINDEX_LIBRARY<br><br></div><div>This is the message:<br><br><span style="color:rgb(255,0,0)">CMake Error at CMakeLists.txt:249 (FIND_PACKAGE):<br>  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has<br>  asked CMake to find a package configuration file provided by "Qt5Gui", but<br>  CMake did not find one.<br><br>  Could not find a package configuration file provided by "Qt5Gui" with any<br>  of the following names:<br><br>    Qt5GuiConfig.cmake<br>    qt5gui-config.cmake<br><br>  Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set<br>  "Qt5Gui_DIR" to a directory containing one of the above files.  If "Qt5Gui"<br>  provides a separate development package or SDK, be sure it has been<br>  installed.</span></div><div><br></div>Do you have any idea what I am missing? This is my environment set up script:<br><br>@echo off<br>set VS90COMNTOOLS=%PROGRAMFILES(X86)%\Microsoft Visual Studio 14.0\Common7\Tools\<br>call "%PROGRAMFILES(X86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64<br><br>set INCLUDE=%INCLUDE%;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.1A\include<br>set LIB=%LIB%;%PROGRAMFILES%\Microsoft SDKs\Windows\v7.1A\lib<br><br>set OSGEO4W_ROOT=C:\OSGeo4W64<br>call "%OSGEO4W_ROOT%\bin\o4w_env.bat"<br>path %PATH%;%PROGRAMFILES%\CMake\bin;c:\cygwin64\bin;c:\bin<br><br>@set GRASS_PREFIX=c:/OSGeo4W64/apps/grass/grass-7.2.1<br>@set INCLUDE=%INCLUDE%;%OSGEO4W_ROOT%\include;%OSGEO4W_ROOT%\apps\Qt5\include<br>@set LIB=%LIB%;%OSGEO4W_ROOT%\lib;%OSGEO4W_ROOT%\apps\Qt5\lib<br><br>@cmd<br><div><br><br></div></div>