BennuGD Android

Started by gecko, March 08, 2010, 01:59:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FreeYourMind

he probado si, lo comento, cuando digo versiones mas viejas, las del market, me estoy refiriendo concretamente a esos 2 juegos

panreyes

Tengo como 8 juegos (7 + 1 repe) en el market, así que lo de "esos dos, el de PiXeL y el de Javis" no vale xD

FreeYourMind

tu pix frogger.

mirate el de lucha de tu pueblo, que debes hacer algo distinto al setear el modo de video o algo al inicio que ese se sale en las consolas, sólo va en la tablet

panreyes

Ayer mismo lo ejecuté en un Samsung Galaxy Ace, con una resolución paupérrima y lento, pero funciona.


Mándame a mí y a Josebita el logcat del juego de Ripollés, a ver si le veo solución.

FreeYourMind

no se si podré hacerlo, ya comente hace tiempo que en la tablet fnac no pude hacerlo por el tema de drivers, y en estas consolas no lo he probado todavia

panreyes

Josebita, deberías tener en cuenta esto para la OUYA:
https://code.google.com/p/pixjuegos/source/browse/trunk/bennu-android/src/org/libsdl/app/SDLActivity.java#522


La pulsación del botón menú es emulada y va sobre eventos. Manda instantáneamente un key down y un key up, por lo que a lo que bennugd respecta en un frame está no pulsado y en el siguiente lo mismo.
Hice la mayor chapuza del mundo, un thread extra que añade un retraso sobre esa pulsación virtual, pero funciona :)

josebita

Quote from: PiXeL on May 08, 2013, 01:05:39 AM
Josebita, deberías tener en cuenta esto para la OUYA:
https://code.google.com/p/pixjuegos/source/browse/trunk/bennu-android/src/org/libsdl/app/SDLActivity.java#522


La pulsación del botón menú es emulada y va sobre eventos. Manda instantáneamente un key down y un key up, por lo que a lo que bennugd respecta en un frame está no pulsado y en el siguiente lo mismo.
Hice la mayor chapuza del mundo, un thread extra que añade un retraso sobre esa pulsación virtual, pero funciona :)
Thanks!

FreeYourMind

Quote from: FreeYourMind on April 28, 2013, 08:43:42 PM
Josebita:


No consigo compilar la ultima version r697 directamente sin cambiar codigo tal como hice con las viejunas r302 y r304.

Error:

/modules/mod_video/mod_video.c:95: undefined reference to `gr_set_fps'
collect2: ld returned 1 exit status

Es porque la ultima que has subido no compila, o me pierdo alguna dependencia nueva ?

Gracias

josebita sigo teniendo este mismo error compilando la ultima version r728. seguramente tienes definido `gr_set_fps' en alguna ruta local o algo....

josebita

Quote from: FreeYourMind on July 13, 2013, 08:06:59 PM
Quote from: FreeYourMind on April 28, 2013, 08:43:42 PM
Josebita:


No consigo compilar la ultima version r697 directamente sin cambiar codigo tal como hice con las viejunas r302 y r304.

Error:

/modules/mod_video/mod_video.c:95: undefined reference to `gr_set_fps'
collect2: ld returned 1 exit status

Es porque la ultima que has subido no compila, o me pierdo alguna dependencia nueva ?

Gracias

josebita sigo teniendo este mismo error compilando la ultima version r728. seguramente tienes definido `gr_set_fps' en alguna ruta local o algo....
El código en el que estoy trabajando no está en trunk, sino en branches/my_monolithic. Trata de ver si es por eso.

FreeYourMind

o sea tienes 2 codigos ?! ok, mirare donde dices, por cierto done puedo descargar el binario ? me gustaria probar la ultima version. muchas gracias.

FreeYourMind

Buenas, con tu nueva rama tambien tengo problemas:


geca@geca-laptop ~/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni $ ../../../../../../workspace/android-ndk-r6/ndk-build
Compile thumb  : SDL2 <= SDL_assert.c
Compile thumb  : SDL2 <= SDL.c
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c: In function 'SDL_InitSubSystem':
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c:209: error: 'SDL_INIT_SENSOR' undeclared (first use in this function)
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c:209: error: (Each undeclared identifier is reported only once
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c:209: error: for each function it appears in.)
make: *** [/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o] Error 1

josebita

Quote from: FreeYourMind on July 14, 2013, 09:12:23 AM
Buenas, con tu nueva rama tambien tengo problemas:


