Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt creator Adding external library (still: Cannot open include file: 'GL/glew.h')
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 7.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    superwave
    wrote on last edited by
    #1

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

    Jim Von

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      This path makes no sense;
      $$PWD/D:/OpenGL/glew-1.5.4/include

      The $$PWD expands to the place where your .pro file lives. Appending a full path to that can not give you a proper path.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        superwave
        wrote on last edited by
        #3

        Thanks,

        I changed it to D:/OpenGL/glew-1.5.4/include, but the errors are the same

        Jim Von

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SetBetterPass
          wrote on last edited by
          #4

          try run qmake and then compile

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BelenMuñoz
            wrote on last edited by
            #5

            This is how I did, but I work in Linux, hope it helps you:

            @INCLUDEPATH += /usr/lib
            DEPENDPATH += /usr/lib

            INCLUDEPATH += /APPS/datared/bin/cgal/include
            DEPENDPATH += /APPS/datared/bin/cgal/include

            INCLUDEPATH += /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.

            Me casé con un enano pa jartarme de reí.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved