I am new in QT.
I have created Notepad example project.
When I build it I have got an error:
16:51:12: Starting: “/usr/bin/make”
/home/sergey/Qt5.0.2/5.0.2/gcc_64/bin/qmake -spec linux-g++-64 CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ../Notepad/Notepad.pro
g++ -m64 -Wl,-rpath,/home/sergey/Qt5.0.2/5.0.2/gcc_64 -Wl,-rpath,/home/sergey/Qt5.0.2/5.0.2/gcc_64/lib -o Notepad main.o notepad.o moc_notepad.o -L/usr/X11R6/lib64 -L/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 -L/home/sergey/Qt5.0.2/5.0.2/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [Notepad] Error 1
16:51:12: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project Notepad (kit: Desktop Qt 5.0.2 GCC 64bit)
When executing step ‘Make’
How to fix this error?
↧