Re: [Xmame] cross compile X-mame

2007-05-02 Thread Laurent Desnogues

On 5/2/07, changho kim <[EMAIL PROTECTED]> wrote:

This is success!!!


Good :)


But this size is very large...
My embeded board capacity is 64Mbyte, but Xmame full size is 245Mbyte TT
So i will try to compact xmame size..


245 MB is size with symbols.  Do a size exec to know real size
(program size is around 32 MB IIRC).

Anyway your kernel will only load what is needed and if you want
to get it smaller you will have to compile only what you need (CPU,
drivers).


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-02 Thread changho kim

Dear Laurent
Thank you Very much
This is success!!!
But this size is very large...
My embeded board capacity is 64Mbyte, but Xmame full size is 245Mbyte TT
So i will try to compact xmame size..
Your help make success...

I want to be like you!!
Really Thank you ^^


Re: [Xmame] cross compile X-mame

2007-05-02 Thread Laurent Desnogues

On 5/2/07, changho kim <[EMAIL PROTECTED]> wrote:

But Xv.h file don't exist in
/usr/X11R6_ARM/include/extension directory


Comment out X11_XV=1 in makefile.unix.


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-02 Thread changho kim

Laurent!!
This is success
your advice really helps me...
But new error appeared...
This is library problem...
The message is below

