SDK-samples "make": cannot find -lGLU


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 …). 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/
libxmu6: /usr/lib/
libxmu6: /usr/lib/
libxmu6-dbg: /usr/lib/debug/usr/lib/
libxmuu-dev: /usr/lib/libXmuu.a
libxmuu-dev: /usr/lib/
libxmuu1: /usr/lib/
libxmuu1: /usr/lib/
libxmuu1-dbg: /usr/lib/debug/usr/lib/

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/
freeglut3: /usr/lib/
freeglut3-dbg: /usr/lib/debug/usr/lib/
freeglut3-dev: /usr/lib/libglut.a
freeglut3-dev: /usr/lib/
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 …