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. C1083: ...'GL/gl.h': No such file or directory
Forum Updated to NodeBB v4.3 + New Features

C1083: ...'GL/gl.h': No such file or directory

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 5 Posters 7.7k Views 4 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.
  • D Offline
    D Offline
    DelNoble
    wrote on last edited by
    #1

    I am trying to compile the program presented in
    C++ GUI Programming with Qt 4, second edition second chapter titled Creating Dialogs, but I get an error message during compilation time that reads:
    C:\Qt\5.5\msvc2012\include\QtGui\qopengl.h:122: error: C1083: Cannot open include file: 'GL/gl.h': No such file or directory

    I had to modify the project so that it would not use the Ui (commented out #include "ui_mainwindow.h") default file, since the example in the book does not call for it.

    What am I doing wrong, how can I get rid of this error?

    Thanks!!

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

      Hi,

      IIRC, you need to install the Windows SDK from Microsoft to get the OpenGL headers and libs.

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

      JKSHJ D 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        IIRC, you need to install the Windows SDK from Microsoft to get the OpenGL headers and libs.

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi @DelNoble,

        Does your computer have a graphics card that supports OpenGL? If so, you just need to install the latest drivers for your graphics card.

        If you don't have an OpenGL-capable graphics card, then I suggest you skip the chapters that use OpenGL.

        @SGaist said:

        IIRC, you need to install the Windows SDK from Microsoft to get the OpenGL headers and libs.

        Note that the Windows SDK only provides OpenGL 1.1, which is very old. (It might be sufficient for the example in the book, but I'm not sure)

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          IIRC, you need to install the Windows SDK from Microsoft to get the OpenGL headers and libs.

          D Offline
          D Offline
          DelNoble
          wrote on last edited by
          #4

          @SGaist that was already done. Qt works perfectly if I want to use the RAD (Rapid Aid Design) tool, but if I want to do it from scratch it has the above problem.
          Do you normally just throw your advice like that? Please be more considere when giving advice. If I was a rooky your would have sent me on never ending spiral. Just to later on hate Qt and go with another toolkit.
          I speak from experience, a year ago I took it upon myself to learn qt, and your advice were nothing but deception!
          You know what, just forget it, ignore this thread and keep your advice to yourself.
          No offence intended, just sincerity.

          jsulmJ 1 Reply Last reply
          0
          • D DelNoble

            @SGaist that was already done. Qt works perfectly if I want to use the RAD (Rapid Aid Design) tool, but if I want to do it from scratch it has the above problem.
            Do you normally just throw your advice like that? Please be more considere when giving advice. If I was a rooky your would have sent me on never ending spiral. Just to later on hate Qt and go with another toolkit.
            I speak from experience, a year ago I took it upon myself to learn qt, and your advice were nothing but deception!
            You know what, just forget it, ignore this thread and keep your advice to yourself.
            No offence intended, just sincerity.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @DelNoble You ask other people for help. You get an answer for free and then you're becoming unfriendly just because you already did what was suggested?! How should SGaist know that?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            D 1 Reply Last reply
            1
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @DelNoble, I'm sorry to hear that you had little luck with getting your problem(s) resolved last year, but please understand that this is normal in a community where the volunteers are vastly outnumbered by people seeking help, and yet no full-time helpers exist.

              Please realize that @SGaist took the (limited) information that you provided and made a reasonable, educated guess for you. His approach has helped countless users who come to this forum with questions. During the times when his original guess was incorrect, a typical reasonable user would come back and say, "No, I tried what you suggested but I still get the same error message. Could you please have a closer look?"

              If you want a solution that is carefully researched and tailored to your specific situation, with a high guarantee of success, your best bet is to hire a consultant.

              You are welcome to continue using these forums, but please keep it civil.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • jsulmJ jsulm

                @DelNoble You ask other people for help. You get an answer for free and then you're becoming unfriendly just because you already did what was suggested?! How should SGaist know that?

                D Offline
                D Offline
                DelNoble
                wrote on last edited by DelNoble
                #7

                @jsulm Thanks for your reply.

                There is a direct correlation between my statements of unhappiness and the declarative of no intention of insult. However, I must say, as we grow accustomed to our rights we tend to forget its consequences, a fact that becomes more important as our authority, given or earned, grows.
                Yes, it is SGaist right to give his opinion, but he also has to realized that he holds a position of authority and that his opinions *must be carefully considered [see] ( http://forum.qt.io/users/sort-reputation ).
                I am glad that you have confronted me so aggressively regarding this matter, it show that there is a culture of honour and solidarity in here, I appreciate that, very much. However, in a study done at Yeshiva University, it was determined that, when telling the truth, the overall pattern is that people are not so much conformists or independents as they are cooperative truth tellers under social and moral constraints.

                Having stated that, I'd like to tell everyone who reads this message, that, though I am aware that there are certain groups in which its members compete to earn more batches, indiscriminately, and that this batch-earning-culture has made those group members arrogant and non-trustworthy as well as combatant and abusive towards one another, I don't believe that this is the case in Qt Forums. Certainly, I realize the lack to tactfulness in my request to SGaist not to provide any input on this subject, however, my request stands.

                Throughout last year, I spent countless hours of my free time to learn and developing a interface using wxWidget. The toolkit is fascinatingly easy to use and very much adaptable to VS and GNU. However, prior to that I intended to do the same thing with Qt; it was a disaster! The VS version of Qt never worked properly, even the installation had a lot of problems. Asking questions in this forum lead me to no where else but frustration. SGaist was the main source of information at that time and I follow every advice he gave me, but it was not meant to be, so I abandoned Qt and chose wxWidget instead.

                Please note that for personal reasons, I rather develop using Qt and not wxWidget.

                It was until a co-worker took time, from his busy schedule, to explain to me why Qt was not even installing properly in my desktop that I realize that SGaist had ill advised me all along. That is there reason I don't accept his opinion and rather not have it.

                I would ask but one thing from you @jsulm, please, refrain from advising future developers, like my self, to go somewhere else to find help. If you cannot help, just walk away and wait for the right opportunity to give your opinion, your words or advice don't hurting or benefit anyone else, but Qt.

                jsulmJ 1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DelNoble
                  wrote on last edited by
                  #8

                  Moving on with the Original Question, what would be the information you need to best understand the problem?
                  I am using Win10 on a Desktop PC, VSExpress 2013/Windows SDK and Qt (latest version).
                  If you ever had had a similar problem, please let me know how you solved it.
                  Thanks in advance.

                  mrjjM JKSHJ 2 Replies Last reply
                  0
                  • D DelNoble

                    Moving on with the Original Question, what would be the information you need to best understand the problem?
                    I am using Win10 on a Desktop PC, VSExpress 2013/Windows SDK and Qt (latest version).
                    If you ever had had a similar problem, please let me know how you solved it.
                    Thanks in advance.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @DelNoble said:

                    C:\Qt\5.5\msvc2012\include\QtGui\qopengl.h:122: error: C1083: Cannot open include file: 'GL/gl.h': No such file or directory

                    I wonder about msvc2012 when you say VSExpress 2013 ?

                    there are these packs available
                    Qt 5.5.1 for Windows 64-bit (VS 2013, 823 MB) (info)
                    Qt 5.5.1 for Windows 32-bit (VS 2013, 804 MB) (info)
                    Qt 5.5.1 for Windows 32-bit (VS 2012, 747 MB) (info)

                    so I wonder if you go the one that matches the compiler you are using. ?

                    Disclaimer:
                    I use only mingw so not expert on Visual Studio.
                    use at own risk.

                    1 Reply Last reply
                    0
                    • D DelNoble

                      Moving on with the Original Question, what would be the information you need to best understand the problem?
                      I am using Win10 on a Desktop PC, VSExpress 2013/Windows SDK and Qt (latest version).
                      If you ever had had a similar problem, please let me know how you solved it.
                      Thanks in advance.

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      @DelNoble said:

                      what would be the information you need to best understand the problem?

                      1. How did you create your project? (To understand how the problem appeared in the first place)
                      2. Do you want to use Qt Designer, or code the whole GUI by hand? (To understand the type of solution you want)

                      I am using Win10 on a Desktop PC, VSExpress 2013/Windows SDK and Qt (latest version).
                      If you ever had had a similar problem, please let me know how you solved it.
                      Thanks in advance.

                      I have not encountered a similar problem myself, but these people have:

                      • http://stackoverflow.com/questions/28991719/c1083-cannot-open-include-file-gl-gl-h-no-such-file-or-directory
                      • http://stackoverflow.com/questions/32549721/error-c1083-cannot-open-include-file-gl-gl-h-no-such-file-or-directory-on-w

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply
                      0
                      • D DelNoble

                        @jsulm Thanks for your reply.

                        There is a direct correlation between my statements of unhappiness and the declarative of no intention of insult. However, I must say, as we grow accustomed to our rights we tend to forget its consequences, a fact that becomes more important as our authority, given or earned, grows.
                        Yes, it is SGaist right to give his opinion, but he also has to realized that he holds a position of authority and that his opinions *must be carefully considered [see] ( http://forum.qt.io/users/sort-reputation ).
                        I am glad that you have confronted me so aggressively regarding this matter, it show that there is a culture of honour and solidarity in here, I appreciate that, very much. However, in a study done at Yeshiva University, it was determined that, when telling the truth, the overall pattern is that people are not so much conformists or independents as they are cooperative truth tellers under social and moral constraints.

                        Having stated that, I'd like to tell everyone who reads this message, that, though I am aware that there are certain groups in which its members compete to earn more batches, indiscriminately, and that this batch-earning-culture has made those group members arrogant and non-trustworthy as well as combatant and abusive towards one another, I don't believe that this is the case in Qt Forums. Certainly, I realize the lack to tactfulness in my request to SGaist not to provide any input on this subject, however, my request stands.

                        Throughout last year, I spent countless hours of my free time to learn and developing a interface using wxWidget. The toolkit is fascinatingly easy to use and very much adaptable to VS and GNU. However, prior to that I intended to do the same thing with Qt; it was a disaster! The VS version of Qt never worked properly, even the installation had a lot of problems. Asking questions in this forum lead me to no where else but frustration. SGaist was the main source of information at that time and I follow every advice he gave me, but it was not meant to be, so I abandoned Qt and chose wxWidget instead.

                        Please note that for personal reasons, I rather develop using Qt and not wxWidget.

                        It was until a co-worker took time, from his busy schedule, to explain to me why Qt was not even installing properly in my desktop that I realize that SGaist had ill advised me all along. That is there reason I don't accept his opinion and rather not have it.

                        I would ask but one thing from you @jsulm, please, refrain from advising future developers, like my self, to go somewhere else to find help. If you cannot help, just walk away and wait for the right opportunity to give your opinion, your words or advice don't hurting or benefit anyone else, but Qt.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @DelNoble I never tolled you to go somewhere else to find help. I only tolled you that you should not be unfriendly to people trying to help you! If some suggestions do not work for you just say that in a polite way. SGaist has a lot of experience and helped many people, why do you think you can be so disrespectful to him?

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        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