I believe that I have correctly set up the link between libglut.so and ibglut.so.3
which was discussed on page 4 of the CUDA Software Development Kit Release Notes.
I must do what it says to do at the end (page 5) of the Release notes section
IV section Known Issues
I must create a soft link in a directory to which I do have write permissions ( to directory /usr/lib) and then add that directory
to the library search path (-L) in the Makefile.
What is the syntax for that command? I simply am not sure of it. The notes give syntax for everything, but that command.
I am too new to Linux to create that command.
First, I am running Linux Ubuntu 8.04 and CUDA 2.1
I am trying to get make to compile my first files. The is in the Linux CuDA 2.1 Installation and Verification of LINUX document. I believe that it is not finding the library files in /usr/lib/. I know that I have no write permision to the directory /usr/lib/ except as root. Thus I must do as it says in the release notes:
If you have libglut.so.3 but you do not have write access to /usr/lib, you
can also fix the problem by creating the soft link in a directory to which
you have write permissions and then add that directory to the libarary
search path (-L) in the Makefile.
I clearly do not have write access to the /usr/lib/ except as root (see above). I also have libglut.so.3 and not libglut.so. I successfully linked the two (see above). Now I am having trouble with a known issue. I seem to fit the last definition and I must create a softlink to /usr/lib/ where I have no write permission (except as root). I must link to it with a directory where I do have write permission. What is the syntax for that? the release note give syntax for a lot, but not for that.
The documentation instructs you to either set LD_LIBRARY_PATH to the location of the CUDA toolkit libraries, or add that location to /etc/ld.so.conf. Did you do either of those?
james ~/NVIDIA_CUDA_SDK$ make
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common' a - obj/release/bank_checker.cpp.o make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common’
a - obj/release/paramgl.cpp.o
a - obj/release/param.cpp.o
make[1]: Leaving directory /home/james/NVIDIA_CUDA_SDK/common' make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common’
a - obj/release/rendercheck_gl.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/james/NVIDIA_CUDA_SDK/common' make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common’
a - obj/release/paramgl.cpp.o
a - obj/release/param.cpp.o
make[1]: Leaving directory /home/james/NVIDIA_CUDA_SDK/common' make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common’
a - obj/release/rendercheck_gl.cpp.o
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common' a - obj/release/paramgl.cpp.o a - obj/release/param.cpp.o make[1]: Leaving directory /home/james/NVIDIA_CUDA_SDK/common’
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common' a - obj/release/rendercheck_gl.cpp.o make[1]: Leaving directory /home/james/NVIDIA_CUDA_SDK/common’
make -C projects/simpleGL/
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/projects/simpleGL' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _nv001250gl’
/usr/lib/gcc/i486-linux-gnu/4.2.4/…/…/…/…/lib/libGL.so: undefined reference to _nv001253gl' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _nv001252gl’
/usr/lib/gcc/i486-linux-gnu/4.2.4/…/…/…/…/lib/libGL.so: undefined reference to _nv001254gl' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _nv001249gl’
/usr/lib/gcc/i486-linux-gnu/4.2.4/…/…/…/…/lib/libGL.so: undefined reference to _nv001251gl' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _n
v001255gl’
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/linux/release/simpleGL] Error 1
make[1]: Leaving directory `/home/james/NVIDIA_CUDA_SDK/projects/simpleGL’
make: *** [projects/simpleGL/Makefile.ph_build] Error 2
james ~/NVIDIA_CUDA_SDK$
james ~/NVIDIA_CUDA_SDK$
Paths
james ~/NVIDIA_CUDA_SDK$ echo $PATH
/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
james ~/NVIDIA_CUDA_SDK$ echo $LD_LIBRARY_PATH
/usr/local/cuda/lib:
Paths okay.
Now it can find lglut. I showed that in the first email. I linked libglut.so and
libglut.so.3.
I need syntax command. Link to dir with no write permission.
Newport_j