[QGIS-Developer] Building QGIS on Windows 7

C Hamilton adenaculture at gmail.com
Wed Jun 14 08:16:54 PDT 2017


I am attempting to build QGIS on Windows 7 and am getting errors in the
cmake-gui. I followed the general instructions found here:

https://github.com/qgis/QGIS/blob/master/INSTALL

When I run "Configure" in cmake-gui it cannot find:
Qt5Core_DIR
Qt5Gui_DIR
SPATIALINDEX_LIBRARY

This is the message:

CMake Error at CMakeLists.txt:249 (FIND_PACKAGE):
By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Gui", but
CMake did not find one.

Could not find a package configuration file provided by "Qt5Gui" with any
of the following names:

Qt5GuiConfig.cmake
qt5gui-config.cmake

Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
"Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui"
provides a separate development package or SDK, be sure it has been
installed.

Do you have any idea what I am missing? This is my environment set up
script:

@echo off
set VS90COMNTOOLS=%PROGRAMFILES(X86)%\Microsoft Visual Studio
14.0\Common7\Tools\
call "%PROGRAMFILES(X86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
x86_amd64

set INCLUDE=%INCLUDE%;%PROGRAMFILES(X86)%\Microsoft
SDKs\Windows\v7.1A\include
set LIB=%LIB%;%PROGRAMFILES%\Microsoft SDKs\Windows\v7.1A\lib

set OSGEO4W_ROOT=C:\OSGeo4W64
call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
path %PATH%;%PROGRAMFILES%\CMake\bin;c:\cygwin64\bin;c:\bin

@set GRASS_PREFIX=c:/OSGeo4W64/apps/grass/grass-7.2.1
@set
INCLUDE=%INCLUDE%;%OSGEO4W_ROOT%\include;%OSGEO4W_ROOT%\apps\Qt5\include
@set LIB=%LIB%;%OSGEO4W_ROOT%\lib;%OSGEO4W_ROOT%\apps\Qt5\lib

@cmd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170614/74ab9293/attachment.html>


More information about the QGIS-Developer mailing list