Please help me with these errors

Hey guys,

Everytime I try to compile an example, I always get something that’s missing. For instance when I tried to compile deviceQuery using the make command, I get this:

/usr/bin/ld: cannot find -lcutil
collect2: ld returned 1 exit status
make: *** […/…/bin/linux/release/deviceQuery] Error 1

or when I try to ‘make’ boxFilter I get:

/usr/bin/ld: cannot find -lcutil
collect2: ld returned 1 exit status
make: *** […/…/bin/linux/release/deviceQuery] Error 1

Please help.

-lcutil refers to the cuda utilities library that’s included with the SDK. Try make using the Makefile provided in NVIDIA_CUDA_SDK/ not in the individual project folder. Hope this helps!

Thanks for the response. I did run the make file and after compiling a few examples it gave me this error:

make[1]: Entering directory `/home/supacreative/NVIDIA_CUDA_SDK/projects/SobelFilter’

/usr/bin/ld: cannot find -lXmu

collect2: ld returned 1 exit status

make[1]: *** […/…/bin/linux/release/SobelFilter] Error 1

make[1]: Leaving directory `/home/supacreative/NVIDIA_CUDA_SDK/projects/SobelFilter’

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

How do I fix this?

This is the first time I’m developing in a linux environment so please bear with me.

I was able to fix all of this. I had to install two libraries:

sudo apt-get install libc6-dev-i386

and

sudo apt-get install libxmu-dev libxmu6