Fail to run Cuda Sample Programs make command fails to compile all sample programs in GPU_Computing_

[font=“Times New Roman”] Posts: 9 [/font] [font=“Times New Roman”] [/font] [font=“Times New Roman”]Dear all,

Today I am going to compile the sample examples in NVIDIA_GPU_Computing_SDK/C directory by typing the command make & it results in the following error.

[root@cuda1 C]# make
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/common' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/common' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/common' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/shared' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/shared’
make -C src/scan/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/scan' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/scan’
make -C src/sortingNetworks/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks’
make -C src/alignedTypes/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/alignedTypes' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/alignedTypes’
make -C src/bicubicTexture/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture' /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status make[1]: *** [../../bin/linux/release/bicubicTexture] Error 1 make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture’
make: *** [src/bicubicTexture/Makefile.ph_build] Error 2
[root@cuda1 C]#

Can Someone PLease through some light on the root cause of this problem.

Thanks & best Regards
Adarsh Sharma[/font] [font=“Times New Roman”] [/font] [font=“Times New Roman”][/font]

This situation is described in Release Notes for SDK.
Look to /usr/lib (or lib64) and try to find libglut.so.3.
If it’s presented, use

ln -s /usr/lib/libglut.so.3 /usr/lib/libglut.so

and then make SDK binaries again.

If you don’t have the libraries here, try to find freeglut RPM package in installed RPM packages base,
or download the RPM from some external repository.

Mikhail

I have similar error:
SobelFilter.cpp:221: warning: unused parameter ‘value’
/usr/lib/libglut.so: undefined reference to XF86VidModeGetViewPort' /usr/lib/libglut.so: undefined reference to XF86VidModeGetAllModeLines’
/usr/lib/libglut.so: undefined reference to XF86VidModeSwitchToMode' /usr/lib/libglut.so: undefined reference to XF86VidModeSetViewPort’
/usr/lib/libglut.so: undefined reference to `XF86VidModeGetModeLine’

suggestions ?? (CUDA 4.0 release CentOS 5)