Unsolved Error :-1: error: cannot find -lGL
-
Hi i installed qt for linux but show me this error why?
-
@Jeronimo /usr/bin/ld: cannot find -lGL
g++ -m32 -Wl,-O1 -Wl,-rpath,/opt/Qt/5.5/gcc -Wl,-rpath,/opt/Qt/5.5/gcc/lib -o binder main.o mainwindow.o moc_mainwindow.o -L/opt/Qt/5.5/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lGL -
You need to install
libgl1-mesa-dev
-
@ramn with sudo apt-get???
-
@Jeronimo
yes.
Also very common error so many posts about it here on forum.