[OSDEPEND] Compiling src/unix/video-drivers/xv.c ...
arm-linux-gcc -O2 -std=gnu89 -Wall -Wno-unused -Isrc/expat -Isrc/zlib
'-DINLINE=static __inline__' -DLSB_FIRST -D__ARCH_linux -D__CPU_i386_noasm
-Dx11 -DPI=M_PI -DXMAME -DUNIX -DSIGNED_SAMPLES -DCLIB_DECL=
-DHAVE_UNISTD_H=1  -DHAS_CUSTOM=1 -DHAS_SAMPLES=1 -DHAS_DAC=1 -DHAS_DMADAC=1
-DHAS_CDDA=1 -DHAS_DISCRETE=1 -DHAS_POKEY=1 -DHAS_TIA=1 -DHAS_ASTROCADE=1
-DHAS_CEM3394=1 -DHAS_BSMT2000=1 -DHAS_ES5503=1 -DHAS_ES5505=1
-DHAS_ES5506=1 -DHAS_ES8712=1 -DHAS_GAELCO_CG1V=1 -DHAS_GAELCO_GAE1=1
-DHAS_AY8910=1 -DHAS_HC55516=1 -DHAS_C6280=1 -DHAS_ICS2115=1
-DHAS_IREMGA20=1 -DHAS_K005289=1 -DHAS_K007232=1 -DHAS_K051649=1
-DHAS_K053260=1 -DHAS_K054539=1 -DHAS_NAMCO=1 -DHAS_NAMCO_15XX=1
-DHAS_NAMCO_CUS30=1 -DHAS_NAMCO_52XX=1 -DHAS_NAMCO_54XX=1
-DHAS_NAMCO_63701X=1 -DHAS_NAMCONA=1 -DHAS_C140=1 -DHAS_C352=1 -DHAS_NES=1
-DHAS_UPD7759=1 -DHAS_MSM5205=1 -DHAS_MSM5232=1 -DHAS_OKIM6295=1
-DHAS_SAA1099=1 -DHAS_QSOUND=1 -DHAS_RF5C68=1 -DHAS_RF5C400=1
-DHAS_SEGAPCM=1 -DHAS_MULTIPCM=1 -DHAS_SCSP=1 -DHAS_ST0016=1 -DHAS_X1_010=1
-DHAS_PSXSPU=1 -DHAS_SP0250=1 -DHAS_SN76477=1 -DHAS_SN76496=1
-DHAS_TMS36XX=1 -DHAS_TMS5110=1 -DHAS_TMS5220=1 -DHAS_VLM5030=1
-DHAS_VOTRAX=0 -DHAS_VRENDER0=1 -DHAS_YM2151=1 -DHAS_YM2203=1 -DHAS_YM2413=1
-DHAS_YM2608=1 -DHAS_YM2610=1 -DHAS_YM2610B=1 -DHAS_YM2612=1 -DHAS_YM3438=1
-DHAS_YM3812=1 -DHAS_YM3526=1 -DHAS_Y8950=1 -DHAS_YMF262=1 -DHAS_YMF271=1
-DHAS_YMF278B=1 -DHAS_YMZ280B=1 -DHAS_ARM=1 -DHAS_ARM7=1 -DHAS_SE3208=1
-DHAS_ALPHA8201=1 -DHAS_ALPHA8301=1 -DHAS_ADSP2100=1 -DHAS_ADSP2101=1
-DHAS_ADSP2104=1 -DHAS_ADSP2105=1 -DHAS_ADSP2115=1 -DHAS_ADSP2181=1
-DHAS_ADSP21062=1 -DHAS_DSP32C=1 -DHAS_ASAP=1 -DHAS_JAGUAR=1 -DHAS_CCPU=1
-DHAS_T11=1 -DHAS_G65816=1 -DHAS_HD6309=1 -DHAS_H83002=1 -DHAS_SH2=1
-DHAS_H6280=1 -DHAS_E116T=1 -DHAS_E116XT=0 -DHAS_E116XS=0 -DHAS_E116XSR=0
-DHAS_E132N=1 -DHAS_E132T=0 -DHAS_E132XN=0 -DHAS_E132XT=1 -DHAS_E132XS=0
-DHAS_E132XSR=0 -DHAS_GMS30C2116=1 -DHAS_GMS30C2132=0 -DHAS_GMS30C2216=0
-DHAS_GMS30C2232=0 -DHAS_8080=1 -DHAS_8085A=1 -DHAS_I8035=1 -DHAS_I8039=1
-DHAS_I8048=1 -DHAS_N7751=1 -DHAS_I8X41=1 -DHAS_I8051=1 -DHAS_I8052=1
-DHAS_I8751=1 -DHAS_I8752=1 -DHAS_I86=1 -DHAS_I88=1 -DHAS_I186=1
-DHAS_I188=0 -DHAS_I286=0 -DHAS_I386=1 -DHAS_I486=0 -DHAS_PENTIUM=1
-DHAS_MEDIAGX=1 -DHAS_I960=1 -DHAS_KONAMI=1 -DHAS_PIC16C54=0
-DHAS_PIC16C55=1 -DHAS_PIC16C56=0 -DHAS_PIC16C57=1 -DHAS_PIC16C58=0
-DHAS_R3000=1 -DHAS_R4600=1 -DHAS_R4650=1 -DHAS_R4700=1 -DHAS_R5000=1
-DHAS_QED5271=1 -DHAS_RM7000=1 -DHAS_M37702=1 -DHAS_M37710=1 -DHAS_M6502=1
-DHAS_M65C02=1 -DHAS_M65SC02=1 -DHAS_M65CE02=0 -DHAS_M6509=0 -DHAS_M6510=1
-DHAS_M6510T=0 -DHAS_M7501=0 -DHAS_M8502=0 -DHAS_N2A03=1 -DHAS_DECO16=1
-DHAS_M4510=0 -DHAS_M6800=1 -DHAS_M6801=1 -DHAS_M6802=1 -DHAS_M6803=1
-DHAS_M6808=1 -DHAS_HD63701=1 -DHAS_NSC8105=1 -DHAS_M6805=1 -DHAS_M68705=1
-DHAS_HD63705=1 -DHAS_M6809=1 -DHAS_M6809E=1 -DHAS_MC68HC11=1 -DHAS_M68000=1
-DHAS_M68008=0 -DHAS_M68010=1 -DHAS_M68EC020=1 -DHAS_M68020=1 -DHAS_M68040=1
-DHAS_DSP56156=1 -DHAS_PPC403=1 -DHAS_PPC602=1 -DHAS_PPC603=1 -DHAS_V20=1
-DHAS_V30=1 -DHAS_V33=1 -DHAS_V60=1 -DHAS_V70=1 -DHAS_V810=1 -DHAS_UPD7810=1
-DHAS_UPD7807=1 -DHAS_RSP=1 -DHAS_S2650=1 -DHAS_SPC700=1 -DHAS_PSXCPU=1
-DHAS_TMS9900=0 -DHAS_TMS9940=0 -DHAS_TMS9980=1 -DHAS_TMS9985=0
-DHAS_TMS9989=0 -DHAS_TMS9995=1 -DHAS_TMS99105A=0 -DHAS_TMS99110A=0
-DHAS_TMS99000=0 -DHAS_TI990_10=0 -DHAS_TMS34010=1 -DHAS_TMS34020=1
-DHAS_TMS32010=1 -DHAS_TMS32025=1 -DHAS_TMS32026=1 -DHAS_TMS32031=1
-DHAS_TMS32051=1 -DHAS_Z80=1 -DHAS_Z180=1 -DHAS_Z8000=1   -I. -Isrc
-Isrc/includes -Isrc/debug -Isrc/unix -Ixmame.obj/cpu/m68000
-Isrc/cpu/m68000 -DHAVE_MMAP -DCRLF=2 -DSYSDEP_DSP_OSS -DSYSDEP_MIXER_OSS
-DHAVE_SNPRINTF -DHAVE_VSNPRINTF -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/X11R6_ARM/include   -DUSE_MITSHM -DUSE_XV -DNAME='"xmame"'
-DDISPLAY_METHOD='"x11"' -DXMAMEROOT='"/usr/local/share/xmame"'
-DSYSCONFDIR='"/usr/local/share/xmame"' -DHAVE_GETTIMEOFDAY -o
xmame.obj/unix.x11/video-drivers/xv.o
-c src/unix/video-drivers/xv.c
src/unix/video-drivers/xv.c:14:31: X11/extensions/Xv.h: No such file or
directory
src/unix/video-drivers/xv.c:15:34: X11/extensions/Xvlib.h: No such file or
directory


