AFAIK the debug libraries are not built by default, so you have to go to the main cudasdk directory and make the regular libs (if you haven’t already with ‘make’) and the debug libs (with ‘make dbg=1’). This should generate the library files libcutil.a, libcutilD.a, libparamgl.a, libparamglD.a, librendercheckgl.a, librendercheckglD.a in your cudasdk/lib directory.
i got this output
is it right?
[root@localhost /]# cd root
[root@localhost ~]# cd NVIDIA_CUDA_SDK/
[root@localhost NVIDIA_CUDA_SDK]# make dbg=1
make[1]: Entering directory `/root/NVIDIA_CUDA_SDK/common’
In file included from src/bank_checker.cpp:34:
./…/common/inc/bank_checker.h:52: warning: type qualifiers ignored on function return type
./…/common/inc/bank_checker.h:238: warning: type qualifiers ignored on function return type
src/bank_checker.cpp:75: warning: type qualifiers ignored on function return type
src/bank_checker.cpp:277: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:37,
from src/cutil.cpp:53:
./…/common/inc/stopwatch_base.h:74: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.h:78: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch_base.h:91,
from ./../common/inc/stopwatch.h:37,
from src/cutil.cpp:53:
./…/common/inc/stopwatch_base.inl:85: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.inl:96: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:44,
from src/cutil.cpp:53:
./…/common/inc/stopwatch_linux.h:64: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:68: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:144: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:161: warning: type qualifiers ignored on function return type
In file included from src/cutil.cpp:53:
./…/common/inc/stopwatch.h:53: warning: type qualifiers ignored on function return type
In file included from src/cutil.cpp:54:
./…/common/inc/bank_checker.h:52: warning: type qualifiers ignored on function return type
./…/common/inc/bank_checker.h:238: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:37,
from src/stopwatch.cpp:36:
./…/common/inc/stopwatch_base.h:74: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.h:78: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch_base.h:91,
from ./../common/inc/stopwatch.h:37,
from src/stopwatch.cpp:36:
./…/common/inc/stopwatch_base.inl:85: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.inl:96: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:44,
from src/stopwatch.cpp:36:
./…/common/inc/stopwatch_linux.h:64: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:68: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:144: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:161: warning: type qualifiers ignored on function return type
In file included from src/stopwatch.cpp:36:
./…/common/inc/stopwatch.h:53: warning: type qualifiers ignored on function return type
src/stopwatch.cpp:89: warning: type qualifiers ignored on function return type
In file included from src/stopwatch_linux.cpp:34:
./…/common/inc/stopwatch_linux.h:64: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:68: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:144: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:161: warning: type qualifiers ignored on function return type
ar: creating ./…/lib/libcutilD.a
a - obj/debug/bank_checker.cpp.o
a - obj/debug/cmd_arg_reader.cpp.o
a - obj/debug/cutil.cpp.o
a - obj/debug/stopwatch.cpp.o
a - obj/debug/stopwatch_linux.cpp.o
a - obj/debug/multithreading.cpp.o
make[1]: Leaving directory `/root/NVIDIA_CUDA_SDK/common’
make[1]: Entering directory `/root/NVIDIA_CUDA_SDK/common’
In file included from ./…/common/inc/paramgl.h:13,
from src/paramgl.cpp:8:
./…/common/inc/GL/glut.h:64:1: warning: “APIENTRY” redefined
In file included from ./…/common/inc/GL/glut.h:59,
from ./../common/inc/paramgl.h:13,
from src/paramgl.cpp:8:
/usr/include/GL/gl.h:105:1: warning: this is the location of the previous definition
ar: creating ./…/lib/libparamglD.a
a - obj/debug/paramgl.cpp.o
a - obj/debug/param.cpp.o
make[1]: Leaving directory `/root/NVIDIA_CUDA_SDK/common’
make[1]: Entering directory `/root/NVIDIA_CUDA_SDK/common’
ar: creating ./…/lib/librendercheckglD.a
a - obj/debug/rendercheck_gl.cpp.o
make[1]: Leaving directory `/root/NVIDIA_CUDA_SDK/common’
make -C projects/particles/
make[1]: Entering directory `/root/NVIDIA_CUDA_SDK/projects/particles’
In file included from particleSystem.cu:41:
…/…/common/inc/GL/glut.h:64:1: warning: “APIENTRY” redefined
In file included from …/…/common/inc/GL/glut.h:59,
from particleSystem.cu:41:
/usr/include/GL/gl.h:105:1: warning: this is the location of the previous definition
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/linux/debug/particles] Error 1
make[1]: Leaving directory `/root/NVIDIA_CUDA_SDK/projects/particles’
make: *** [projects/particles/Makefile.ph_build] Error 2
[root@localhost NVIDIA_CUDA_SDK]#