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 5.2 VS2010 - ‘GLES2/gl2.h’: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

Qt 5.2 VS2010 - ‘GLES2/gl2.h’: No such file or directory

Scheduled Pinned Locked Moved General and Desktop
15 Posts 4 Posters 25.7k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Indeed, sorry, I misunderstood your original post.

    You should not have this problem then

    As a workaround you can add

    @$(QTDIR)\include\QtANGLE@

    To your pro file

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TEDSON
      wrote on last edited by
      #5

      I'll try that, thanks.

      First though, I'll have to figure out how to make a .pro file because there is not one (that I can see( in my solution explorer.

      Thanks for the tip, I appreciate it.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TEDSON
        wrote on last edited by
        #6

        From the Qt5 menu in VS I selected "create basic .pro file"

        But something looks awry about the generated file.

        @# ----------------------------------------------------

        This file is generated by the Qt Visual Studio Add-in.

        ------------------------------------------------------

        TEMPLATE = app
        TARGET = QTGUIHELLOWORLD
        DESTDIR = ../Win32/Debug
        QT += core widgets gui
        CONFIG += debug
        DEFINES += WIN64 QT_DLL QT_WIDGETS_LIB
        INCLUDEPATH += ./GeneratedFiles
        .
        ./GeneratedFiles/Debug
        DEPENDPATH += .
        MOC_DIR += ./GeneratedFiles/debug
        OBJECTS_DIR += debug
        UI_DIR += ./GeneratedFiles
        RCC_DIR += ./GeneratedFiles
        include(QTGUIHELLOWORLD.pri)@

        Most notably, the line "DEFINES += WIN64 QT_DLL QT_WIDGETS_LIB"

        I'm very new to Qt but I definitely not using a 64bit windows, however my CPU (AMD) is 64 bit.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TEDSON
          wrote on last edited by
          #7

          If I add this to my existing .pro

          INCLUDEPATH += "C:/Qt/Qt5.2.0/5.2.0/msvc2010/include/QtANGLE/GLES2/gl2.h"

          Intellisense still tells me it cannot find it, and my project will not compile.

          If I add #include "C:/Qt/Qt5.2.0/5.2.0/msvc2010/include/QtANGLE/GLES2/gl2.h" to any of my project files, intellisense is happy, but project still will not compile because of same errors as above.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TEDSON
            wrote on last edited by
            #8

            New info:

            If I use QFileDialog in Qt Creator, everything is just fine, and it compiles and runs.

            I'm sure though that it's still using the VS 2010 compiler.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TEDSON
              wrote on last edited by
              #9

              Does this look correct, what I've added to vc++ directories -> include directories?...

              "$(QTDIR)msvc2010\include\QtANGLE"

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TEDSON
                wrote on last edited by
                #10

                I downloaded and installed
                Qt 5.2.0 for Windows 32-bit (VS 2010, 570 MB) (Info)

                If I get rid of that and get
                Qt 5.2.0 for Windows 32-bit (VS 2010, OpenGL, 569 MB) (Info)
                Instead, do you think this error will go away?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  The OpenGL build will indeed not use ANGLE

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    TEDSON
                    wrote on last edited by
                    #12

                    Thanks, I'll keep it in mind if I cannot find the solution, to whatever it is I'm doing wrong.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andreas.hammerschmidtgmx.net
                      wrote on last edited by
                      #13

                      Not sure if you still have the problem, but I had the same issue.

                      Simple do not include QtGui and everything works fine!

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        blueblood
                        wrote on last edited by
                        #14

                        Adding $(QTDIR)\include\QtANGLE to Project Properties->C++->General->Additional Include Directories has solved the problem for me.

                        1 Reply Last reply
                        0
                        • B Offline
                          B Offline
                          blueblood
                          wrote on last edited by
                          #15

                          Adding $(QTDIR)\include\QtANGLE to Project Properties->C++->General->Additional Include Directories has solved the problem for me.

                          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