[Expat-discuss] cross compil expat on ARM7
BRACH Vincent
v.brach at smie.com
Tue Jun 28 11:04:16 CEST 2005
Hello all,
I'm trying to cross-compil expat (just librarie static & shared) from my
host (i686-pc-linux-gnu) for an ARM7 target (S3C44B0X running on
uClinux)
I fixed the environnement variables follow :
export CC="arm-elf-gcc"
export CFLAGS="-DUNIX=1 -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -O2
-fomit-frame-pointer -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED
-fno-builtin -I/home/vincent/uClinux-dist/linux-2.4.x/include -I."
export LDFLAGS="-Wl,-elf2flt
-nostartfiles /home/vincent/uClinux-dist/lib/uClibc/lib/crt0.o /home/vincent/uClinux-dist/lib/uClibc/lib/crti.o /home/vincent/uClinux-dist/lib/uClibc/lib/crtn.o -L/home/vincent/uClinux-dist/lib/uClibc/. -L/home/vincent/uClinux-dist/lib/uClibc/lib"
When I try to run the ./configure like this " ./configure
--prefix=/home/vincent/uClinux-dist/lib/libexpat "
I have normaly the messages : "checking whether the C compiler works...
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'."
But I don't know what I must give for argument "host" ???
I try " ./configure --prefix=/home/vincent/uClinux-dist/lib/libexpat
--host=arm " but I don't think it's the good way !
Like this the Makefile are generated , my sample program compiled and
linked well (with the static libexpat.a) but doesn't work on the
target .... :(
Is anyboday can help me ??
(I'm not yet subscriber of mailing list "expat-discuss at libexpat.org"
please just mail me to v.brach at smie.com (or reply))
Thanks lot
V. BRACH
More information about the Expat-discuss
mailing list