Results 1 to 6 of 6

Thread: [SOLVED] error: cannot find -lGL

  1. #1
    Join Date
    Dec 2013
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default [SOLVED] error: cannot find -lGL

    Hello,
    I tryed to install QT5.1.1 in Ubuntu 12.04 inside a virtual machine VMware.
    If I create a new project or clean or rebuild an exist project, when i try to build i receive these error:

    error: cannot find -lGL

    In the file Makefile I find these row:

    LIBS = $(SUBLIBS) -L/home/lele/Qt5.1.1/5.1.1/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread

    if i delete manually -lGL everything work and compilation happen whitout errors, but i would like to dont need to modificate manually the file every time when i clea or rebuild my projects.

    Somebody can tell me why happen these ?

    Thanks for answere Gabriele.
    Last edited by lele71; 13th December 2013 at 17:38.

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: error: cannot find -lGL

    OpenGl is a requirement for Qt 5, so you will need to install it: sudo apt-get install mesa-common-dev

  3. #3
    Join Date
    Dec 2013
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: error: cannot find -lGL

    Thanks Zlatomir for advice I try it but for regred nothing changed the problem still persist.

    Gabriele.

  4. #4
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: error: cannot find -lGL

    Did the installation finished without problems?
    Anyway try to install the libgl: sudo apt-get install libgl1-mesa-dev

  5. #5
    Join Date
    Dec 2013
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: error: cannot find -lGL

    Fantastic Zlatomir after install libgl everything work fine.

    Many many thanks

    Sincerely Gabriele

  6. #6
    Join Date
    Apr 2014
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: error: cannot find -lGL

    install sudo apt-get install mesa-common-dev

Similar Threads

  1. Error: /usr/bin/ld: cannot find -lGL
    By tomkonikkara in forum Newbie
    Replies: 18
    Last Post: 18th September 2015, 19:14
  2. Replies: 1
    Last Post: 28th December 2012, 22:13
  3. error: cannot find -lovlnxlib
    By Tondog in forum KDE Forum
    Replies: 0
    Last Post: 14th August 2009, 15:20
  4. Find one error
    By BadKnees in forum Qt Programming
    Replies: 3
    Last Post: 24th March 2009, 15:33
  5. The error: /usr/bin/ld: cannot find -lphonon
    By learning_qt in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 22:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.