QT OpenGL mit Visual Studio 2005
Verfasst: 7. November 2007 18:01
Hi, ich will QT OpenGL mit VS2005 ans laufen bringen bekomme aber nur Linker fehler,
auf der Trolltech Seite steht das hier
Code: Alles auswählen
1>PCAOpenGL.obj : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function "public: virtual void __thiscall PCAOpenGL::initializeGL(void)" (?initializeGL@PCAOpenGL@@UAEXXZ)
1>PCAOpenGL.obj : error LNK2019: unresolved external symbol __imp__glOrtho@48 referenced in function "public: virtual void __thiscall PCAOpenGL::initializeGL(void)" (?initializeGL@PCAOpenGL@@UAEXXZ)bringt mir aber wenig... bei VS2005, kann mir einer sagen was ich einstallen muss bzw welche Libs ich linken muss...To link against the module, add this line to your qmake .pro file:
QT += opengl
The Qt OpenGL module is implemented as a platform-independent Qt/C++ wrapper around the platform-dependent GLX, WGL, or AGL C APIs. The functionality provided is very similar to Mark Kilgard's GLUT library, but with much more non-OpenGL-specific GUI functionality, i.e. the whole Qt API.