I
I
Igor Mitrakov2018-06-01 01:34:31
Qt
Igor Mitrakov, 2018-06-01 01:34:31

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

Please tell me what is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2018-06-01
@igormitrakov

Good evening.
pavelk.ru/ubuntu-qt5-ne-zadan-kompilyator-not-foun...
At the same time, I recommend checking the drivers for the video card.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question