cuda sdk error: RHEL 5.3

Hi,

I have downloaded the newest cuda sdk and try to run it.

For the project: smokeParticles

when i went to its folder and make it, i got the following two errors:

In file included from particleDemo.cpp:30:

../../common/inc/GL/glew.h:1123:20: error: GL/glu.h: No such file or directory

In file included from ParticleSystem.h:15,

				 from particleDemo.cpp:45:

particles_kernel.cuh:39:7: warning: no newline at end of file

In file included from ParticleSystem.h:19,

				 from particleDemo.cpp:45:

../../common/inc/nvMath.h:94:7: warning: no newline at end of file

In file included from particleDemo.cpp:46:

ParticleSystem.cuh:33:2: warning: no newline at end of file

In file included from particleDemo.cpp:50:

SmokeShaders.h:16:38: warning: no newline at end of file

particleDemo.cpp: In function ‘void reshape(int, int)’:

particleDemo.cpp:351: error: ‘gluPerspective’ was not declared in this scope

particleDemo.cpp: In function ‘void runEmitter()’:

particleDemo.cpp:595: warning: passing ‘float’ for argument 6 to ‘void ParticleSystem::sphereEmitter(uint&, nv::vec3f, nv::vec3f, nv::vec3f, float, int, float, float)’

particleDemo.cpp: In function ‘void idle()’:

particleDemo.cpp:616: warning: array subscript has type ‘char’

particleDemo.cpp:621: warning: array subscript has type ‘char’

particleDemo.cpp:626: warning: array subscript has type ‘char’

particleDemo.cpp:631: warning: array subscript has type ‘char’

particleDemo.cpp:636: warning: array subscript has type ‘char’

particleDemo.cpp:641: warning: array subscript has type ‘char’

make: *** [obj/release/particleDemo.cpp.o] Error 1

it seems weird to me since it really goes to the common/GL folder to find non-existent file. anyone has any idea?

I check it online, there are some discussions on Ubuntu. But for red hat, i can not find the corresponding packages.

need your help! many thanks! :rolleyes:

Try installing mesa-libGLU-devel

yum install mesa-libGLU-devel

(note, that’s the package that has GL/glu.h in my Fedora host, I’m assuming the package of the

same name is in Red Hat)

many thanks, I think I solved it by install these packages:

yum install mesa-libGL-devel

yum install mesa-libGLU-devel

yum install libXi-devel

yum install libXmu-devel

yum install freeglut-devel.x86_64

it seems that the RHEL does not automatically install these packages. so the user should install them.