While trying to compile nVIDIA Cuda SDK sample codes on CentOS 6-x86-64 bit system , it gave following compilation error.
imageDenoisingGL.cpp: In function ‘void runAutoTest(int, char**)’:
imageDenoisingGL.cpp:627: warning: unused variable ‘devID’
/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status
make: *** [../../bin/linux/release/imageDenoising] Error 1
make: Leaving directory `/usr/local/NVIDIA_GPU_Computing_SDK/C/src/imageDenoising’
From the error itself , it is clear that the compiler is not able to locate the libXmu.so . I found the related library file in /usr/lib64 folder with different name ( libXmu.so.6.2.0 and libXmu.so.6.2 ).
I made a symbolic link with following command at /usr/lib64 and it seems that solved the issue.