I change Makefile like this
from
# Standard location for XFree86
X11INC  = -I/usr/X11R6/include
X11LIB  = -L/usr/X11R6/lib
to
# Standard location for XFree86
X11INC  = -I/usr/X11R6_ARM/include
X11LIB  = -L/usr/X11R6_ARM/lib


But Xv.h file don't exist in /usr/X11R6_ARM/include/extension directory

Do i mischange location of X11?


Re: [Xmame] cross compile X-mame

2007-05-02 Thread Laurent Desnogues

On 5/2/07, changho kim <[EMAIL PROTECTED]> wrote:


src/cpu/cpu.mak:673: warning: overriding commands for target
`xmame.obj/cpu/m68000/m68kmake.o'
src/cpu/cpu.mak:658: warning: ignoring old commands for target
`xmame.obj/cpu/m68000/m68kmake.o'


You made a mistake.  Make sure you only have one target for m68make.o,
the one I sent you.
Also make sure you clean the directory containing m68k .o files before
recompiling.


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-02 Thread changho kim

Do i remove m68000 part?
if m68000 part don't play a important role, i want to remove this difficult
part...TT


Re: [Xmame] cross compile X-mame

2007-05-02 Thread changho kim

I'm really sorry to send this mailTT
As you say, i modify all...
But below message appeard, this is another message


