Results 1 to 3 of 3

Thread: link problem - /usr/bin/ld: cannot find -lGL

  1. #1
    Join Date
    Jul 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default link problem - /usr/bin/ld: cannot find -lGL

    Building a QT Gui project for the first time on a new install of QT5.5 on Ubuntu 14.04. I am not linking to the OpenGL Library.
    Exiting build with the message - /usr/bin/ld: cannot find -lGL.
    Any help or direction on the solution would be appreciated.
    Thanks

  2. #2
    Join Date
    Jun 2016
    Posts
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Android

    Default Re: link problem - /usr/bin/ld: cannot find -lGL

    Check Your configure command...skip building with opengl.

  3. #3
    Join Date
    Oct 2015
    Posts
    33
    Qt products
    Qt5
    Platforms
    Unix/X11
    Thanks
    14

    Default Re: link problem - /usr/bin/ld: cannot find -lGL

    Special Setup up for Qt under Ubuntu:

    https://wiki.qt.io/Install_Qt_5_on_Ubuntu

    TLDR:

    try running in console:

    (installs gl libs

    sudo apt-get install mesa-common-dev

    (installs glut libs)

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

Similar Threads

  1. QTextEdit problem after copying a link
    By zgulser in forum Qt Programming
    Replies: 2
    Last Post: 9th August 2012, 21:50
  2. Replies: 11
    Last Post: 5th May 2011, 14:05
  3. Link problem
    By pl01 in forum Newbie
    Replies: 0
    Last Post: 10th November 2010, 11:37
  4. Problem with libmng on static link
    By jlbrd in forum Installation and Deployment
    Replies: 2
    Last Post: 10th May 2006, 22:38

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.