fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory

Unable to create a new project in lumberyard. I always get the following error:

fatal error C1083: Cannot open include file: ‘GL/glew.h’: No such file or directory.

I have re-installed both Visual Studio and Lumberyard a couple of times now. So far it havn’t helped. So we are talking about a complete fresh install of both and the Setup assistant shows no errors or missing packages.

Extended error code:

c:\amazon\lumberyard\1.12.0.1\dev\gems\emotionfx\code\emotionfx\rendering\opengl2\source\GLInclude.h(14): fatal error C1083: Cannot open include file: ‘GL/glew.h’: No such file or directory
Build failed
<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
Compilation failed - File: ‘GBuffer.cpp.111.obj’, Module: ‘EMotionFX.Editor’, Configuration: ‘win_x64_vs2015|profile’, error code 2
Input Files: ‘c:\Amazon\Lumberyard\1.12.0.1\dev\Gems\EMotionFX\Code\EMotionFX\Rendering\OpenGL2\Source\GBuffer.cpp’
Output Files: ‘c:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Gems\EMotionFX\Code\EMotionFX\Rendering\OpenGL2\Source\GBuffer.cpp.111.obj’
Command: ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\CL.exe /nologo /W3 /WX /MP /Gy /GF /Gm- /fp:fast /Zc:wchar_t /Zc:forScope /Gd /wd4530 /wd4351 /Ox /Ob2 /Ot /Oi /Oy- /FS /Wv:18 /bigobj /showIncludes /MD /Z7 /GR- /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Gems\EMotionFX\Code /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Gems\EMotionFX\Code /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\boost /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\CryEngine\CryCommon /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Gems\EMotionFX\Code\Include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Gems\EMotionFX\Code\Source /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Gems\EMotionFX\Code\Include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Gems\EMotionFX\Code\Source /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Gems\EMotionFX\Code\EMotionFX\Tools /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Gems\EMotionFX\Code\EMotionFX\Tools /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Gems\EMotionFX\Code\EMotionFX\Pipeline /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Gems\EMotionFX\Code\EMotionFX\Pipeline /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\glew\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\Plugins\EditorCommon /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\Editor /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\Editor\Include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Tools /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Gems\LmbrCentral\Code\Include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Code\Framework\GFxFramework /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Framework\GFxFramework /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Code\Framework\AzQtComponents /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Framework\AzQtComponents /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Code\Framework\AzToolsFramework /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Framework\AzToolsFramework /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Code\Framework\AzFramework /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Framework\AzFramework /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Code\Framework\GridMate /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Framework\GridMate /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Tools\AwsNativeSDKInit\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Code\Framework\AzCore /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Framework\AzCore /Ic:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\qt5\EMotionFX.Editor.111 /IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE /IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE /IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt /IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um /IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared /IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um /IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtOpenGL /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\AWSNativeSDK\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtCore /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtCore\5.6.2 /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtCore\5.6.2\QtCore /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtQuick /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtGui /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtGui\5.6.2 /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtWidgets /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtWidgets\5.6.2 /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Sandbox\SDKs\Qt\msvc2015_64\include\QtWidgets\5.6.2\QtWidgets /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\OpenSSL\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\rapidjson\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\rapidxml /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\Lua /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\SDKs\zlib-common\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Code\Tools\SDKs /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Tools\InternalSDKs\LyMetrics\include /Ic:\Amazon\Lumberyard\1.12.0.1\dev\Tools\InternalSDKs\LyIdentity\include /D_WIN32 /D_WIN64 /DCODE_BASE_FOLDER=“c:/Amazon/Lumberyard/1.12.0.1/dev/Code/” /D_PROFILE /DPROFILE /DNDEBUG /DSCRIPTCANVAS_ERRORS_ENABLED /DBINFOLDER_NAME=“Bin64vc140” /DPLATFORM_SUPPORTS_AWS_NATIVE_SDK /DUSE_WINDOWS_DLL_SEMANTICS /DLY_BUILD=532402 /D_MT /D_DLL /DEMFX_DEVELOPMENT_BUILD /DEMFX_EMSTUDIOBUILD /DAZ_ENABLE_TRACING /DAZ_ENABLE_DEBUG_TOOLS /DEMFX_EMSTUDIOLYEMBEDDED /DEMOTIONFXANIMATION_EDITOR /DQT_OPENGL_LIB /DAWS_CUSTOM_MEMORY_MANAGEMENT /DUSE_IMPORT_EXPORT /DAWS_CUSTOM_MEMORY_MANAGEMENT /DAWS_CUSTOM_MEMORY_MANAGEMENT /DUSE_IMPORT_EXPORT /DAWS_CUSTOM_MEMORY_MANAGEMENT /DUSE_IMPORT_EXPORT /DQT_CORE_LIB /DQT_QUICK_LIB /DQT_GUI_LIB /DQT_WIDGETS_LIB /DOPENSSL_ENABLED /DLINK_LY_METRICS_DYNAMICALLY /DLINK_LY_IDENTITY_DYNAMICALLY /DLINK_LY_METRICS_PRODUCER_DYNAMICALLY /DEXE_VERSION_INFO_0=1 /DEXE_VERSION_INFO_1=12 /DEXE_VERSION_INFO_2=0 /DEXE_VERSION_INFO_3=1 c:\Amazon\Lumberyard\1.12.0.1\dev\Gems\EMotionFX\Code\EMotionFX\Rendering\OpenGL2\Source\GBuffer.cpp /c /Fo c:\Amazon\Lumberyard\1.12.0.1\dev\BinTemp\win_x64_vs2015_profile\Gems\EMotionFX\Code\EMotionFX\Rendering\OpenGL2\Source\GBuffer.cpp.111.obj’
Output:
GBuffer.cpp
c:\amazon\lumberyard\1.12.0.1\dev\gems\emotionfx\code\emotionfx\rendering\opengl2\source\GLInclude.h(14): fatal error C1083: Cannot open include file: ‘GL/glew.h’: No such file or directory
<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
Process failed with return code: 1

@RMStougaard

Found a solution to this: I updated my settings to compile the Lumberyard editor and the only extra SDK that it downloads is the glew library! Exactly what I needed and now everything compiles correctly.