Results 1 to 2 of 2

Thread: Qt creator Adding external library (still: Cannot open include file: 'GL/glew.h')

  1. #1
    Join Date
    May 2011
    Location
    North Carolina
    Posts
    23
    Thanks
    10
    Qt products
    Qt4

    Unhappy 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....
    04.jpg

    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/ -lglew32d

    INCLUDEPATH += $$PWD/D:/OpenGL/glew-1.5.4/include
    DEPENDPATH += $$PWD/D:/OpenGL/glew-1.5.4/include

    However, 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

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qt creator Adding external library (still: Cannot open include file: 'GL/glew.h')

    It seems as you have to delete $$PWD/ from the path. Otherwise it is most likely an invalid one.

Similar Threads

  1. Qt Creator How to add an external .a library in Qt Creator project via GUI?
    By DIMEDROLL in forum Qt Tools
    Replies: 1
    Last Post: 7th January 2012, 07:11
  2. Adding glew library
    By Cucus in forum Newbie
    Replies: 3
    Last Post: 20th June 2011, 22:44
  3. Replies: 3
    Last Post: 1st November 2010, 16:33
  4. Qt Creator and using an external library under windows
    By QChristian in forum Installation and Deployment
    Replies: 1
    Last Post: 15th September 2010, 17:12
  5. Adding an external Library
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 13th December 2008, 05:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.