Error Compiling Cuda 7 OpenGL Samples

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../libGL.so when searching for -lGL/usr/bin/ld: skipping incompatible /lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [simpleGL] Error 1

If you see these errors. It is an issue with the libGL symbolic links being broken.
For an easy fix (I always go for the easy fix), reinstall the CUDA graphics driver.
For example: ./NVIDIA-Linux-x86_64-319.72.run

Those pesky broken symbolic links for libGL libraries will be fixed.

If you want to really understand how to fix it manually : https://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=migr-5094265

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s