Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot find -lGL error [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Cannot find -lGL error [SOLVED]

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 5 Posters 11.9k 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.
  • A Offline
    A Offline
    aksharpatel47QT
    wrote on 23 Dec 2013, 03:51 last edited by
    #1

    I am using the ubuntu 14.04 and have installed qt linux opensource 5.2 android x86 offline. I'm getting the above error when trying to build desktop applications.

    The output is as below:
    @/usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    make: *** [application] Error 1
    09:18:40: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project application (kit: Desktop)
    When executing step 'Make'@

    Please help.

    1 Reply Last reply
    1
    • P Offline
      P Offline
      p3c0
      Moderators
      wrote on 23 Dec 2013, 05:13 last edited by
      #2

      Hi,

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

      157

      A 1 Reply Last reply 12 Mar 2015, 12:49
      1
      • A Offline
        A Offline
        aksharpatel47QT
        wrote on 23 Dec 2013, 07:12 last edited by
        #3

        @p3c0 : Thanks.. That solved my problem.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          grafzahl
          wrote on 3 Mar 2015, 12:04 last edited by
          #4

          [edit]SOLVED (see end)
          hi, i have the same problem, but this solution doesnt work:

          @sudo apt-get install libglu1-mesa-dev
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          Some packages could not be installed. This may mean that you have
          requested an impossible situation or if you are using the unstable
          distribution that some required packages have not yet been created
          or been moved out of Incoming.
          The following information may help to resolve the situation:

          The following packages have unmet dependencies.
          libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
          Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
          libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed
          Depends: gstreamer1.0-clutter but it is not going to be installed
          libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed
          Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
          E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
          @

          My system: Zenbook 303LN, i7-4500u with HD4000, NVIDIA Gforce 840M, 256GB SSD, 8GB RAM, 64bit Ubuntu 14.04

          solved by removing libcheese-gtk23, libclutter-1.0-0, libcheese7.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            grafzahl
            wrote on 3 Mar 2015, 12:04 last edited by
            #5

            [edit]SOLVED (see end)
            hi, i have the same problem, but this solution doesnt work:

            @sudo apt-get install libglu1-mesa-dev
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            Some packages could not be installed. This may mean that you have
            requested an impossible situation or if you are using the unstable
            distribution that some required packages have not yet been created
            or been moved out of Incoming.
            The following information may help to resolve the situation:

            The following packages have unmet dependencies.
            libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
            Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
            libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed
            Depends: gstreamer1.0-clutter but it is not going to be installed
            libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed
            Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
            E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
            @

            My system: Zenbook 303LN, i7-4500u with HD4000, NVIDIA Gforce 840M, 256GB SSD, 8GB RAM, 64bit Ubuntu 14.04

            solved by removing libcheese-gtk23, libclutter-1.0-0, libcheese7.

            1 Reply Last reply
            0
            • P p3c0
              23 Dec 2013, 05:13

              Hi,

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

              A Offline
              A Offline
              ajay
              wrote on 12 Mar 2015, 12:49 last edited by
              #6

              i have install qt-5.0.4 on rhel linux 7 64 bit . when do i run the gui based program error: GL/gl.h: No such file or directory so please suggest me this is Qt problem or Linux
              please tell me good suggetion

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lokeshmsit
                wrote on 19 Mar 2015, 18:30 last edited by
                #7

                i had similar problem of unmet dependencies.
                what i did:-

                (1) open ubuntu software center.
                (2) searched for libcheese-gtk23 and removed it.
                (3) searched for libcheese7 and removed it.
                (4)in terminal :-
                sudo apt-get autoclean && sudo apt-get purge &&
                sudo apt-get update

                (5)then, i installed sudo apt-get install libglu1-mesa-dev successfully.

                hope this will help you.
                Regards
                -Lokesh
                wesee

                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