![]() |
SDL with OpenGL support.
Hello,
I'm trying to compile caprice32, a cpc emulator. It seems to make use of the OpenGL extensions for libSDL. I do not seem to see any of these available in the nokia/maemo distribution archive, as follows: [sbox-FREMANTLE_ARMEL: ~/caprice] > make -f makefile.unix g++ -Wall `sdl-config --cflags` -gstabs+ -c glfuncs.cpp In file included from glfuncs.h:24, from glfuncs.cpp:20: /usr/include/SDL/SDL_opengl.h:44:60: error: GL/gl.h: No such file or directory /usr/include/SDL/SDL_opengl.h:45:58: error: GL/glu.h: No such file or directory In file included from glfuncs.h:24, from glfuncs.cpp:20: /usr/include/SDL/SDL_opengl.h:3174: error: typedef 'PFNGLBLENDCOLORPROC' is initialized (use __typeof__ instead) /usr/include/SDL/SDL_opengl.h:3174: error: 'GLclampf' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3174: error: 'GLclampf' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3174: error: 'GLclampf' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3174: error: 'GLclampf' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3175: error: typedef 'PFNGLBLENDEQUATIONPROC' is initialized (use __typeof__ instead) /usr/include/SDL/SDL_opengl.h:3175: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3176: error: typedef 'PFNGLDRAWRANGEELEMENTSPROC' is initialized (use __typeof__ instead) /usr/include/SDL/SDL_opengl.h:3176: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3176: error: 'GLuint' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3176: error: 'GLuint' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3176: error: 'GLsizei' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3176: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3176: error: expected primary-expression before 'const' /usr/include/SDL/SDL_opengl.h:3177: error: typedef 'PFNGLCOLORTABLEPROC' is initialized (use __typeof__ instead) /usr/include/SDL/SDL_opengl.h:3177: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3177: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3177: error: 'GLsizei' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3177: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3177: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3177: error: expected primary-expression before 'const' /usr/include/SDL/SDL_opengl.h:3178: error: typedef 'PFNGLCOLORTABLEPARAMETERFVPROC' is initialized (use __typeof__ instead) /usr/include/SDL/SDL_opengl.h:3178: error: 'GLenum' was not declared in this scope /usr/include/SDL/SDL_opengl.h:3178: error: 'GLenum' was not declared in this scope [...] Is there a way to use the opengl extensions in libsdl on n900? Thanks, J |
Re: SDL with OpenGL support.
i think n900 doesn't support opengl, but opengl es version only
|
Re: SDL with OpenGL support.
Any pointer what to do in this case? I am trying to compile DCSS tiles and get the same error...
|
Re: SDL with OpenGL support.
There is no OpenGL support. There is only OpenGL ES (1.1/2.0) support. GLES 1.1 headers are found from GLES/gl.h. Depending how the original OpenGL program was made there can be quite a bit of porting work to make it work with OpenGL ES.
If you'd like to use OpenGL ES easily with sdl, you can use libsdl-gles1.2 to create gles rendering context. |
All times are GMT. The time now is 02:30. |
vBulletin® Version 3.8.8