Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Problem with fresh install of Qt Creator...

    General and Desktop
    3
    3
    297
    Loading More Posts
    • 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
      PaulKBSR last edited by

      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 Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        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

        JKSH 1 Reply Last reply Reply Quote 4
        • JKSH
          JKSH Moderators @mrjj last edited by

          @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 Reply Quote 3
          • First post
            Last post