Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cross Compiling on Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hal8000b
n00b
n00b


Joined: 28 Sep 2004
Posts: 32
Location: UK

PostPosted: Tue Mar 07, 2006 12:48 pm    Post subject: Cross Compiling on Gentoo Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Tue Mar 07, 2006 5:51 pm    Post subject: Reply with quote

http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum