CUDA SDK 2.2 missing include file? Problem doing make on SDK 2.2

I’m running Ubuntu 9.04 amd64 with Driver 185 and Toolkit and SDK version 2.2. When I do a make in the SDK home directory I get a error with a missing include file in the chain …/…/common/inc/GL/glut.h - it has an #include <glu.h> but there is no glu.h file in the directory.

Suggestions?

You need to install the GLUT library development files for OpenGL. Installing libglut3-dev should fix it.

im getting a similar error…

how do i get the whole glut library?

is there any way to get these libraries from the command prompt as my software manager is showing some errors?

For ubuntu, use:

sudo apt-get install libglut3-dev

N.

i already did but im getting the following errors:

root@mig8gb1-desktop:~# sudo apt-get install libglut3-dev

Reading package lists… Done

Building dependency tree

Reading state information… Done

libglut3-dev is already the newest version.

You might want to run `apt-get -f install’ to correct these:

The following packages have unmet dependencies:

freeglut3-dev: Depends: freeglut3 (= 2.4.0-6.1) but it is not going to be installed

             Depends: xlibmesa-glu-dev or

                      libglu-dev

             Depends: libxt-dev but it is not going to be installed

             Depends: libxext-dev but it is not going to be installed

libx11-dev: Depends: libx11-6 (= 2:1.1.5-2) but 2:1.1.99.2-1ubuntu2 is to be installed

          Depends: libxau-dev (>= 1:1.0.0-1) but it is not going to be installed

          Depends: libxdmcp-dev (>= 1:1.0.0-1) but it is not going to be installed

          Depends: x11proto-core-dev (>= 6.8.99.8-1) but it is not going to be installed

          Depends: x11proto-input-dev but it is not going to be installed

          Depends: x11proto-kb-dev but it is not going to be installed

          Depends: xtrans-dev but it is not going to be installed

          Depends: libxcb-xlib0-dev but it is not installable

E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

then i did

root@mig8gb1-desktop:~# apt-get -f install

and im getting this

root@mig8gb1-desktop:~# apt-get -f install

Reading package lists… Done

Building dependency tree

Reading state information… Done

Correcting dependencies… Done

The following extra packages will be installed:

freeglut3 freeglut3-dev libglu1-mesa-dev libice-dev libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev

libxdmcp-dev libxext-dev libxt-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xtrans-dev

The following NEW packages will be installed:

freeglut3 libglu1-mesa-dev libice-dev libpthread-stubs0 libpthread-stubs0-dev libsm-dev libxau-dev libxcb1-dev libxdmcp-dev libxext-dev

libxt-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xtrans-dev

The following packages will be upgraded:

freeglut3-dev libx11-dev

2 upgraded, 16 newly installed, 0 to remove and 3 not upgraded.

5 not fully installed or removed.

Need to get 3299kB of archives.

After this operation, 6250kB of additional disk space will be used.

Do you want to continue [Y/n]? y

0% [Connecting to archive.ubuntu.com (91.189.88.40)]

it seems that my system is not able to contact the ubuntu server as im using a proxy…

what do i do now???

thanking you for your valuable help.

You could try selecting another server in synaptic.

N.

actually im using kubuntu 9.04 which is having only ksoftwaremanager…its completely useless…

is there any command like “sudo apt-get --print-uris install build-essential” that prints the address of the glib packages i need in the console…

this is how i had installed the build essential libraries…

Can’t help you there. Personally, I’ve never had any problems with the package manager and/or apt-get.

You can always install it manually from a .deb file, no?

N.

I suspect that glut should be installed before CUDA driver.

So probably you need the following tasks:

Uninstall CUDA toolkit: sudo rm -r -f /usr/local/cuda
sudo apt-get autoremove libglut3-dev
Stop GNOME/KDE environment and go to the Ctrl-Alt-F1 console
sudo apt-get install libglut3-dev
Reinstall CUDA driver (note that you need the latest 2.2 driver instead of the beta one weeks ago)
Install CUDA toolkit
Build CUDA SDK apps

I fixed the problem by loading the following:

libglu1-mesa-dev
freeglut3-dev
libxmu-dev
libc6-dev-i386
libxi-dev

I used sudo apt-get install

re-did the make and everything works. Ran some of the test files. My 9500GT ($49 at Fry’s) would have made the Top 100 supercomputer list in 2000!

Thanks to all

DB

LOL, my Casio calculator (2$ at any stationer’s) would be the number-one ‘supercomputer’ in 1800s.

i did that but im getting the following errors…

root@mig8gb1-desktop:~# sudo apt-get install libxi-dev

Reading package lists… Done

Building dependency tree

Reading state information… Done

You might want to run `apt-get -f install’ to correct these:

The following packages have unmet dependencies:

freeglut3-dev: Depends: freeglut3 (= 2.4.0-6.1) but it is not going to be installed

             Depends: xlibmesa-glu-dev or

                      libglu-dev

             Depends: libxt-dev but it is not going to be installed

             Depends: libxext-dev but it is not going to be installed

libx11-dev: Depends: libx11-6 (= 2:1.1.5-2) but 2:1.1.99.2-1ubuntu2 is to be installed

          Depends: libxau-dev (>= 1:1.0.0-1) but it is not going to be installed

          Depends: libxdmcp-dev (>= 1:1.0.0-1) but it is not going to be installed

          Depends: x11proto-core-dev (>= 6.8.99.8-1) but it is not going to be installed

          Depends: x11proto-input-dev but it is not going to be installed

          Depends: x11proto-kb-dev but it is not going to be installed

          Depends: xtrans-dev but it is not going to be installed

          Depends: libxcb-xlib0-dev but it is not installable

libxi-dev: Depends: libxext-dev but it is not going to be installed

         Depends: x11proto-input-dev (>= 1.5) but it is not going to be installed

E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

im also not able to install them through console as im behind a proxy…

so i downloaded the missing files manually but they are not installing…

what to do ???

guys after a few days of headache,finally installed all the above libraries…had to go through a lot of troubles to get everything in place.

but when i compile the SDK examples, its giving new error…

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

can someone tell me what’s that…

im using kubuntu 9.04, 64 bit version…why do i need this 32 bit file???

Try SDK 2.2.1 or install ia32-libs package.

N.

thanks for ur reply…i installed SDK 2.2.1 and im finally able to build all the examples

so CUDA SDK 2.2.1 is working totally fine on KUBUNTU 9.04 ,64 bit with GCC v 4.3.3

NVIDIA-Linux-x86_64-185.18.14-pkg2.run

cudatoolkit_2.2_linux_64_ubuntu8.10.run

all we need to do is to fix the missing libraries…

A sincere thanks to all the people who tried to help me out …