View previous topic :: View next topic |
Author |
Message |
hal8000b n00b
Joined: 28 Sep 2004 Posts: 32 Location: UK
|
Posted: Tue Mar 07, 2006 12:48 pm Post subject: Cross Compiling on Gentoo |
|
|
I have Gentoo2005.1 and I am using Intel archietecure.
I have been trying to cross compile mailfilter for my dreambox (sat receiver running linux with powerpc cpu)
I have extracted the source tarball then ran
./configure --target=powerpc
make
(havent run make install as this is for another device)
The binary mailfilter has compiled wihout errors, but I have a feeling it has not been compiled for ppc
archiectecture.
If I run
orac src # pwd
/home/anc/mailfilter-0.6.2/src
orac src # ./mailfilter -V
mailfilter 0.6.2
If this binary was compiled for a powerpc, surely I would get an error when running it on x86 hardware??
I have ftp'd the binary into the dreambox but I get an error
root@dm7020:/usr/bin# ./mailfilter -V
./mailfilter: 1: Syntax error: "&" unexpected (expecting ")")
...and I am pretty sure this is because its still an x86 binary not a powerpc binary
I have not tried to compile on the dreambox hardware as the cpu is a 32bit powerpc running at 250MHz
with only 96M ram
Do I need to install any more tools to cross compile?
Thanks in advance |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9538 Location: beyond the rim
|
|
Back to top |
|
|
|