SDK-samples "make": cannot find -lGLU

Hi!

I have a little problem when trying to run “make” for compiling the samples included in the CUDA 3.0 SDK. The error reads

"[…]

make -C src/recursiveGaussian/

make[1]: Entering directory `/…/NVIDIA_GPU_Computing_SDK/C/src/recursiveGaussian’

/usr/bin/ld: cannot find -lGLU

collect2: ld returned 1 exit status

[…]".

After solving the problems with gcc, g++ and cpp with my Ubuntu 9.10 Karmic I dont know how to solve this one or even what it is about (I know bout libGLU and I already have libGLU.so.1 …). I would be happy if someone could give me some help here… plz :)

Did you try
aptitude install libgl1-mesa-dev libglu1-mesa-dev
?

I did and this message was not displayed again (now it’s /usr/bin/ld: cannot find -lXi)
Going to install libxinerama…

Oops was wrong. installing
aptitude install libxi-dev
did the trick. Now it’s time for
/usr/bin/ld: cannot find -lXmu

$ apt-file search libXmu
libxmu-dev: /usr/lib/libXmu.a
libxmu-dev: /usr/lib/libXmu.so
libxmu6: /usr/lib/libXmu.so.6
libxmu6: /usr/lib/libXmu.so.6.2.0
libxmu6-dbg: /usr/lib/debug/usr/lib/libXmu.so.6.2.0
libxmuu-dev: /usr/lib/libXmuu.a
libxmuu-dev: /usr/lib/libXmuu.so
libxmuu1: /usr/lib/libXmuu.so.1
libxmuu1: /usr/lib/libXmuu.so.1.0.0
libxmuu1-dbg: /usr/lib/debug/usr/lib/libXmuu.so.1.0.0

So i guess I need to
aptitude install libxmu-dev

Got another error,
/usr/bin/ld: cannot find -lglut

So, we use apt-file and find
$ apt-file search libglut
freeglut3: /usr/lib/libglut.so.3
freeglut3: /usr/lib/libglut.so.3.8.0
freeglut3-dbg: /usr/lib/debug/usr/lib/libglut.so.3.8.0
freeglut3-dev: /usr/lib/libglut.a
freeglut3-dev: /usr/lib/libglut.so
libglut3: /usr/share/doc/libglut3/changelog.Debian.gz
libglut3: /usr/share/doc/libglut3/changelog.gz
libglut3: /usr/share/doc/libglut3/copyright
libglut3-dev: /usr/share/doc/libglut3-dev/changelog.Debian.gz
libglut3-dev: /usr/share/doc/libglut3-dev/changelog.gz
libglut3-dev: /usr/share/doc/libglut3-dev/copyright
mingw32-runtime: /usr/i586-mingw32msvc/lib/libglut.a
mingw32-runtime: /usr/i586-mingw32msvc/lib/libglut32.a

ANd the next step would be
aptitude install freeglut3-dev
Obviously this command requires root privileges

Now after type make it seem like the compilation is going on…
with a few warnings as usual…
as long as text keeps outputting on the screen it’s fine

Finished building all
That’s what I wanted to see. Problem solved.

I also ran through the same series of problems. Helped me a lot, thanks …