cannot find -lXmu : nVIDIA CUDA SDK compilation problem on CentOS 6 solved

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[2]: *** [../../bin/linux/release/imageDenoising] Error 1
make[2]: 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.

$ ln -s libXmu.so libXmu.so.6.2.0

Advertisements

Simple , Artistic , Meaningful

Tagged with: , , , , , , ,
Posted in computer, debug, GPGPU, install, Passion, Science, troubleshoot, Uncategorized
One comment on “cannot find -lXmu : nVIDIA CUDA SDK compilation problem on CentOS 6 solved
  1. Really enjoyed reading some of the posts on this site. Have linked it to E-WOT so I can come back!

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

%d bloggers like this: