/usr/bin/ld: cannot find -lXi and some other errors

I tried to ‘make’ the sdk, but i get this output:

I’ve read that u have to install libGLUT, but the install says that there is already a newer version installed.

Also ld cannot find -lXi, i searched that on the internet, but only -lX11 exists. What can i do to fix this?

You check if a library is accesible by ld doing

ldconfig -p | grep libraryname

in your case

ldconfig -p | grep Xi

if not listed, then you need to install some lib-dev files not only the lib archives.

:ph34r:

By the way, I have this similar problem

$ glxinfo |grep NVIDIA

server glx vendor string: NVIDIA Corporation

client glx vendor string: NVIDIA Corporation

OpenGL vendor string: NVIDIA Corporation

OpenGL version string: 2.1.2 NVIDIA 177.80

OpenGL shading language version string: 1.20 NVIDIA via Cg compiler

~/NVIDIA_CUDA_SDK/projects/simpleGL$ make

/usr/bin/ld: cannot find -lcutil

collect2: ld devolvió el estado de salida 1

make: *** [../../bin/linux/release/simpleGL] Error 1

---------------- edit

That was because Ihavent done make on the NVIDIA SDK root directory and trying to build directly one o the samples.

You have to install libxi (dev) and libxmu (dev)

External Media

how to i install them? apt-get install doesn’t find them…

install only serve for that and get dependencies, for search use apt-cache.

Try this:

$ apt-cache search libXi-dev

libxi-dev - X11 Input extension library (development headers)

$ apt-cache search libxmu-dev

libxmu-dev - X11 miscellaneous utility library (development headers)

libxmu-headers - X11 miscellaneous utility library headers

$ sudo apt-get install libxi-dev libxmu-dev

Answer yes if there is extra dependencies to get.

if apt-cache is not able to find them, perhaps is a problem about wich repos you have enabled, but first try the above.

THX!

Thanks, i made with your hints…