/usr/bin/ld: cannot find -lXi

Trying to build CUDA sdk in Ubunto 8.04 and got following error message:

**** using cuda-linux64-rel-nightly-2.1.1635-3065709.run and cuda-sdk-linux-2.10.1126.1520-3141441.run ****

yliu@yliu-desktop-ubuntu:~/Workspace/CUDA/sdk$ make
make[1]: Entering directory /home/yliu/Workspace/CUDA/sdk/common' a - obj/release/bank_checker.cpp.o a - obj/release/cmd_arg_reader.cpp.o a - obj/release/cutil.cpp.o a - obj/release/stopwatch.cpp.o a - obj/release/stopwatch_linux.cpp.o a - obj/release/multithreading.cpp.o make[1]: Leaving directory /home/yliu/Workspace/CUDA/sdk/common’
make[1]: Entering directory /home/yliu/Workspace/CUDA/sdk/common' a - obj/release/paramgl.cpp.o a - obj/release/param.cpp.o make[1]: Leaving directory /home/yliu/Workspace/CUDA/sdk/common’
make[1]: Entering directory /home/yliu/Workspace/CUDA/sdk/common' a - obj/release/rendercheck_gl.cpp.o make[1]: Leaving directory /home/yliu/Workspace/CUDA/sdk/common’
make -C projects/boxFilter/
make[1]: Entering directory /home/yliu/Workspace/CUDA/sdk/projects/boxFilter' /usr/bin/ld: cannot find -lXi collect2: ld returned 1 exit status make[1]: *** [../../bin/linux/release/boxFilter] Error 1 make[1]: Leaving directory /home/yliu/Workspace/CUDA/sdk/projects/boxFilter’
make: *** [projects/boxFilter/Makefile.ph_build] Error 2

What is Xi library? Please help…

Thanks,
Yanling

You need libXi-devel (or equivalent).

Thanks, I also installed libXmu. Wondering why CUDA need such library… :rolleyes:

Thanks! This is all that was missing for my compilation :) External Image

CUDA doesn’t need such a library. Certain examples in the SDK have X-window GUIs and use these libs.