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 Updated to NodeBB v4.3 + New Features

Problem with fresh install of Qt Creator...

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 466 Views 2 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.
  • P Offline
    P Offline
    PaulKBSR
    wrote on 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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

      JKSHJ 1 Reply Last reply
      4
      • mrjjM mrjj

        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

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on 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

        • Login

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