Answer the question
In order to leave comments, you need to log in
How to fix an error when building a project in Qt?
Hello. After reinstalling on Ubuntu, there were problems with Qt.
When building a project in the Build Console, the following crashes:
/opt/Qt/5.10.1/gcc_64/bin/qmake -o Makefile ../MyProject/MyProject.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
g++ -Wl,-rpath,/opt/Qt/5.10.1/gcc_64/lib -o MyProject main.o moc_widget.o -L/opt/Qt/5.10.1/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/x86_64-linux-gnu-ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Makefile:249: recipe for target 'MyProject' failed
make: *** [MyProject] Error 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question