Cannot find -lGL error [SOLVED]



  • 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.


  • Moderators

    Hi,

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



  • @p3c0 : Thanks.. That solved my problem.



  • [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.



  • [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.



  • 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



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.