Cannot find -lGL Error while Building SDK


On trying to ‘make’ the SDK, I get the following error:

/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/linux/release/SobelFilter] Error 1
make[1]: Leaving directory `/home/gennadiy/NVIDIA_GPU_Computing_SDK/C/src/SobelFilter’
make: *** [src/SobelFilter/Makefile.ph_build] Error 2

I’m on Ubuntu 10.04 and I’ve got freeglut3 and freeglut3-dev installed and all the other OpenGL-related libraries.

Strangely enough, I built the SDK with no problems on another Ubuntu 10.04 system yesterday.


Check out the post by scg here