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. connot find -lGL - how to recover?
Forum Updated to NodeBB v4.3 + New Features

connot find -lGL - how to recover?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 276 Views 3 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    I do not know what I did to "loose " this library.

    What are my options to recover it?

    Clean download of Qt or else ?

    My main project gives me over 7000 "issues "
    e6fe1795-28fd-4b19-97b6-60a5e35fefd2-image.png

    New test project is much skimpier and to the point

    63073712-c2b4-4f72-b6ed-29b64bdccb10-image.png

    ORIGINAL POST EDIT
    After exhausting my options
    i am posting ONE of the original errors hoping that somebody can (really) help me to resolve this issue.

    I can assure anybody interested in resolving this
    it is NOT related to missing CL , some other reference got wiped out.

    I had TWO different issues and missing CL appears NOT to be related to this.
    If it is I like to know best guess what is missing and mainly HOW to fix it .

    PS
    It may be related to 15.5.2 but I am not sure .
    I am trying to implement 6.2.0 but so far no luck.

    /home/qt/Qt/5.15.2/gcc_64/include/QtOpenGL/qgl.h:284: error: ‘GLuint’ does not name a type; did you mean ‘uint’?
    In file included from /home/qt/Qt/5.15.2/gcc_64/include/QtOpenGL/QGLContext:1,
    from ../application/mainwindow.h:55,
    from moc_mainwindow.cpp:10:
    /home/qt/Qt/5.15.2/gcc_64/include/QtOpenGL/qgl.h:284:5: error: ‘GLuint’ does not name a type; did you mean ‘uint’?
    284 | GLuint bindTexture(const QImage &image, GLenum target, GLint format,
    | ^~~~~~
    | uint

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

      Hi,

      Please use the search feature of the forum, this is a question that has been answer many times already.

      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
      2
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @AnneRanch said in connot find -lGL - how to recover?:
        > What are my options to recover it?

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @AnneRanch

          Hi
          Those look like openGl libs for the OS. They are not part of Qt.

          Unless you uninstalled them, im not sure how they can "go away"
          Maybe if you uninstalled something that also took them.
          Else they normally just stay.

          For ubuntu its often
          sudo apt-get install libgl1-mesa-dev

          A 1 Reply Last reply
          1
          • mrjjM mrjj

            @AnneRanch

            Hi
            Those look like openGl libs for the OS. They are not part of Qt.

            Unless you uninstalled them, im not sure how they can "go away"
            Maybe if you uninstalled something that also took them.
            Else they normally just stay.

            For ubuntu its often
            sudo apt-get install libgl1-mesa-dev

            A Offline
            A Offline
            Anonymous_Banned275
            wrote on last edited by Anonymous_Banned275
            #5

            @mrjj
            Update
            Appreciate yuor post very much.
            it sort of worked. when I build "NEW PROJECT" - no problem.
            To my knowledge I did not monkey with OpenGl.
            But I added another subproject - again without anything intentionally with OpenGL.
            some of the subprojects build and run , so I need to "go back" to find out which addition is causing this massive error output.
            Thanks

            More update
            My SUBDIR main project was (it is broken) "standard" windows menu driven widget and it is "generating" these errors. No more menu interface...

            My "examples" no longer have "pictures" - another missing GL (?)

            If I run the menu selection directly. as independent sub project, it works as expected.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Anonymous_Banned275
              wrote on last edited by
              #6

              @AnneRanch Mid-term observation

              Reinstalled the bellow, still getting the same error - missing WHAT ?
              And why new project do not have similar / same problem ?

              qt@qt-desktop:~$ sudo apt-get install build-essential
              1.
              1.
              1.

              1. sudo apt-get install libgl1-mesa-dev
              2. sudo apt-get install libglu1-mesa-dev
              3. sudo apt-get install freeglut3-dev
              4. [sudo] password for qt:
              5. Reading package lists... Done
              6. Building dependency tree... Done
              7. Reading state information... Done
              8. build-essential is already the newest version (12.8ubuntu3).
              9. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
              10. Reading package lists... Done
              11. Building dependency tree... Done
              12. Reading state information... Done
              13. libgl1-mesa-dev is already the newest version (21.0.1-2).
              14. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
              15. Reading package lists... Done
              16. Building dependency tree... Done
              17. Reading state information... Done
              18. libglu1-mesa-dev is already the newest version (9.0.1-1build1).
              19. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
              20. Reading package lists... Done
              21. Building dependency tree... Done
              22. Reading state information... Done
              23. freeglut3-dev is already the newest version (2.8.1-6).
              24. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
              25. qt@qt-desktop:~$
              1 Reply Last reply
              0
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #7
                This post is deleted!
                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