manolitto / imame4all

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

how to build the libMAME4droid.so #147

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
how to configure the makefile?

$ make
Compiling src/mame/tiny.c...
In file included from src/emu/mamecore.h:18,
                 from src/emu/devintrf.h:17,
                 from src/emu/driver.h:22,
                 from src/mame/tiny.c:20:
D:\eclipse\androidndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bi
n\../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:50:23: error: sys
/cdefs.h: No such file or directory
D:\eclipse\androidndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bi
n\../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:51:24: error: sys
/_types.h: No such file or directory
In file included from src/emu/mamecore.h:18,
                 from src/emu/devintrf.h:17,
                 from src/emu/driver.h:22,
                 from src/mame/tiny.c:20:
D:\eclipse\androidndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bi
n\../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:163: error: expec
ted '=', ',', ';', 'asm' or '__attribute__' before 'extern'
D:\eclipse\androidndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bi
n\../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:232: error: expec
ted '=', ',', ';', 'asm' or '__attribute__' before '__BEGIN_DECLS'
D:\eclipse\androidndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bi
n\../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:382: error: expec
ted '=', ',', ';', 'asm' or '__attribute__' before '__BEGIN_DECLS'
D:\eclipse\androidndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bi
n\../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:393: error: expec
ted '=', ',', ';', 'asm' or '__attribute__' before 'static'
In file included from src/emu/devintrf.h:17,
                 from src/emu/driver.h:22,
                 from src/mame/tiny.c:20:
src/emu/mamecore.h:19:20: error: string.h: No such file or directory
src/emu/mamecore.h:20:20: error: stdlib.h: No such file or directory
In file included from src/emu/timer.h:20,
                 from src/emu/video.h:19,
                 from src/emu/mame.h:16,
                 from src/emu/sndintrf.h:18,
                 from src/emu/driver.h:108,
                 from src/mame/tiny.c:20:
src/emu/attotime.h:41:18: error: math.h: No such file or directory
In file included from src/emu/timer.h:20,
                 from src/emu/video.h:19,
                 from src/emu/mame.h:16,
                 from src/emu/sndintrf.h:18,
                 from src/emu/driver.h:108,
                 from src/mame/tiny.c:20:
src/emu/attotime.h: In function 'double_to_attotime':
src/emu/attotime.h:191: warning: implicit declaration of function 'floor'
src/emu/attotime.h:191: warning: incompatible implicit declaration of built-in f
unction 'floor'
In file included from src/osd/osdepend.h:71,
                 from src/emu/render.h:15,
                 from src/emu/video.h:20,
                 from src/emu/mame.h:16,
                 from src/emu/sndintrf.h:18,
                 from src/emu/driver.h:108,
                 from src/mame/tiny.c:20:
src/emu/inptport.h:17:18: error: time.h: No such file or directory
In file included from src/osd/osdepend.h:71,
                 from src/emu/render.h:15,
                 from src/emu/video.h:20,
                 from src/emu/mame.h:16,
                 from src/emu/sndintrf.h:18,
                 from src/emu/driver.h:108,
                 from src/mame/tiny.c:20:
src/emu/inptport.h: At top level:
src/emu/inptport.h:997: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'input_port_init'
In file included from src/emu/driver.h:110,
                 from src/mame/tiny.c:20:
src/emu/drawgfx.h: In function 'gfx_element_set_source':
src/emu/drawgfx.h:334: warning: implicit declaration of function 'memset'
src/emu/drawgfx.h:334: warning: incompatible implicit declaration of built-in fu
nction 'memset'
makefile:658: recipe for target `obj/android/mametiny/mame/tiny.o' failed
make: *** [obj/android/mametiny/mame/tiny.o] Error 1

Original issue reported on code.google.com by basheron...@gmail.com on 7 Apr 2012 at 8:01

GoogleCodeExporter commented 8 years ago
there are a problem with the NDK... since mame uses a memory.h file that 
overlaps other file in toolchain. You should fix the toolchain.

Original comment by seleuco....@gmail.com on 12 Apr 2012 at 6:34

GoogleCodeExporter commented 8 years ago
how can i fix the toolchain? i am just a beginer...

Original comment by zhengguo...@163.com on 3 Nov 2012 at 3:02