From: Cassie Stewart <wthompson1999@ya...> - 2004-11-15 21:02:29
I am trying to cross compile a library I go from the
internet, reed-solomon-4.0. It compiles and installs
fine when I am compiling it normally (for a x86) but
when I compile it for an arm I get errors. This is how
I compile it for an arm; ./configure
--target=arm-linux, make ARCH=arm
CROSS_COMPILE=arm-linux- Am I doing this correctly?
This is the error message I am getting
./gen_ccsds > ccsds_tab.c
arm-linux-gcc -g -O2 -Wall -c -o ccsds_tab.o
arm-linux-gcc -g -O2 -Wall -c -o encode_rs_ccsds.o
arm-linux-gcc -g -O2 -Wall -c -o decode_rs_ccsds.o
arm-linux-gcc -g -O2 -Wall gen_ccsds_tal.c -o
gen_ccsds_tal.c: In function `main':
gen_ccsds_tal.c:49: warning: implicit declaration of
./gen_ccsds_tal > ccsds_tal.c
/bin/sh: line 1: ./gen_ccsds_tal: cannot execute
It looks like its trying to execute a binary that it
has already made, but of course it can't because its
made for a different type.
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
From: Dave Hylands <dhylands@gm...> - 2004-11-16 00:29:14
> It looks like its trying to execute a binary that it
> has already made, but of course it can't because its
> made for a different type.
That's a common problem when cross-compiling. Typically, I'll manually
run the file on the gumstix and figure out the output. Normally the
source generated by configure just uses the exit status.
You can then either edit the configure script to spoof the answer, or
edit the autoconf stuff (typically configure.ac) and provide the
answer in there, and then regenerate the configure script (you may
need to talk to the maintainers to find out the exact set of steps
Vancouver, BC, Canada