I have the CUDA SDK running on Ubuntu 8.04, 64-bit server. I had a few slight problems when building the SDK that I solved. I thought I might post what I did in case it helps anyone.
-
I got complaints about missing GL/glu.h file. I had to:
apt-get install mesa-common-dev
apt-get install libglu1-mesa-dev -
postProcessedGL fails because it can’t find -lglut. In /usr/lib64 I had a libglut.so.3.8.0, so I made
a soft link /usr/lib64/libglut.so to point to the installed version. Tested binary, and it works. -
threadMigration fails to build because it can’t find gnu/stubs-32.h. After tracing thru include files, I found that you need to define x86_64 during compilation. This winds up including gnu/stubs-64.h instead of stubs-32.h. I made the following change to /common/common.mk:
was
COMMONFLAGS += -O3
now
COMMONFLAGS += -O3 -D__x86_64__
Tested binary and it works.