Hi,
I'm trying to add glew library on my project Qt but I don't understand why, it didn't find some functions.
Here's my .pro:
Qt Code:
#------------------------------------------------- # # Project created by QtCreator 2011-03-22T23:49:11 # #------------------------------------------------- QT += core gui opengl QT += webkit TARGET = Teste TEMPLATE = app SOURCES += main.cpp\ menuprincipal.cpp \ glwidget.cpp \ box.cpp \ point.cpp \ arraylist.cpp \ arraylist.operators.cpp \ xml.cpp \ tinyxmlparser.cpp \ tinyxmlerror.cpp \ tinyxml.cpp \ tinystr.cpp \ robot.cpp \ joint.cpp \ vertex.cpp \ properties.cpp \ face.cpp \ matrixcalculator.cpp HEADERS += menuprincipal.h \ glwidget.h \ box.h \ point.h \ arraylist.h \ xml.h \ tinyxml.h \ tinystr.h \ robot.h \ joint.h \ vertex.h \ properties.h \ face.h \ matrixcalculator.h \ tree.hh FORMS += menuprincipal.ui LIBS += -lglew32To copy to clipboard, switch view to plain text mode
I don't have problems calling code = glewInit(); but when I try to call other functions like glGenVertexArrays, I have this error:
undefined reference to `_imp____glewGenVertexArrays'
I read the instructions of how to set this library here but nothing. I have put the header <GL/glew.h> in the right place but stills not working.
Any idea?
Bookmarks