can't get openCL sample file HelloCL.cpp to work

This afternoon I decided to try openCL and I must say I have no idea about it. I followed the installation instructions (my system is a ubuntu 10.04) http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx#three installation worked fine.
Then i wanted to try one of the sample programs more precisely this one:ati-stream-sdk-v2.2-lnx32/samples/opencl/cpp_cl/app/HelloCL/HelloCL.cpp by just typing make.
I already fail at compiling it. This is the output I get:

[indent]g++ -m32 -msse2 -Wfloat-equal -Wpointer-arith -DATI_OS_LINUX -g3 -ffor-scope -I …/…/…/…/…/include -I …/…/…/…/…/samples/opencl/SDKUtil/include -o build/debug/x86//HelloCL.o -c HelloCL.cpp
In file included from HelloCL.cpp:107:
…/…/…/…/…/include/CL/cl.hpp:160:19: error: GL/gl.h: No such file or directory
In file included from HelloCL.cpp:107:
…/…/…/…/…/include/CL/cl.hpp:1851: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:1881: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp: In member function ‘cl_int cl::BufferGL::getObjectInfo(cl_gl_object_type*, int*)’:
…/…/…/…/…/include/CL/cl.hpp:1884: error: invalid conversion from ‘int’ to ‘cl_GLuint’
…/…/…/…/…/include/CL/cl.hpp:1884: error: initializing argument 3 of ‘cl_int clGetGLObjectInfo(_cl_mem*, cl_gl_object_type*, cl_GLuint*)’
…/…/…/…/…/include/CL/cl.hpp: At global scope:
…/…/…/…/…/include/CL/cl.hpp:1898: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:1928: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp: In member function ‘cl_int cl::BufferRenderGL::getObjectInfo(cl_gl_object_type*, int*)’:
…/…/…/…/…/include/CL/cl.hpp:1931: error: invalid conversion from ‘int’ to ‘cl_GLuint’
…/…/…/…/…/include/CL/cl.hpp:1931: error: initializing argument 3 of ‘cl_int clGetGLObjectInfo(_cl_mem*, cl_gl_object_type*, cl_GLuint*)’
…/…/…/…/…/include/CL/cl.hpp: At global scope:
…/…/…/…/…/include/CL/cl.hpp:2024: error: ‘GLenum’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2025: error: ‘GLint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2026: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2108: error: ‘GLenum’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2109: error: ‘GLint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2110: error: ‘GLuint’ has not been declared
make: *** [build/debug/x86//HelloCL.o] Error 1[/indent]

Turns out that the file GL/gl.h does not exist. I have no idea what to do now or how to fix this. If someone could point towards some help that would be great :)
Thanks

This afternoon I decided to try openCL and I must say I have no idea about it. I followed the installation instructions (my system is a ubuntu 10.04) http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx#three installation worked fine.
Then i wanted to try one of the sample programs more precisely this one:ati-stream-sdk-v2.2-lnx32/samples/opencl/cpp_cl/app/HelloCL/HelloCL.cpp by just typing make.
I already fail at compiling it. This is the output I get:

[indent]g++ -m32 -msse2 -Wfloat-equal -Wpointer-arith -DATI_OS_LINUX -g3 -ffor-scope -I …/…/…/…/…/include -I …/…/…/…/…/samples/opencl/SDKUtil/include -o build/debug/x86//HelloCL.o -c HelloCL.cpp
In file included from HelloCL.cpp:107:
…/…/…/…/…/include/CL/cl.hpp:160:19: error: GL/gl.h: No such file or directory
In file included from HelloCL.cpp:107:
…/…/…/…/…/include/CL/cl.hpp:1851: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:1881: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp: In member function ‘cl_int cl::BufferGL::getObjectInfo(cl_gl_object_type*, int*)’:
…/…/…/…/…/include/CL/cl.hpp:1884: error: invalid conversion from ‘int’ to ‘cl_GLuint’
…/…/…/…/…/include/CL/cl.hpp:1884: error: initializing argument 3 of ‘cl_int clGetGLObjectInfo(_cl_mem*, cl_gl_object_type*, cl_GLuint*)’
…/…/…/…/…/include/CL/cl.hpp: At global scope:
…/…/…/…/…/include/CL/cl.hpp:1898: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:1928: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp: In member function ‘cl_int cl::BufferRenderGL::getObjectInfo(cl_gl_object_type*, int*)’:
…/…/…/…/…/include/CL/cl.hpp:1931: error: invalid conversion from ‘int’ to ‘cl_GLuint’
…/…/…/…/…/include/CL/cl.hpp:1931: error: initializing argument 3 of ‘cl_int clGetGLObjectInfo(_cl_mem*, cl_gl_object_type*, cl_GLuint*)’
…/…/…/…/…/include/CL/cl.hpp: At global scope:
…/…/…/…/…/include/CL/cl.hpp:2024: error: ‘GLenum’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2025: error: ‘GLint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2026: error: ‘GLuint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2108: error: ‘GLenum’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2109: error: ‘GLint’ has not been declared
…/…/…/…/…/include/CL/cl.hpp:2110: error: ‘GLuint’ has not been declared
make: *** [build/debug/x86//HelloCL.o] Error 1[/indent]

Turns out that the file GL/gl.h does not exist. I have no idea what to do now or how to fix this. If someone could point towards some help that would be great :)
Thanks

Well, the gl.h is an OpenGL header file, a bit of googling will show you that you should install mesa-dev or nvidia-glx-dev (for an Nvidia graphic card).

Btw. you can also donwload Nvidia SDK with OpenCL (called, I think, NVIDIA GPU Computing SDK)

Well, the gl.h is an OpenGL header file, a bit of googling will show you that you should install mesa-dev or nvidia-glx-dev (for an Nvidia graphic card).

Btw. you can also donwload Nvidia SDK with OpenCL (called, I think, NVIDIA GPU Computing SDK)

You realize this is the nvidia forum and you’re asking a question about how to get ATI’s Stream SDK to work right? I suggest you head over to ATI’s forums and ask your question there.
Also, try something like "find / -name “gl.h” " (I’m not sure if that’s the right syntax, but you get the idea). ATI might have put your GL header files in a different place.

You realize this is the nvidia forum and you’re asking a question about how to get ATI’s Stream SDK to work right? I suggest you head over to ATI’s forums and ask your question there.
Also, try something like "find / -name “gl.h” " (I’m not sure if that’s the right syntax, but you get the idea). ATI might have put your GL header files in a different place.

Your problem is only related to OpenGL.
Try in the proper section of this forum:
http://forums.nvidia.com/index.php?showforum=214
or in Khronos forum
http://www.khronos.org/message_boards/index.php
or in the AMD’s one for developers
http://forums.amd.com/devforum/

Your problem is only related to OpenGL.
Try in the proper section of this forum:
http://forums.nvidia.com/index.php?showforum=214
or in Khronos forum
http://www.khronos.org/message_boards/index.php
or in the AMD’s one for developers
http://forums.amd.com/devforum/