PDA

View Full Version : Opengl ES with qtcreator win 7 64bits



oeufraise
10th December 2010, 13:29
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

http://img121.imageshack.us/img121/8610/screen1vwp.png

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
In glwidget.h I put

#include <QtOpenGL/QGLWidget>
instead of

#include <QGLWidget>