Results 1 to 4 of 4

Thread: Error while building [cannot find -lGL]

  1. #1
    Join Date
    Mar 2015
    Posts
    5
    Qt products
    Qt3
    Platforms
    Unix/X11
    Thanked 1 Time in 1 Post

    Question Error while building [cannot find -lGL]

    Hello,
    I would like to start my adventure with Qt, but after I installed it on Ubuntu 14.04 it throws errors while building.
    1)cannot find -lGL
    2)collect2:error:ld returned 1 exit status
    Can any1 help me?
    THanks in advance

  2. The following user says thank you to witusx93 for this useful post:

    b06 (16th April 2015)

  3. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    Default Re: Error while building [cannot find -lGL]

    Do you have OpenGL development packages installed ? (something like libgl-dev, libgl1-mesa-dev or mesa-common-dev etc. I don't remember the name exactly).

  4. #3
    Join Date
    Mar 2015
    Posts
    5
    Qt products
    Qt3
    Platforms
    Unix/X11
    Thanked 1 Time in 1 Post

    Default Re: Error while building [cannot find -lGL]

    Quote Originally Posted by stampede View Post
    Do you have OpenGL development packages installed ? (something like libgl-dev, libgl1-mesa-dev or mesa-common-dev etc. I don't remember the name exactly).
    THank you, I did:
    Qt Code:
    1. sudo apt-get install libgl1-mesa-dev
    To copy to clipboard, switch view to plain text mode 
    and it works fine now.

  5. #4
    Join Date
    Apr 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11
    Thanks
    4

    Default Re: Error while building [cannot find -lGL]

    Thx - worked for me too. ;-)

Similar Threads

  1. Replies: 1
    Last Post: 28th December 2012, 22:13
  2. Error building qt windows 7: ld.exe: cannot find ljscore
    By Ahas in forum Installation and Deployment
    Replies: 2
    Last Post: 18th May 2011, 13:03
  3. Replies: 4
    Last Post: 9th December 2010, 17:50
  4. Replies: 4
    Last Post: 28th September 2010, 07:57
  5. Error when building Qt4 on Mac OS X
    By DragonLance156156 in forum Installation and Deployment
    Replies: 11
    Last Post: 17th February 2009, 16:29

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
  •  
Qt is a trademark of The Qt Company.