Reply
Thread Tools
Posts: 42 | Thanked: 4 times | Joined on Dec 2007
#1
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
 
Posts: 8 | Thanked: 0 times | Joined on Nov 2009
#2
i think n900 doesn't support opengl, but opengl es version only
 
Posts: 101 | Thanked: 29 times | Joined on Aug 2010
#3
Any pointer what to do in this case? I am trying to compile DCSS tiles and get the same error...
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#4
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.
 

The Following User Says Thank You to mikkov For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:19.