Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with fresh install of Qt Creator...
Forum Update on Monday, May 27th 2025

Problem with fresh install of Qt Creator...

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 462 Views
  • 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.
  • P Offline
    P Offline
    PaulKBSR
    wrote on 9 Nov 2018, 12:11 last edited by
    #1

    Hi.

    Just getting started with Qt and ran across a tutorial video on you tube for Qt where the guy installed it on Windows then created a bare bones app with no code, compiled it and ran it to produce an empty window. I copied that on Windows 10 and it worked. But my aim is not Windows it's linux. I did the same exact thing in MX linux and to my great displeasure it failed with a compiler error where it couldn't find a library to link to called "GL". Nothing else... The command says "-lGL". Any info would be appreciated.

    Here is the command used:
    g++ -Wl,-rpath,/opt/Qt/5.11.2/gcc_64/lib -o TestQt main.o mainwindow.o moc_mainwindow.o -L/opt/Qt/5.11.2/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL

    Thanks for the help!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 9 Nov 2018, 12:33 last edited by
      #2

      Hi and welcome to the forums

      Often this goes away with
      sudo apt-get install mesa-common-dev

      https://wiki.qt.io/Install_Qt_5_on_Ubuntu

      J 1 Reply Last reply 9 Nov 2018, 13:09
      4
      • M mrjj
        9 Nov 2018, 12:33

        Hi and welcome to the forums

        Often this goes away with
        sudo apt-get install mesa-common-dev

        https://wiki.qt.io/Install_Qt_5_on_Ubuntu

        J Offline
        J Offline
        JKSH
        Moderators
        wrote on 9 Nov 2018, 13:09 last edited by
        #3

        @mrjj said in Problem with fresh install of Qt Creator...:

        Hi and welcome to the forums

        Often this goes away with
        sudo apt-get install mesa-common-dev

        https://wiki.qt.io/Install_Qt_5_on_Ubuntu

        The official docs also has instructions for a few different distros: http://doc.qt.io/qt-5/linux.html#requirements-for-development-host

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        3

        3/3

        9 Nov 2018, 13:09

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved