CUDA SDK Compile Error on Ubuntu 9.04

Hello all,

I have some problem compiling CUDA SDK sample projects after successful installation of toolkits and SDK on Ubuntu 9.04.

In ‘~/NVIDIA_CUDA_SDK’ directory, I did make to compile the sample source codes but encountered below error message while compilation:

simpleTexture3D.cpp: In function ‘void runAutoTest(int, char**)’:

simpleTexture3D.cpp:334: warning: deprecated conversion from string constant to ‘char*’

/usr/bin/ld: cannot find -lXi

collect2: ld returned 1 exit status

make[1]: *** […/…/bin/linux/release/simpleTexture3D] error 1

make[1]: Leaving directory `/home/sjlee/NVIDIA_CUDA_SDK/projects/simpleTexture3D’

make: *** [projects/simpleTexture3D/Makefile.ph_build] error 2

and the make failed.

If anyone has an idea to solve this problem, please be kind enough to share the idea. Thank you.

lXi is a library for x11.


sudo apt-get install libXi-dev


sudo apt-get install libXmu-dev

It worked! Thank you, wise man.