Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

[SOLVED] 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 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>