Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Build failure : undefined reference to `gluPerspective'

$
0
0
Hello everbody, I have a build error when I try to build my Qt project with QtCreator. “undefined reference to `gluPerspective’”. My .pro file is : SOURCES += \     main.cpp \     monwidgetopengl.cpp \     mafenetre.cpp   HEADERS += \     monwidgetopengl.h \     mafenetre.h QT+= opengl QT+= widgets My mafenetre.cpp file (the error comes from this file): #include "mafenetre.h" #include <GL/glu.h>   // ...   // ... void MaFenetre::resizeGL(int width, int height) {     //...     gluPerspective(45.0f, (GLfloat)width/(GLfloat)height, 0.1f, 100.0f); //...   } I don’t understand why I have this error when I try to build my project. I have included the <GL/glu.h>, link opengl lib to my project… If someone has an idea… Thanks!

Viewing all articles
Browse latest Browse all 2113

Trending Articles