Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

ld -lGLerror in Qt 5.2 QtCreator 3.0 example ( serial enumerator example ) build

$
0
0
I’m trying to be intelligent in my first use of these forums re: QT and Ubunutu 13.10 tools. So I am getting this tool (ld) error: Debug’ g++ -Wl,-rpath,/home/cwpr/Qt5.2.0/5.2.0/gcc -Wl,-rpath,/home/cwpr/Qt5.2.0/5.2.0/gcc/lib -o enumerator main.o -L/home/cwpr/Qt5.2.0/5.2.0/gcc/lib -lQt5Widgets -lQt5SerialPort -lQt5Gui -lQt5Core -lGL -lpthread /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status make: Leaving directory `/home/cwpr/Qt5.2.0/5.2.0/gcc/examples/serialport/build-enumerator-Desktop_Qt_5_2_0_GCC_32bit-Debug’ make: *** [enumerator] Error 1 11:57:03: The process “/usr/bin/make” exited with code 2. Error while building/deploying project enumerator (kit: Desktop Qt 5.2.0 GCC 32bit) When executing step ‘Make’ After some learning an ASSumption is that QT uses qmake which I beleive generates a makefile to use standard make. And after man ld I believe the -lGL is trying to include GL which I equate to OpenGl, tho in the .pro and main.cpp I see no reference to OpenGL…. So with further searching on how to see if OpenGL is installed I did this command: dpkg -l |egrep -i “ GL |glx|opengl” which included this output: ii libqt4-opengl:i386 4:4.8.4+dfsg-0ubuntu18.1 i386 Qt 4 OpenGL module ii libqt5opengl5:i386 5.0.2+dfsg1-7ubuntu11.1 i386 Qt 5 OpenGL module Now I am confused as it appears OpenGL “for” Qt is there…. What is my next teachable moment? |>) Thanks, Clyde QT5.2 was installed by offline .run from qt=project.org/download – ish. After that QtCreator couldn’t find compiler so my searching lead to: sudo apt-get install build-essential which solved that problem and left me here….

Viewing all articles
Browse latest Browse all 13965

Trending Articles