geca@geca-laptop ~/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni $ ../../../../../../workspace/android-ndk-r6/ndk-build
Compile thumb  : SDL2 <= SDL_assert.c
Compile thumb  : SDL2 <= SDL.c
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c: In function 'SDL_InitSubSystem':
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c:209: error: 'SDL_INIT_SENSOR' undeclared (first use in this function)
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c:209: error: (Each undeclared identifier is reported only once
/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/SDL.c:209: error: for each function it appears in.)
make: *** [/home/geca/BennuGD-Monolithic_r728/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o] Error 1

Me faltaba de subir algo de código. Prueba ahora, por favor.

Y sí, tengo la rama basada en mi arquitectura monolítica (branches/my_monolithic) y en trunk tengo código basado en la arquitectura monolítica oficial de Splinter.

FreeYourMind

sigo con dependencias del sensor en falta:

~/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni $ ../../../../../../workspace/android-ndk-r6/ndk-build
Compile thumb  : SDL2 <= SDL_assert.c
Compile thumb  : SDL2 <= SDL.c
Compile thumb  : SDL2 <= SDL_error.c
Compile thumb  : SDL2 <= SDL_fatal.c
Compile thumb  : SDL2 <= SDL_hints.c
Compile thumb  : SDL2 <= SDL_log.c
Compile thumb  : SDL2 <= SDL_audio.c
Compile thumb  : SDL2 <= SDL_audiocvt.c
Compile thumb  : SDL2 <= SDL_audiodev.c
Compile thumb  : SDL2 <= SDL_audiotypecvt.c
Compile thumb  : SDL2 <= SDL_mixer.c
Compile thumb  : SDL2 <= SDL_wave.c
Compile thumb  : SDL2 <= SDL_androidaudio.c
Compile thumb  : SDL2 <= SDL_dummyaudio.c
Compile thumb  : SDL2 <= SDL_atomic.c
Compile arm    : SDL2 <= SDL_spinlock.c
Compile++ thumb  : SDL2 <= SDL_android.cpp
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:30:21: error: EGL/egl.h: No such file or directory
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:41:28: error: android/sensor.h: No such file or directory
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp: In function 'SDL_bool Android_JNI_CreateContext(int, int, int, int, int, int, int, int, int, int, int)':
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:345: error: 'EGL_RED_SIZE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:346: error: 'EGL_GREEN_SIZE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:347: error: 'EGL_BLUE_SIZE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:348: error: 'EGL_ALPHA_SIZE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:349: error: 'EGL_BUFFER_SIZE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:350: error: 'EGL_DEPTH_SIZE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:351: error: 'EGL_STENCIL_SIZE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:352: error: 'EGL_SAMPLE_BUFFERS' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:353: error: 'EGL_SAMPLES' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:354: error: 'EGL_RENDERABLE_TYPE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:354: error: 'EGL_OPENGL_ES_BIT' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:354: error: 'EGL_OPENGL_ES2_BIT' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:355: error: 'EGL_NONE' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp: In function 'char* Android_GetAccelName()':
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:1193: error: 'ASensorManager' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:1193: error: 'mSensorManager' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:1193: error: 'ASensorManager_getInstance' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:1194: error: 'ASensor' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:1194: error: expected ';' before 'const'
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:1196: error: 'mAccelerometer' was not declared in this scope
/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/jni/SDL/../../../../3rdparty/SDL/src/core/android/SDL_android.cpp:1196: error: 'ASensor_getName' was not declared in this scope
make: *** [/home/geca/BennuGD-Monolithic_r735/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2/src/core/android/SDL_android.o] Error 1

josebita

Perdona la tardanza en responder, Free.

Necesitas tener la última versión del NDK (r8e). El problema que te está dando es que no encuentra las cabeceras del NDK que hacen falta para compilar un montón de cosas.

FreeYourMind

ya esta substituida, ya compila mas cosas pero todavia faltan dependencias:

Compile thumb  : mikmod <= strstr.c
SharedLibrary  : libmikmod.so
SharedLibrary  : libSDL2_mixer.so
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_actualSpec'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_delete'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_enableaudio'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_enablevideo'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_new_rwops'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_play'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_playAudio'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_rewind'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_setvolume'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_skip'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_status'
/home/geca/workspace/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/objs/SDL2_mixer/dynamic_mp3.o: in function Mix_InitMP3:/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/jni/SDL_mixer/../../../../3rdparty/SDL_mixer/dynamic_mp3.c:169: error: undefined reference to 'SMPEG_stop'
collect2: ld returned 1 exit status
make: *** [/home/geca/BennuGD-Monolithic_r736/branches/my_monolithic/projects/android/obj/local/armeabi-v7a/libSDL2_mixer.so] Error 1