Hello,

   I have some issues with a small opengl application I wrote. It
compiled fine under sbox-FREMANTLE_ARMEL but, when run in my n900, SDL
initialisation fails with those errors :
SDL_init(SDL_INIT_VIDEO) says "No OpenGL support in video driver"
and with Mix_OpenAudio(...), SDL_GetError gives "pulse not available"


So I decided to give a try to the test applications found in
http://wiki.maemo.org/User:Javispedro/SDL-GLES

both ./gles2 and ./gles1 show the same output
    gles1: gles1.c:74: main: Assertion `res == 0' failed.
    gles2: gles2.c:115: main: Assertion `res == 0' failed.
74 et 115 are the lines containing the assertion following this call :
    res = SDL_GLES_Init(SDL_GLES_VERSION_2_0);

There's also this huge list of -what seem to be- unmapped keys in the output :
    Keyboard layout unknown, please send the following to the SDL
mailing list (s...@libsdl.org):
    code = 1, sym = 0xFF1B (Escape) scancode = 41 (Escape)
    code = 14, sym = 0xFF08 (BackSpace) scancode = 42 (Backspace)
    [...]
    code = 235, sym = 0x1008FF5B (XF86Documents) scancode = 0 ()


I don't understand what I did wrong.
Could opengl drivers be not installed? AngryBird works fine and
capsule ( and small 3d viewer ) runs smoothly.

Finally, there is two versions of libSDL linked to the binary.
Is it normal? Please note that I have no idea how to link against
SDL-1.2 or SDL-1.3, using one version and excluding the other.
~ $ ldd ./gles2
        libSDL-1.3.so.0 => /usr/lib/libSDL-1.3.so.0 (0x40001000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x41168000)
        libSDL_gles-1.2.so.0 => /usr/lib/libSDL_gles-1.2.so.0 (0x400ba000)
        libEGL.so => /usr/lib/libEGL.so (0x46628000)
        libGLESv2.so => /usr/lib/libGLESv2.so (0x45eb8000)
        libc.so.6 => /lib/libc.so.6 (0x41028000)
        libm.so.6 => /lib/libm.so.6 (0x41320000)
        libdl.so.2 => /lib/libdl.so.2 (0x412c8000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x41150000)
        /lib/ld-linux.so.3 (0x41000000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x400c6000)
        libIMGegl.so => /usr/lib/libIMGegl.so (0x46448000)
        libsrv_um.so => /usr/lib/libsrv_um.so (0x44e08000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x42308000)
        libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x40126000)
        libpulse.so.0 => /usr/lib/libpulse.so.0 (0x40131000)
        librt.so.1 => /lib/librt.so.1 (0x41190000)
        libpulsecommon-0.9.15.so => /usr/lib/libpulsecommon-0.9.15.so
(0x40159000)
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x41288000)
        libgdbm.so.3 => /usr/lib/libgdbm.so.3 (0x42710000)
Under scratchbox ldd segfaults :
[sbox-FREMANTLE_ARMEL: ~/prog/test_gl] > ldd ./gles2
Segmentation fault (core dumped)

Any suggestions?
May I attach the binaries (gles1 and 2) so someone can test them with
his/her phone?
And/or can someone compil the code for me to check if it runs with my phone?
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to