SobelFilter and -lGL /usr/bin/ld: cannot find -lGL

Software installed :

    NVIDIA-Linux-x86_64-256.53.run

    cudatoolkit_3.1_linux_64_ubuntu9.10.run

    gpucomputingsdk_3.1_linux.run

make -C src/SobelFilter/

make[1]: Entering directory `/home/abraham/NVIDIA_GPU_Computing_SDK/C/src/SobelFilter’

In file included from SobelFilter.cpp:32:

SobelFilter_kernels.h:45: warning: deprecated conversion from string constant to ‘char*’

SobelFilter_kernels.h:45: warning: deprecated conversion from string constant to ‘char*’

SobelFilter_kernels.h:45: warning: deprecated conversion from string constant to ‘char*’

SobelFilter.cpp:50: warning: deprecated conversion from string constant to ‘char*’

/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/abraham/NVIDIA_GPU_Computing_SDK/C/src/SobelFilter’

make: *** [src/SobelFilter/Makefile.ph_build] Error 2

If you don’t see something like this:

avidday@cuda:~$ ldconfig -p | grep libGL.so

	libGL.so.1 (libc6,x86-64) => /usr/lib/libGL.so.1

	libGL.so.1 (libc6) => /usr/lib32/libGL.so.1

	libGL.so (libc6,x86-64) => /usr/lib/libGL.so

	libGL.so (libc6) => /usr/lib32/libGL.so

you need to install OpenGL.

If you don’t see something like this:

avidday@cuda:~$ ldconfig -p | grep libGL.so

	libGL.so.1 (libc6,x86-64) => /usr/lib/libGL.so.1

	libGL.so.1 (libc6) => /usr/lib32/libGL.so.1

	libGL.so (libc6,x86-64) => /usr/lib/libGL.so

	libGL.so (libc6) => /usr/lib32/libGL.so

you need to install OpenGL.