Solved Error on linux, cannot find -lGL
I install Qt Creator the news version in ububtu
But when I try to run a project I'm gettin this error:
:-1: error: cannot find -lGL :-1: error: collect2: error: ld returned 1 exit status
I have no idea what could be caussing this error.
Another error I got while intalling the Qt creator was this:
Cannot start '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or directory
hskoglund last edited by hskoglund
Hi, you're missing some libraries, open Terminal and type
sudo apt-get install libglu1-mesa-dev
Thanks that fixes the problem I've been having.
@hskoglund How to install the 32-bit version? I am using qt creator 64bit
@Renn You need the 32bit versions of all the needed libraries (libglu1-mesa-dev:i386 in this case). It doesn't matter whether QtCreator is 32bit or 64bit (it is just an IDE).
@jsulm I have tried it can, but when I run through the terminal, it can only build a 64-bit only.
@jsulm Library file what is very important for building 32-bit?