to install demo in cuda sdk, I must install glut.a, because there’s a option “-lglut”
I install all mesa-opengl tools:
mesa-opengl, mesa-opengl-devel, mesa-glut, mesa-glut-devel.
with -qpi option, there is no glut.a install.
Where can I find it?
to install demo in cuda sdk, I must install glut.a, because there’s a option “-lglut”
I install all mesa-opengl tools:
mesa-opengl, mesa-opengl-devel, mesa-glut, mesa-glut-devel.
with -qpi option, there is no glut.a install.
Where can I find it?
I download mesaglut, but there’s no makefile in the root dir. so i install openglut instead.
i only got libopenglut.a. I make a link to it, named libglut.a.
when I make, I get errors:
[fzs@localhost ~]$ echo $LD_LIBRARY_PATH
[fzs@localhost ~]$ export LD_LIBRARY_PATH=/usr/local/cuda/lib
[fzs@localhost ~]$ cd NVIDIA_CUDA_SDK
[fzs@localhost NVIDIA_CUDA_SDK]$ ls
bin doc Makefile releaseNotesData tools
common lib projects ReleaseNotes.html
[fzs@localhost NVIDIA_CUDA_SDK]$ make
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/common’
ar: creating ./…/lib/libcutil.a
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/fzs/NVIDIA_CUDA_SDK/common’
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/common’
ar: creating ./…/lib/libparamgl.a
a - obj/release/paramgl.cpp_o
a - obj/release/param.cpp_o
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/common’
make -C projects/multiGPU/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/multiGPU’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/multiGPU’
make -C projects/marchingCubes/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/marchingCubes’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/marchingCubes’
make -C projects/simpleGL/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleGL’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleGL’
make -C projects/postProcessGL/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/postProcessGL’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/postProcessGL’
make -C projects/simpleAtomics/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleAtomics’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleAtomics’
make -C projects/lineOfSight/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/lineOfSight’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/lineOfSight’
make -C projects/SobelFilter/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/SobelFilter’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/SobelFilter’
make -C projects/template/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/template’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/template’
make -C projects/asyncAPI/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/asyncAPI’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/asyncAPI’
make -C projects/simpleCUFFT/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleCUFFT’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleCUFFT’
make -C projects/clock/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/clock’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/clock’
make -C projects/simpleTemplates/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleTemplates’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleTemplates’
make -C projects/bitonic/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/bitonic’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/bitonic’
make -C projects/binomialOptions/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/binomialOptions’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/binomialOptions’
make -C projects/alignedTypes/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/alignedTypes’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/alignedTypes’
make -C projects/fluidsGL/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/fluidsGL’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/fluidsGL’
make -C projects/convolutionSeparable/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/convolutionSeparable’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/convolutionSeparable’
make -C projects/reduction/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/reduction’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/reduction’
make -C projects/histogram256/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/histogram256’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/histogram256’
make -C projects/matrixMul/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/matrixMul’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/matrixMul’
make -C projects/simpleTextureDrv/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleTextureDrv’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/simpleTextureDrv’
make -C projects/MonteCarlo/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/MonteCarlo’
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/MonteCarlo’
make -C projects/nbody/
make[1]: Entering directory `/home/fzs/NVIDIA_CUDA_SDK/projects/nbody’
…/…/lib/libparamgl.a(paramgl.cpp_o): In function `ParamListGL::ParamListGL(char*)':
paramgl.cpp:(.text+0x575): undefined reference to `glutBitmap9By15’
…/…/lib/libparamgl.a(paramgl.cpp_o): In function `ParamListGL::ParamListGL(char*)':
paramgl.cpp:(.text+0xd25): undefined reference to `glutBitmap9By15’
collect2: ld 返回 1
make[1]: *** […/…/bin/linux/release/nbody] error 1
make[1]: Leaving directory `/home/fzs/NVIDIA_CUDA_SDK/projects/nbody’
make: *** [projects/nbody/Makefile.ph_build] error 2
Try installing freeglut through your distribution’s package manager.
I’ve installed freeglut
but there;s another problem:
cannot find -lcuda.
i looked all the files in /usr/local/cuda(my cuda tookit path),
i cannot find libcuda.a in the lib directory, I can only find man .so files.
Help me.thank you.
libcuda.so is the library -lcuda is looking for. You need to specify the directory in the CUDA_INSTALL_PATH line of common/common.mk.
You can debug the problem by executing “make verbose=1” and looking for the -L/usr/local/cuda/lib portion of the command line to make. That is what tells the compiler the location to search libraries for.
I think I know what’s wrong:
libcuda is installed with the driver of Nvidia device. I installed newest driver, everything goes well.
Thank you all the same.