Hi everybody !
I come here because I've a problem when i m trying run opengl es example from ktcreator.
I want test the hellogl_es example but every time the compilation doesn't works.
I think it's because I miss something to link opengl.
Aslo I work on 64bits windows 7 with visual studio 2008 and 2010
thus I have got several gl.h
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include\gl
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl

hellogl_es2.pro :
######################################################################
# Automatically generated by qmake (2.01a) Thu Oct 4 19:01:12 2007
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
SOURCES += glwidget.cpp
SOURCES += mainwindow.cpp
SOURCES += bubble.cpp
HEADERS += glwidget.h
HEADERS += mainwindow.h
HEADERS += bubble.h
RESOURCES += texture.qrc
QT += opengl
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es2
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellogl_es2.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es2
INSTALLS += target sources
######################################################################
# Automatically generated by qmake (2.01a) Thu Oct 4 19:01:12 2007
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
SOURCES += glwidget.cpp
SOURCES += mainwindow.cpp
SOURCES += bubble.cpp
HEADERS += glwidget.h
HEADERS += mainwindow.h
HEADERS += bubble.h
RESOURCES += texture.qrc
QT += opengl
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es2
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellogl_es2.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es2
INSTALLS += target sources
To copy to clipboard, switch view to plain text mode
In glwidget.h I put
#include <QtOpenGL/QGLWidget>
#include <QtOpenGL/QGLWidget>
To copy to clipboard, switch view to plain text mode
instead of
#include <QGLWidget>
#include <QGLWidget>
To copy to clipboard, switch view to plain text mode
Bookmarks