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. Newly created project doesnt work: cannot find -lGL: no such file or directory

Newly created project doesnt work: cannot find -lGL: no such file or directory

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 705 Views
  • 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
    sebi03
    wrote on last edited by
    #1

    Just installed Qt 6.7.0 and wanted to make a UI for a simple c++ app. I create a qt desktop project and without touching anything else it fails to build. Am i missing a kit or something ? I tried making a project with qmake and cmake and they both give similar errors. 44f83dfa-a8d5-4af8-b996-a9ef3ff6ec13-image.png

    JonBJ 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Please show the pro-file

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 1 Reply Last reply
      2
      • S sebi03

        Just installed Qt 6.7.0 and wanted to make a UI for a simple c++ app. I create a qt desktop project and without touching anything else it fails to build. Am i missing a kit or something ? I tried making a project with qmake and cmake and they both give similar errors. 44f83dfa-a8d5-4af8-b996-a9ef3ff6ec13-image.png

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @sebi03
        Would help if you stated which platform/OS you are on (and possibly which compiler).
        Depending on your reply to @Christian-Ehrlicher, if you are Linux what libGL* files are on your system?

        S 1 Reply Last reply
        2
        • Christian EhrlicherC Christian Ehrlicher

          Please show the pro-file

          S Offline
          S Offline
          sebi03
          wrote on last edited by
          #4

          @Christian-Ehrlicher b65842b3-f3f1-48d4-b46e-6ef2f48c742b-image.png

          1 Reply Last reply
          0
          • JonBJ JonB

            @sebi03
            Would help if you stated which platform/OS you are on (and possibly which compiler).
            Depending on your reply to @Christian-Ehrlicher, if you are Linux what libGL* files are on your system?

            S Offline
            S Offline
            sebi03
            wrote on last edited by
            #5

            @JonB i am on ubuntu 22.04 and i am using the compiler provided with the installation. can you elaborate on the libGL files as i dont know what those are. my replies might be slow because i am allowed one post every 10 mins as i just made the account

            M 1 Reply Last reply
            0
            • S sebi03

              @JonB i am on ubuntu 22.04 and i am using the compiler provided with the installation. can you elaborate on the libGL files as i dont know what those are. my replies might be slow because i am allowed one post every 10 mins as i just made the account

              M Offline
              M Offline
              mpergand
              wrote on last edited by
              #6

              @sebi03
              Note: Just installing the above-mentioned mesa-common-dev kit is not sufficient for more recent Ubuntu versions. Based on a comment in the Qt forum[1] an additional package needs installation. Execute following command:

              sudo apt-get install libglu1-mesa-dev -y

              see HERE

              1 Reply Last reply
              3
              • S sebi03 has marked this topic as solved on
              • S Offline
                S Offline
                sebi03
                wrote on last edited by
                #7

                after installing libglu it worked! thank you all guys !

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mpergand
                  wrote on last edited by mpergand
                  #8

                  This issue is so common on this forum that it would deserve a pinned link somewhere IMO.

                  1 Reply Last reply
                  1

                  • Login

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