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. Build Error: cannot find -LGL on Ubuntu 14.04
Forum Updated to NodeBB v4.3 + New Features

Build Error: cannot find -LGL on Ubuntu 14.04

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 1.6k 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
    amsakib
    wrote on last edited by
    #1

    I have just installed Qt 5.3.2 from "qt-opensource-linux-x86-5.3.2.run" file on my Ubuntu 14.04. But I can not build any Qt widget application / Qt Qucik application. Here is what Compile Output says:

    @06:57:19: Running steps for project hello...
    06:57:19: Configuration unchanged, skipping qmake step.
    06:57:19: Starting: "/usr/bin/make"
    g++ -Wl,-rpath,/home/sakib/Qt5.3.2/5.3/gcc -Wl,-rpath,/home/sakib/Qt5.3.2/5.3/gcc/lib -o hello main.o mainwindow.o moc_mainwindow.o -L/home/sakib/Qt5.3.2/5.3/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    make: *** [hello] Error 1
    06:57:19: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project hello (kit: Desktop Qt 5.3 GCC 32bit)
    When executing step "Make"
    06:57:19: Elapsed time: 00:00.@

    Please help someone. Thanks in advance.

    1 Reply Last reply
    0
    • ZlatomirZ Offline
      ZlatomirZ Offline
      Zlatomir
      wrote on last edited by
      #2

      You need the opengl development package, to install it run this in terminal:
      @sudo apt-get install libgl1-mesa-dev@

      https://forum.qt.io/category/41/romanian

      R 1 Reply Last reply
      0
      • A Offline
        A Offline
        amsakib
        wrote on last edited by
        #3

        Thanks Zlatomir, thanks a lot. Its functioning properly now. :)

        1 Reply Last reply
        0
        • ZlatomirZ Zlatomir

          You need the opengl development package, to install it run this in terminal:
          @sudo apt-get install libgl1-mesa-dev@

          R Offline
          R Offline
          Richard96
          wrote on last edited by
          #4

          @Zlatomir Thank you

          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