changho kim
Tue, 01 May 2007 05:49:16 -0700
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: \uffff\u05f7\uffff \uffff\uffff\uffff\uffff\uffff\u0333\uffff \uffff\uffff\uffff\uffff\uffff\u4e2e\uffff\uffff \uffff 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: error: dereferencing pointer to incomplete type src/chd.c:1356: warning: implicit declaration of function `inflateReset' src/chd.c:1356: error: dereferencing pointer to incomplete type src/chd.c:1357: error: `Z_OK' undeclared (first use in this function) src/chd.c:1357: error: (Each undeclared identifier is reported only once src/chd.c:1357: error: for each function it appears in.) src/chd.c:1361: warning: implicit declaration of function `inflate' src/chd.c:1361: error: dereferencing pointer to incomplete type src/chd.c:1361: error: `Z_FINISH' undeclared (first use in this function) src/chd.c:1362: error: dereferencing pointer to incomplete type src/chd.c:1398: warning: implicit declaration of function `crc32' src/chd.c: In function `write_hunk_from_memory': src/chd.c:1498: error: dereferencing pointer to incomplete type src/chd.c:1499: error: dereferencing pointer to incomplete type src/chd.c:1500: error: dereferencing pointer to incomplete type src/chd.c:1501: error: dereferencing pointer to incomplete type src/chd.c:1502: error: dereferencing pointer to incomplete type src/chd.c:1503: error: dereferencing pointer to incomplete type src/chd.c:1504: warning: implicit declaration of function `deflateReset' src/chd.c:1504: error: dereferencing pointer to incomplete type src/chd.c:1505: error: `Z_OK' undeclared (first use in this function) src/chd.c:1509: warning: implicit declaration of function `deflate' src/chd.c:1509: error: dereferencing pointer to incomplete type src/chd.c:1509: error: `Z_FINISH' undeclared (first use in this function) src/chd.c:1512: error: `Z_STREAM_END' undeclared (first use in this function) src/chd.c:1512: error: dereferencing pointer to incomplete type src/chd.c:1515: error: dereferencing pointer to incomplete type src/chd.c: At top level: src/chd.c:2123: error: parse error before "fast_alloc" src/chd.c:2123: error: parse error before "opaque" src/chd.c:2124: warning: return type defaults to `int' src/chd.c: In function `fast_alloc': src/chd.c:2125: error: `opaque' undeclared (first use in this function) src/chd.c:2130: error: `size' undeclared (first use in this function) src/chd.c:2130: error: `items' undeclared (first use in this function) src/chd.c:2135: error: dereferencing pointer to incomplete type src/chd.c:2140: warning: return makes integer from pointer without a cast src/chd.c:2147: warning: return makes integer from pointer without a cast src/chd.c:2151: error: dereferencing pointer to incomplete type src/chd.c:2153: error: dereferencing pointer to incomplete type src/chd.c:2159: warning: return makes integer from pointer without a cast src/chd.c: At top level: src/chd.c:2163: error: parse error before "opaque" src/chd.c: In function `fast_free': src/chd.c:2165: error: `opaque' undeclared (first use in this function) src/chd.c:2166: error: `address' undeclared (first use in this function) src/chd.c:2171: error: dereferencing pointer to incomplete type src/chd.c: In function `init_codec': src/chd.c:2204: error: invalid application of `sizeof' to incomplete type `src/chd.c' src/chd.c:2210: error: invalid application of `sizeof' to incomplete type `src/chd.c' src/chd.c:2213: error: dereferencing pointer to incomplete type src/chd.c:2214: error: dereferencing pointer to incomplete type src/chd.c:2215: error: dereferencing pointer to incomplete type src/chd.c:2216: error: dereferencing pointer to incomplete type src/chd.c:2217: error: dereferencing pointer to incomplete type src/chd.c:2218: warning: implicit declaration of function `inflateInit2' src/chd.c:2218: error: dereferencing pointer to incomplete type src/chd.c:2218: error: `MAX_WBITS' undeclared (first use in this function) src/chd.c:2219: error: `Z_OK' undeclared (first use in this function) src/chd.c:2221: error: dereferencing pointer to incomplete type src/chd.c:2222: error: dereferencing pointer to incomplete type src/chd.c:2223: error: dereferencing pointer to incomplete type src/chd.c:2224: error: dereferencing pointer to incomplete type src/chd.c:2225: error: dereferencing pointer to incomplete type src/chd.c:2226: warning: implicit declaration of function `deflateInit2' src/chd.c:2226: error: dereferencing pointer to incomplete type src/chd.c:2226: error: `Z_BEST_COMPRESSION' undeclared (first use in this function) src/chd.c:2226: error: `Z_DEFLATED' undeclared (first use in this function) src/chd.c:2226: error: `Z_DEFAULT_STRATEGY' undeclared (first use in this function) src/chd.c:2230: error: `Z_MEM_ERROR' undeclared (first use in this function) src/chd.c: In function `free_codec': src/chd.c:2275: warning: implicit declaration of function `inflateEnd' src/chd.c:2275: error: dereferencing pointer to incomplete type src/chd.c:2276: warning: implicit declaration of function `deflateEnd' src/chd.c:2276: error: dereferencing pointer to incomplete type src/chd.c:2280: error: dereferencing pointer to incomplete type src/chd.c:2281: error: dereferencing pointer to incomplete type make: *** [xmame.obj/chd.o] maybe zlib.h is problem. so after i get zlib, cross-compile zlib. But that is too fail.. If you have an idea, help me Thanks to your concern 2007/5/1, Laurent Desnogues <[EMAIL PROTECTED]>:
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