Qt 5.2 VS2010 - ‘GLES2/gl2.h’: No such file or directory
-
From the Qt5 menu in VS I selected "create basic .pro file"
But something looks awry about the generated file.
@# ----------------------------------------------------
This file is generated by the Qt Visual Studio Add-in.
------------------------------------------------------
TEMPLATE = app
TARGET = QTGUIHELLOWORLD
DESTDIR = ../Win32/Debug
QT += core widgets gui
CONFIG += debug
DEFINES += WIN64 QT_DLL QT_WIDGETS_LIB
INCLUDEPATH += ./GeneratedFiles
.
./GeneratedFiles/Debug
DEPENDPATH += .
MOC_DIR += ./GeneratedFiles/debug
OBJECTS_DIR += debug
UI_DIR += ./GeneratedFiles
RCC_DIR += ./GeneratedFiles
include(QTGUIHELLOWORLD.pri)@Most notably, the line "DEFINES += WIN64 QT_DLL QT_WIDGETS_LIB"
I'm very new to Qt but I definitely not using a 64bit windows, however my CPU (AMD) is 64 bit.
-
If I add this to my existing .pro
INCLUDEPATH += "C:/Qt/Qt5.2.0/5.2.0/msvc2010/include/QtANGLE/GLES2/gl2.h"
Intellisense still tells me it cannot find it, and my project will not compile.
If I add #include "C:/Qt/Qt5.2.0/5.2.0/msvc2010/include/QtANGLE/GLES2/gl2.h" to any of my project files, intellisense is happy, but project still will not compile because of same errors as above.
-
The OpenGL build will indeed not use ANGLE
-
Not sure if you still have the problem, but I had the same issue.
Simple do not include QtGui and everything works fine!