Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved Error: cannot find -lGL

    General and Desktop
    8
    15
    2643
    Loading More Posts
    • 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.
    • L
      LIS-KZP last edited by

      Hi, anyone know this error "cannot find -lGL"?
      I'm using ubuntu

      Thanks

      R 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by jsulm

        You need to install libgl1-mesa-dev package

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

        1 Reply Last reply Reply Quote 0
        • R
          Renn @LIS-KZP last edited by

          @LIS-KZP Before you've installed the libgl1-mesa-dev?

          1 Reply Last reply Reply Quote 0
          • johngod
            johngod last edited by

            sudo apt-get install libqt5-opengl-dev

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Hi and welcome to devnet,

              @LIS-KZP please search the forum before asking a question. That one has been asked and answered many times already even yesterday.

              @johngod That will also install the Qt 5 dev packages from Ubuntu, which is not necessarily what the OP wants.

              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 Reply Quote 0
              • S
                shellback3 last edited by

                @Sgaist I did attempt a search but found nothing. What I want is qt-creator installed and working on my Ubuntu 14.04 machine using XFCE4. and I don't know enough about Qt to have any preferences.

                @jsulim I did the usual apt-get update and then

                sudo apt-get install libgl1-mesa-dev

                It appeared to be working and then a license notification appeared but there was no way to accept it so after several minutes I closed the terminal emulator.

                I get the same error when I attempt to compile. Do I need to delete my previous qt installation and reinstall? Should I use the Ubuntu version?

                1 Reply Last reply Reply Quote 0
                • S
                  shellback3 last edited by

                  BTW I initialed my screen name after my first post ...

                  mrjj 1 Reply Last reply Reply Quote 0
                  • mrjj
                    mrjj Lifetime Qt Champion @shellback3 last edited by mrjj

                    @shellback3
                    at work i'm also on 14.04 (mint) with xfce.
                    besides sudo apt-get install libgl1-mesa-dev
                    I just downloaded the linux open source installer and
                    chmod +x it and ran it.
                    I get no license notification so I wonder what you have installed?

                    1 Reply Last reply Reply Quote 0
                    • S
                      shellback3 last edited by

                      When I run 'sudo apt-get install libgl1-mesa-dev' it starts to run and then the terminal window is filled by a window titled "Configuring ttf-mscorefonts-installer" with some text: "TrueType core fonts for the Web EULA". There is no place to input acceptance or reject the EULA and I suspect closing the window kills the installation. I think I need to reboot for that process to quit.

                      JKSH 1 Reply Last reply Reply Quote 0
                      • S
                        shellback3 last edited by

                        @mrjj I was able to kill the process. I'll attempt to install Qt again...

                        1 Reply Last reply Reply Quote 0
                        • JKSH
                          JKSH Moderators @shellback3 last edited by

                          @shellback3 said:

                          When I run 'sudo apt-get install libgl1-mesa-dev' it starts to run and then the terminal window is filled by a window titled "Configuring ttf-mscorefonts-installer" with some text: "TrueType core fonts for the Web EULA". There is no place to input acceptance or reject the EULA and I suspect closing the window kills the installation. I think I need to reboot for that process to quit.

                          I've read that you can accept the license by pressing [space].

                          If that doesn't work, try installing the libgl1-mesa-dev package using other means. Do you have a package manager installed?

                          This is not related to Qt, by the way -- it's just that the Mesa libraries depend on non-free licenses.

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

                          1 Reply Last reply Reply Quote 1
                          • jsulm
                            jsulm Lifetime Qt Champion last edited by

                            I don't think libgl1-mesa-dev depends on ttf-mscorefonts-installer.
                            I guess ttf-mscorefonts-installer was selected for installation before.
                            And it is for sure possible to accept the license, I already installed this package several times, just check carefully what is printed there.

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

                            1 Reply Last reply Reply Quote 0
                            • S
                              shellback3 last edited by

                              @JKSH
                              @jsulm

                              Thanks (to everyone), I DO have synaptic installed (I had forgotten), so I picked the Trusty box and it installed. This time the EULA displayed correctly with an 'Agree' check box and button to continue (I had tried the space bar before but it didn't do anything). The 'stub' application compiled without incident so I guess my path to Qt is cleared ...

                              1 Reply Last reply Reply Quote 0
                              • S
                                shellback3 last edited by

                                [SOLVED]
                                WIll this mark my post as solved? I can't edit the title.

                                mrjj 1 Reply Last reply Reply Quote 0
                                • mrjj
                                  mrjj Lifetime Qt Champion @shellback3 last edited by

                                  @shellback3
                                  Use the Topic Tools button to mark as Solved.
                                  its sort of under topic to the right

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post