Gk/GL.h not found
I am new to Qt.I installed Qt 5.9 in desktop with windows 7.I tried to run basic opengl example I got below error
"gl/gl.h not found"
I have installed visual studio 2017 express edition.
Hi! You also need to install the Windows SDK from Microsoft.
Pablo J. Rogina
@Wieland Thanks for the info.
Do I need to install windows SDK for visual studio 2017?
@Pablo-J.-Rogina Thanks for the info I will check it
@Pablo-J.-Rogina Thanks for the hint, but that topic on SO is about the GLUT library. The OP needs the OpenGL header files.
@Wieland I am able to install windows sdk for win7,but while compiling the qt 5.9 example I got the below error
":-1: error: Failed to retrieve MSVC Environment from "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat":
'chcp' is not recognized as an internal or external command,
operable program or batch file."
On the windows command prompt, check if
chcpcan be located:
C:\Users\YourName> where chcp
If it can't be located, your
PATHenvironment variable is broken.
@Wieland After running the command I got the below message
"C:\Windows\System32\chcp.com" and I added the "%SystemRoot%\system32" to environment variable
'chcp' is not recognized as an internal or external command issue fixed but still getting below error message
""C:\Qt\Qt5.9.0\5.9\msvc2017_64\include\QtGui\qopengl.h:139: error: C1083: Cannot open include file: 'GL/gl.h': No such file or directory
Is there any other things to be done to get rid of the problem?
Let me know is there any work around for this problem?
So do you now have the file
GL/gl.hon your system? If yes, please post the path where the file is located.
Thanks for the replay
I am able to find the gl/gl.h in below folders
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\gl
C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\gl
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl
Attached image path for refernce