Qt creator Adding external library (still: Cannot open include file: 'GL/glew.h')
-
I followed the instruction:
In the Projects pane, open the project file (.pro).
Right-click in the code editor to open the context menu and select Add Library....
!http://www.qtcentre.org/attachment.php?attachmentid=8687&d=1360207416(Add Library)!Then the following lines were added into the pro file:
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/D:/OpenGL/glew-1.5.4/lib/ -lglew32
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/D:/OpenGL/glew-1.5.4/lib/ -lglew32dINCLUDEPATH += $$PWD/D:/OpenGL/glew-1.5.4/include
DEPENDPATH += $$PWD/D:/OpenGL/glew-1.5.4/includeHowever, I click the green triangle icon on the bottom left the run the program, still get the errors:
error: C1083: Cannot open include file: 'GL/glew.h': No such file or directory
Why? Thanks in advance
-
try run qmake and then compile
-
This is how I did, but I work in Linux, hope it helps you:
@INCLUDEPATH += /usr/lib
DEPENDPATH += /usr/libINCLUDEPATH += /APPS/datared/bin/cgal/include
DEPENDPATH += /APPS/datared/bin/cgal/includeINCLUDEPATH += /APPS/datared/bin/cgal/include/CGAL/config/x86-64_Linux-2.6_g++-3.4.6
LIBS += -L/usr/lib64 -lboost_thread
LIBS += -L/APPS/datared/bin/cgal/lib/x86-64_Linux-2.6_g++-3.4.6 -lCGAL@
Regards.