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. [solved] All build failing with "cannot find -lGL" from G++ command

[solved] All build failing with "cannot find -lGL" from G++ command

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 684 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.
  • S Offline
    S Offline
    samopn
    wrote on last edited by
    #1

    Hi

    Whatever I try to build fails with the above message... in full it is


    g++ -Wl,-rpath,/home/laurie/Dev/Qt5.3.2/5.3/gcc_64 -Wl,-rpath,/home/laurie/Dev/Qt5.3.2/5.3/gcc_64/lib -o Countdown2 main.o mainwindow.o moc_mainwindow.o -L/home/laurie/Dev/Qt5.3.2/5.3/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread

    /usr/bin/ld: cannot find -lGL

    Makefile:192: recipe for target 'Countdown2' failed

    I can obviously see that the problem is the "-lGL" flag is the issue but I cannot see where this is is configured, or whether I'm actually missing a library somewhere.

    Can someone please give me some pointers here.

    This is Qt Creator 3.2.1 Based on Qt 5.3.2 (GCC 4.6.1, 64 bit)

    Environment is Kubuntu 14.10

    Thanks

    Sam

    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