Win64 and Android Test Builds

MAME2003 compiles but does not link for Android so no release yet, MAME2010/2013 do not have Android ports yet.

MAME2010 works great on android , only 2013 is problematic (freeze ANR after the nagscreen).

But could be tricky to compiles , (2 pass one for buildtools and 1 for emulator) : First you have to use a standalone toolchain : see STANDALONE-TOOLCHAIN.HTML in the ndk. ( i use release 8 not tested with 9) Also in the ndk standalone toolchain you ve setup , you have to comment the include of <memory.h> in stdlib.h. see this post for explanation: viewtopic.php?p=8687#p8687

and last time i check from the git i found a pb with the Makefile.libretro for the android build ( a pb with NATIVE var if i remind) , have to watch the diff with my src and commit a fix for it . Edit : after re watch the only diff i notice is the missing of tsmake rule (should be fixed in the last commit).

once you have the standalone TC setup and functional , you only have to do :

make -f Makefile.libretro “VRENDER=soft” “NATIVE=1” buildtools ( add PTR64=1 too if 64bits system ) make -f Makefile.libretro “VRENDER=soft” “platform=android” emulator -j4

if someone interesting , i put the bin i have on my phone ,BTW not sure when i built this one http://dl.free.fr/mHX5Chyej

Same problem with the new build. Steps I’m doing:

  1. Load mupen64
  2. Load the rom

I have the screen saying “INFO - Loading Super Mario 64.zip” and after Retroarch crashes.

[quote=“7rtype”]

MAME2010 works great on android , only 2013 is problematic (freeze ANR after the nagscreen).

But could be tricky to compiles , (2 pass one for buildtools and 1 for emulator) : First you have to use a standalone toolchain : see STANDALONE-TOOLCHAIN.HTML in the ndk. ( i use release 8 not tested with 9) Also in the ndk standalone toolchain you ve setup , you have to comment the include of <memory.h> in stdlib.h. see this post for explanation: viewtopic.php?p=8687#p8687

and last time i check from the git i found a pb with the Makefile.libretro for the android build ( a pb with NATIVE var if i remind) , have to watch the diff with my src and commit a fix for it . Edit : after re watch the only diff i notice is the missing of tsmake rule (should be fixed in the last commit).

once you have the standalone TC setup and functional , you only have to do :

make -f Makefile.libretro “VRENDER=soft” “NATIVE=1” buildtools ( add PTR64=1 too if 64bits system ) make -f Makefile.libretro “VRENDER=soft” “platform=android” emulator -j4

if someone interesting , i put the bin i have on my phone ,BTW not sure when i built this one http://dl.free.fr/mHX5Chyej[/quote]

thx is working in my phone s3,bunch of games are playables now.

but please someone can add virtual joystick controls for mame (for fighting games),please.

wow this port mame2010 is mora faster than seleuco port,i can play street fighters ex whitout speed hack

take a look on android build.

mupen64plus no core/plugins option

Thank you 7rtype for the info, I tried to compile following your directions but I keep getting this:

Compiling src/emu/cpu/m68000/m68kmake.c...
Archiving obj/retro/libocore.a...
cp -R prec-build/m68kmake obj/retro/build
cp -R prec-build/tmsmake obj/retro/build 
mkdir -p obj/retro/build
cp -R prec-build/file2str obj/retro/build 
In file included from /home/n3dev/android/toolchain/android-9/bin/../sysroot/usr/include/stdlib.h:42:0,
                 from src/lib/util/corestr.c:43:
/home/n3dev/android/toolchain/android-9/bin/../sysroot/usr/include/strings.h:52:6: error: expected unqualified-id before '!' token
/home/n3dev/android/toolchain/android-9/bin/../sysroot/usr/include/strings.h:53:6: error: expected unqualified-id before '!' token
make: *** [obj/retro/lib/util/corestr.o] Error 1

It doesn’t matter which toolchain I use: NDK8e:android-9:arm-linux-androideabi-4.6 NDK8e:android-14:arm-linux-androideabi-4.7 NDK9b:android-18:arm-linux-androideabi-4.8

Any thoughts?

yes that odd ,

but apparently the problem is with strcasecmp and strncasecmp . seems have been redefined somewhere as marco by other include (include before strings.h) (seem to be the case here : src/lib/util/corestr.h)

I’m not at home and don’t remind how i properly solve this. but an bad hack to resolve this for now is to do some #undef in strings.h of the toolchains. in strings.h just after #include <sys/cdefs.h> add : #undef strcasecmp #undef strncasecmp

and then the compile sould run fine after. ( yeah i said it previously , compile mame2010 could be tricky )

Thank you so much, that did it.

Very true, and again thank you so much for your help.

Updates to: RetroArch Mupen64plus

Android: Added: MAME2010 (big thanks to 7rtype for all his help)

Notes: I also patched up MAME2010 to remove all nag screens so MAME just jumps into game.

still mupen64 not working on android.

says retroarch is stoped. also no video plugins for mupen64

thx

@lordashram

mame2013 should compile and run now in android ( at least it run slow on my old phone for the 2 or 3 games i’ve tested ) but need more feedback with more/newer devices.

@all

if someone have time to test it ,and report if it crash ,cause ANR or if it run report how it perform on the shield / S4. (but please not ask features requests or anythings else, first just want to know if it works)

http://dl.free.fr/uadSMCoAX

many games loaded fine then back to the retroarch menu.

neogeo working cps1 working cps2 back to the retroarch menu cps3 back to the retroarch menu poligamersystem working

i dont know if is rom issue.

mame2013 run fine demonfront awesome

i think is for ANR.

mame2010 is fine all.

tested in galaxy s3 oc 1.7ghz

Sounds like a rom issue. MAME 2010 romset is likely different from the latest

is very difficult find latest rom.

whats version of mame is 0.147,0.148,0.149 or 0.150?

0.150. I think it will be in sync with MAME

RetroArch-2013-11-06 Android: Added: MAME2013 Removed: BSNES & Mupen64plus, both are broken.

@7rtype, I tested a few games with the MAME2013 core, so far so good on my Note 3 (Snapdragon 800 version). I will have more time tomorrow to test more on both my Note 3 & my wife’s S4.

@all MAME2010: 0.139 MAME2013: 0.150

Is there a chance you could add the O2EM (magnavox odyssey 2) to the test build? Really want to play satellite attack.

Thanks for feedback.

@lordashram , cool that you updated test build with it. @brujo5 ,same pb for me with cps2 games like sfa3 , but works with pc build ,so is due to 0.150 android port , i ve to lookat.

@foleyjo O2EM libretro port even if it works , is very wip for now , i’ve no time to finish it for now.