src/cpu/cpu.mak:673: warning: overriding commands for target
`xmame.obj/cpu/m68000/m68kmake.o'
src/cpu/cpu.mak:658: warning: ignoring old commands for target
`xmame.obj/cpu/m68000/m68kmake.o'
arm-linux-gcc   xmame.obj/cpu/m68000/m68kmake.o   -o xmame.obj
/cpu/m68000/m68kmake
collect2: ld terminated with signal 11
[\u\u\u\u05f8\u\u\u\u\u033c\u
\u\u\u
xmame.obj/cpu/m68000/m68kmake.o(.data+0x4): In function `__data_start':
: multiple definition of `__dso_handle'
/usr/lib/gcc/arm-linux/3.4.3/crtbegin.o(.data+0x0): first defined here
xmame.obj/cpu/m68000/m68kmake.o(.init+0x0): In function `_init':
/usr/src/build/231499-i386/BUILD/glibc-2.3.2-20030313/build-i386-linux/csu/crti.S:35:
multiple definition of `_init'
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/lib/crti.o(.init+0x0):/project/toolchain/kernel-
2.6-x/fedora-core-3/src/glibcbuild/csu/crti.S:13: first defined here
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: BFD
2.15.91.0.120040527 assertion fail
elf.c:1406
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: BFD
2.15.91.0.120040527 assertion fail
elf.c:1415
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: BFD
2.15.91.0.120040527 assertion fail
elf.c:1406
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: BFD
2.15.91.0.120040527 assertion fail
elf.c:1415
xmame.obj/cpu/m68000/m68kmake.o(.text+0x0): In function `_start':
../sysdeps/i386/elf/start.S:47: multiple definition of `_start'
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/lib/crt1.o(.text+0x0):../sysdeps/arm/elf/start.S:49:
first defined here
xmame.obj/cpu/m68000/m68kmake.o(.fini+0x0): In function `_fini':
/usr/src/build/231499-i386/BUILD/glibc-2.3.2-20030313/build-i386-linux/csu/crti.S:51:
multiple definition of `_fini'
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/lib/crti.o(.fini+0x0):
first defined here
xmame.obj/cpu/m68000/m68kmake.o(.got+0x0): multiple definition of
`_GLOBAL_OFFSET_TABLE_'
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/lib/crti.o(.got.plt+0x0):
first defined here
xmame.obj/cpu/m68000/m68kmake.o(.rodata+0x4): multiple definition of
`_IO_stdin_used'
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/lib/crt1.o(.rodata+0x0):../sysdeps/arm/elf/start.S:49:
first defined here
xmame.obj/cpu/m68000/m68kmake.o(.data+0x0): In function `__data_start':
: multiple definition of `__data_start'
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/lib/crt1.o(.data+0x0):../sysdeps/arm/elf/start.S:49:
first defined here
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/lib/crti.o(.dynamic+0x0):
multiple definition of `_DYNAMIC'
xmame.obj/cpu/m68000/m68kmake.o(.dynamic+0x0): first defined here
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: warning: unknown
architecture of input file `xmame.obj/cpu/m68000/m68kmake.o' is incompatible
with arm output
make: *** [xmame.obj/cpu/m68000/m68kmake]

is this HOST_CC problem??
If you can, please send me your Makefile and /src/cpu/cpu.mak file
I want to compare my files with your files.


Re: [Xmame] cross compile X-mame

2007-05-02 Thread Laurent Desnogues

On 5/2/07, changho kim <[EMAIL PROTECTED]> wrote:

arm-linux-gcc   xmame.obj/cpu/m68000/m68kmake.o   -o
xmame.obj/cpu/m68000/m68kmake
Generating M68K source files...
xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c
xmame.obj/cpu/m68000/m68kmake: xmame.obj/cpu/m68000/m68kmake: cannot execute
binary file
make: *** [xmame.obj/cpu/m68000/m68kops.h] Error 126

[...]

# Compiler for host compilations in cross-compiling environments (used
# in src/unix/unix.mak for m68k).
HOST_CC = @gcc
#HOST_CC = @gcc


Make the following changes to src/cpu/cpu.mak:

1. New rule to force compilation of m68kmake.o on host:
$(OBJ)/cpu/m68000/m68kmake.o: src/cpu/m68000/m68kmake.c
@echo Host compiling $<...
$(HOST_CC) $(CDEFS) $(CFLAGS) -I$(OBJ)/cpu/m68000 -c $< -o $@

2. Change rule to force linking of m68kmake on host:
# rule to build the generator
$(OBJ)/cpu/m68000/m68kmake$(EXE): $(OBJ)/cpu/m68000/m68kmake.o $(OSDBGOBJS)
@echo Host linking $<...
$(HOST_CC) $^ -o $@

I checked it worked with my arm cross-compilation environment.

However I hope you have the X11 libraries available for arm.  If you
don't you are on your own ;-)


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-02 Thread changho kim

Dear Laurent Desnogues
I run compile xmame as you say...
HOST_CC left as gcc.
uncomment ZLIB and EXPAT
But the problem that i told yesterday is appear ㅡㅡ;

arm-linux-gcc   xmame.obj/cpu/m68000/m68kmake.o   -o
xmame.obj/cpu/m68000/m68kmake
Generating M68K source files...
xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c
xmame.obj/cpu/m68000/m68kmake: xmame.obj/cpu/m68000/m68kmake: cannot execute
binary file
make: *** [xmame.obj/cpu/m68000/m68kops.h] Error 126

This is my configuration related with compiler in Makefile

CC  = arm-linux-gcc
# CC= @cc
# CC= @icc
# CC= @c89

# Uncomment for Sun Forte 7 and above C/C++ compiler, see below for
# additional optimizations.
# CC = @sun-forte

# Compiler for host compilations in cross-compiling environments (used
# in src/unix/unix.mak for m68k).
HOST_CC = @gcc
#HOST_CC = @gcc

I try to find other things, but i don't find...
This make me madness TT


Re: [Xmame] cross compile X-mame

2007-05-01 Thread Laurent Desnogues

On 5/1/07, changho kim <[EMAIL PROTECTED]> wrote:

when i use #BUILD_ZLIB=1, that make error. but when i use BUILD=ZLIB, that
don't make error.
Why???


With BUILD_ZLIB=1 you force the compilation of the zlib source
that comes with XMAME.
You have to do it, because your cross compilation environment
seems to lack zlib.


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-01 Thread changho kim

OK, I know difference between comment and uncomment.
But i want to know what they have mean...
when i use #BUILD_ZLIB=1, that make error. but when i use BUILD=ZLIB, that
don't make error.
Why???

Very thank for your concern ^^


Re: [Xmame] cross compile X-mame

2007-05-01 Thread Laurent Desnogues

On 5/1/07, changho kim <[EMAIL PROTECTED]> wrote:

Thank you
This is my mistake...
Now, i start to compile... as you say, it seems that expat and zlib problem
is solved.
How difference exist between comment ZLIB, EXPAT and uncomment ZLIB, EXPAT?


In English "comment out" means that you make a comment.
For instance
# BUILD_ZLIB=1
is a commented out line.
Uncomment means remove the comment.


After compile with modified Makefile, new error appeared
The Error message is below

arm-linux-gcc   xmame.obj/cpu/m68000/m68kmake.o   -o
xmame.obj/cpu/m68000/m68kmake
Generating M68K source files...
xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c
xmame.obj/cpu/m68000/m68kmake: xmame.obj/cpu/m68000/m68kmake: cannot execute
binary file
make: *** [xmame.obj/cpu/m68000/m68kops.h] Error 126


This was the other part of my previous mail:  HOST_CC should be gcc
not arm gcc.


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-01 Thread changho kim

Thank you
This is my mistake...
Now, i start to compile... as you say, it seems that expat and zlib problem
is solved.
How difference exist between comment ZLIB, EXPAT and uncomment ZLIB, EXPAT?

After compile with modified Makefile, new error appeared
The Error message is below

arm-linux-gcc   xmame.obj/cpu/m68000/m68kmake.o   -o xmame.obj
/cpu/m68000/m68kmake
Generating M68K source files...
xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c
xmame.obj/cpu/m68000/m68kmake: xmame.obj/cpu/m68000/m68kmake: cannot execute
binary file
make: *** [xmame.obj/cpu/m68000/m68kops.h] Error 126

For solving, i try to find it in Makefile that related with m68000. But
there is not existing..
Sorry.. I am newbies, so i don't know many things

2007/5/1, Laurent Desnogues <[EMAIL PROTECTED]>:


On 5/1/07, changho kim <[EMAIL PROTECTED] > wrote:
> After get your mail, i check Makefile.
> Build_ZLIB is already uncommented..
> I think that original Makefile targeted to i386 machine, but i will
compile
> for ARM machine
> i will give mame modified Makefile.. Please check this Makefile

Your Makefile is wrong:  you did not enable ZLIB.  And HOST_CC should
be left as gcc.


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame



Re: [Xmame] cross compile X-mame

2007-05-01 Thread Laurent Desnogues

On 5/1/07, changho kim <[EMAIL PROTECTED]> wrote:

After get your mail, i check Makefile.
Build_ZLIB is already uncommented..
I think that original Makefile targeted to i386 machine, but i will compile
for ARM machine
i will give mame modified Makefile.. Please check this Makefile


Your Makefile is wrong:  you did not enable ZLIB.  And HOST_CC should
be left as gcc.


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-01 Thread changho kim

After get your mail, i check Makefile.
Build_ZLIB is already uncommented..
I think that original Makefile targeted to i386 machine, but i will compile
for ARM machine
i will give mame modified Makefile.. Please check this Makefile
Hm. because of mail size is very big, i don't send Makefile...
if you give me a email address, i will give you Makefile


Re: [Xmame] cross compile X-mame

2007-05-01 Thread Laurent Desnogues

changho kim a écrit :

maybe zlib.h is problem. so after i get zlib, cross-compile zlib.
But that is too fail..


Yes you are missing zlib in your cross-compilation environment.
Try to enable zlib compilation in MAME makefile by uncommenting
the following line:

BUILD_ZLIB = 1

You may also have to uncomment the BUILD_EXPAT=1 line.


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame


Re: [Xmame] cross compile X-mame

2007-05-01 Thread changho kim

Xmame version is xmame-0.106
Host Environment
OS : redhat Linux9
compiler : arm-linux-gcc

Target Environment
OS : Linux Kernel 2.6.13
CPU : ARM 920T
I install Tiny-x on embeded board for operating xmame

What i want to modify in the Makefile
: I want to change Makefile for cross-compiling
First i modify from CC=gcc to CC=arm-linux-gcc
as same case, i change others(AR, lib directory etc...)
But result is fail...

i show error message
Compiling src/chd.c ...
arm-linux-gcc  -std=gnu89 -Wall -Wno-unused '-DINLINE=static __inline__'
-D__ARCH_linux -D__CPU_ -Dx11 -DPI=M_PI -DXMAME -DUNIX -DSIGNED_SAMPLES
-DCLIB_DECL= -DHAVE_UNISTD_H=1  -DHAS_CUSTOM=1 -DHAS_SAMPLES=1 -DHAS_DAC=1
-DHAS_DMADAC=1 -DHAS_CDDA=1 -DHAS_DISCRETE=1 -DHAS_POKEY=1 -DHAS_TIA=1
-DHAS_ASTROCADE=1 -DHAS_CEM3394=1 -DHAS_BSMT2000=1 -DHAS_ES5503=1
-DHAS_ES5505=1 -DHAS_ES5506=1 -DHAS_ES8712=1 -DHAS_GAELCO_CG1V=1
-DHAS_GAELCO_GAE1=1 -DHAS_AY8910=1 -DHAS_HC55516=1 -DHAS_C6280=1
-DHAS_ICS2115=1 -DHAS_IREMGA20=1 -DHAS_K005289=1 -DHAS_K007232=1
-DHAS_K051649=1 -DHAS_K053260=1 -DHAS_K054539=1 -DHAS_NAMCO=1
-DHAS_NAMCO_15XX=1 -DHAS_NAMCO_CUS30=1 -DHAS_NAMCO_52XX=1 -DHAS_NAMCO_54XX=1
-DHAS_NAMCO_63701X=1 -DHAS_NAMCONA=1 -DHAS_C140=1 -DHAS_C352=1 -DHAS_NES=1
-DHAS_UPD7759=1 -DHAS_MSM5205=1 -DHAS_MSM5232=1 -DHAS_OKIM6295=1
-DHAS_SAA1099=1 -DHAS_QSOUND=1 -DHAS_RF5C68=1 -DHAS_RF5C400=1
-DHAS_SEGAPCM=1 -DHAS_MULTIPCM=1 -DHAS_SCSP=1 -DHAS_ST0016=1 -DHAS_X1_010=1
-DHAS_PSXSPU=1 -DHAS_SP0250=1 -DHAS_SN76477=1 -DHAS_SN76496=1
-DHAS_TMS36XX=1 -DHAS_TMS5110=1 -DHAS_TMS5220=1 -DHAS_VLM5030=1
-DHAS_VOTRAX=0 -DHAS_VRENDER0=1 -DHAS_YM2151=1 -DHAS_YM2203=1 -DHAS_YM2413=1
-DHAS_YM2608=1 -DHAS_YM2610=1 -DHAS_YM2610B=1 -DHAS_YM2612=1 -DHAS_YM3438=1
-DHAS_YM3812=1 -DHAS_YM3526=1 -DHAS_Y8950=1 -DHAS_YMF262=1 -DHAS_YMF271=1
-DHAS_YMF278B=1 -DHAS_YMZ280B=1 -DHAS_ARM=1 -DHAS_ARM7=1 -DHAS_SE3208=1
-DHAS_ALPHA8201=1 -DHAS_ALPHA8301=1 -DHAS_ADSP2100=1 -DHAS_ADSP2101=1
-DHAS_ADSP2104=1 -DHAS_ADSP2105=1 -DHAS_ADSP2115=1 -DHAS_ADSP2181=1
-DHAS_ADSP21062=1 -DHAS_DSP32C=1 -DHAS_ASAP=1 -DHAS_JAGUAR=1 -DHAS_CCPU=1
-DHAS_T11=1 -DHAS_G65816=1 -DHAS_HD6309=1 -DHAS_H83002=1 -DHAS_SH2=1
-DHAS_H6280=1 -DHAS_E116T=1 -DHAS_E116XT=0 -DHAS_E116XS=0 -DHAS_E116XSR=0
-DHAS_E132N=1 -DHAS_E132T=0 -DHAS_E132XN=0 -DHAS_E132XT=1 -DHAS_E132XS=0
-DHAS_E132XSR=0 -DHAS_GMS30C2116=1 -DHAS_GMS30C2132=0 -DHAS_GMS30C2216=0
-DHAS_GMS30C2232=0 -DHAS_8080=1 -DHAS_8085A=1 -DHAS_I8035=1 -DHAS_I8039=1
-DHAS_I8048=1 -DHAS_N7751=1 -DHAS_I8X41=1 -DHAS_I8051=1 -DHAS_I8052=1
-DHAS_I8751=1 -DHAS_I8752=1 -DHAS_I86=1 -DHAS_I88=1 -DHAS_I186=1
-DHAS_I188=0 -DHAS_I286=0 -DHAS_I386=1 -DHAS_I486=0 -DHAS_PENTIUM=1
-DHAS_MEDIAGX=1 -DHAS_I960=1 -DHAS_KONAMI=1 -DHAS_PIC16C54=0
-DHAS_PIC16C55=1 -DHAS_PIC16C56=0 -DHAS_PIC16C57=1 -DHAS_PIC16C58=0
-DHAS_R3000=1 -DHAS_R4600=1 -DHAS_R4650=1 -DHAS_R4700=1 -DHAS_R5000=1
-DHAS_QED5271=1 -DHAS_RM7000=1 -DHAS_M37702=1 -DHAS_M37710=1 -DHAS_M6502=1
-DHAS_M65C02=1 -DHAS_M65SC02=1 -DHAS_M65CE02=0 -DHAS_M6509=0 -DHAS_M6510=1
-DHAS_M6510T=0 -DHAS_M7501=0 -DHAS_M8502=0 -DHAS_N2A03=1 -DHAS_DECO16=1
-DHAS_M4510=0 -DHAS_M6800=1 -DHAS_M6801=1 -DHAS_M6802=1 -DHAS_M6803=1
-DHAS_M6808=1 -DHAS_HD63701=1 -DHAS_NSC8105=1 -DHAS_M6805=1 -DHAS_M68705=1
-DHAS_HD63705=1 -DHAS_M6809=1 -DHAS_M6809E=1 -DHAS_MC68HC11=1 -DHAS_M68000=1
-DHAS_M68008=0 -DHAS_M68010=1 -DHAS_M68EC020=1 -DHAS_M68020=1 -DHAS_M68040=1
-DHAS_DSP56156=1 -DHAS_PPC403=1 -DHAS_PPC602=1 -DHAS_PPC603=1 -DHAS_V20=1
-DHAS_V30=1 -DHAS_V33=1 -DHAS_V60=1 -DHAS_V70=1 -DHAS_V810=1 -DHAS_UPD7810=1
-DHAS_UPD7807=1 -DHAS_RSP=1 -DHAS_S2650=1 -DHAS_SPC700=1 -DHAS_PSXCPU=1
-DHAS_TMS9900=0 -DHAS_TMS9940=0 -DHAS_TMS9980=1 -DHAS_TMS9985=0
-DHAS_TMS9989=0 -DHAS_TMS9995=1 -DHAS_TMS99105A=0 -DHAS_TMS99110A=0
-DHAS_TMS99000=0 -DHAS_TI990_10=0 -DHAS_TMS34010=1 -DHAS_TMS34020=1
-DHAS_TMS32010=1 -DHAS_TMS32025=1 -DHAS_TMS32026=1 -DHAS_TMS32031=1
-DHAS_TMS32051=1 -DHAS_Z80=1 -DHAS_Z180=1 -DHAS_Z8000=1   -I. -Isrc
-Isrc/includes -Isrc/debug -Isrc/unix -Ixmame.obj/cpu/m68000
-Isrc/cpu/m68000 -DHAVE_MMAP -DCRLF=2 -DSYSDEP_DSP_OSS -DSYSDEP_MIXER_OSS
-DHAVE_SNPRINTF -DHAVE_VSNPRINTF -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-o xmame.obj/chd.o -c src/chd.c
src/chd.c:13:18: zlib.h: \u\u05f7\u
\u\u\u\u\u\u0333\u
\u\u\u\u\u\u4e2e\u\u \u
src/chd.c:147: error: parse error before "z_stream"
src/chd.c:147: warning: no semicolon at end of struct or union
src/chd.c:148: warning: type defaults to `int' in declaration of `deflater'
src/chd.c:148: warning: data definition has no type or storage class
src/chd.c:150: error: parse error before '}' token
src/chd.c: In function `read_hunk_into_memory':
src/chd.c:1350: error: dereferencing pointer to incomplete type
src/chd.c:1351: error: dereferencing pointer to incomplete type
src/chd.c:1352: error: dereferencing pointer to incomplete type
src/chd.c:1353: error: dereferencing pointer to incomplete type
src/chd.c:1354: error: dereferencing pointer to incomplete type
src/chd.c:1355: erro

Re: [Xmame] cross compile X-mame

2007-05-01 Thread Laurent Desnogues

On 4/29/07, changho kim <[EMAIL PROTECTED]> wrote:

I want to cross-compile x-mame on embeded board using arm cpu.

First, i made my development environment.
Second, modify Makefile
and
do make..
but this is fail...
If somebody have a cross compile experience, give me a tip


You should provide more information if you want to get help:
- what version of XMAME?
- environment?  I guess you cross-compile.  From what OS and with what compiler?
- what did you change in the Makefile?
- what is the error you get?


Laurent

___
Xmame mailing list
Xmame@toybox.twisted.org.uk
http://toybox.twisted.org.uk/mailman/listinfo/xmame