localhost-007 / imame4all

Automatically exported from code.google.com/p/imame4all
0 stars 0 forks source link

anytone know how to build mame4droid reloaded? #261

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hi:
   this is a very funny project. i want to build it and add some features.
   now,i can build the mame4ios succeful with the latest code. but i can't build mame4droid.

   1,download the mame4droid 1.3.5 reload;
   2,use the ndk tools make-standalone-toolchain.sh to create my-android-toolchain;
   3,modify the makefile to set ANDROID = 1, AARMV7=1,  MYPREFIX and BASE_DEV to my my-android-toolchain;
   4,under the terminal,make.but failed.

   error messge:

txs-MacBook-Pro:Mame4All tx$ make -f makefile.android 
Compiling src/mame/mamedriv.c...
In file included from 
/Users/tx/work/my-android-toolchain/sysroot/usr/include/stdlib.h:43:0,
                 from src/emu/emucore.h:21,
                 from src/emu/emu.h:53,
                 from src/mame/mamedriv.c:18:
src/emu/memory.h:62:9: error: 'UINT32' does not name a type
src/emu/memory.h:69:2: error: 'UINT8' does not name a type
src/emu/memory.h:70:2: error: 'UINT8' does not name a type
src/emu/memory.h:71:2: error: 'offs_t' does not name a type
src/emu/memory.h:72:2: error: 'offs_t' does not name a type
src/emu/memory.h:73:2: error: 'offs_t' does not name a type
src/emu/memory.h:74:2: error: 'UINT8' does not name a type
src/emu/memory.h:81:16: error: typedef 'offs_t' is initialized (use decltype 
instead)
src/emu/memory.h:81:18: error: 'direct_update_func' was not declared in this 
scope
In file included from 
/Users/tx/work/my-android-toolchain/sysroot/usr/include/stdlib.h:43:0,
                 from src/emu/emucore.h:21,
                 from src/emu/emu.h:53,
                 from src/mame/mamedriv.c:18:
src/emu/memory.h:85:15: error: typedef 'UINT8' is initialized (use decltype 
instead)
src/emu/memory.h:85:17: error: 'read8_space_func' was not declared in this scope
src/emu/memory.h:86:48: error: typedef 'write8_space_func' is initialized (use 
decltype instead)
src/emu/memory.h:86:36: error: 'ATTR_UNUSED' was not declared in this scope
src/emu/memory.h:86:76: error: 'ATTR_UNUSED' was not declared in this scope
src/emu/memory.h:86:103: error: 'ATTR_UNUSED' was not declared in this scope
src/emu/memory.h:87:16: error: typedef 'UINT16' is initialized (use decltype 
instead)
src/emu/memory.h:87:18: error: 'read16_space_func' was not declared in this 
scope
src/emu/memory.h:88:48: error: typedef 'write16_space_func' is initialized (use 
decltype instead)
src/emu/memory.h:88:36: error: 'ATTR_UNUSED' was not declared in this scope
src/emu/memory.h:88:76: error: 'ATTR_UNUSED' was not declared in this scope
src/emu/memory.h:88:103: error: 'ATTR_UNUSED' was not declared in this scope
src/emu/memory.h:88:128: error: 'ATTR_UNUSED' was not declared in this scope
src/emu/memory.h:89:16: error: typedef 'UINT32' is initialized (use decltype 
instead)
src/emu/memory.h:89:18: error: 'read32_space_func' was not declared in this 
scope
src/emu/memory.h:90:48: error: typedef 'write32_space_func' is initialized (use 
decltype instead)

can you give some tips, thank you !

Original issue reported on code.google.com by starupt...@gmail.com on 5 Aug 2013 at 1:46

GoogleCodeExporter commented 9 years ago
It is caused by the fact that 'Mame' has the same name with 'memory.h' in 
'NDK'. It needs to rename 'sysroot/usr/include/memory.h', e.g., 
'NDK/memorys.h'. And then, revise 'memory.h' to be 'memorys.h' in 
'sysroot/usr/include/stdlib.h'.  I found that this file is used in one place 
only.

run 'make' finally. Some prblems occur, you can find from 'ISSUES 242'

Issue 242:  How to build MAME4droid.so under ubuntu?
https://code.google.com/p/imame4all/issues/detail?id=242&start=100

Original comment by zjybac...@gmail.com on 9 Aug 2013 at 12:56

GoogleCodeExporter commented 9 years ago
thank you very much! i will have a try.

Original comment by starupt...@gmail.com on 9 Aug 2013 at 2:30