Problem with fresh install of Qt Creator...
-
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 -lGLThanks for the help!
-
Hi and welcome to the forums
Often this goes away with
sudo apt-get install mesa-common-dev -
@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-devThe official docs also has instructions for a few different distros: http://doc.qt.io/qt-5/linux.html#requirements-for-development-host