Difference between revisions of "Talk:Apple TV Binaries"

From AwkwardTV
Jump to: navigation, search
(New page: The files gzip and gunzip are already present on my ATV (v1.0 + safe update).)
 
(cross compiling)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
The files gzip and gunzip are already present on my ATV (v1.0 + safe update).
 
The files gzip and gunzip are already present on my ATV (v1.0 + safe update).
 +
 +
Also I suggest to run at the end "strip binary", it can reduce the size of the files. E.g. nano non-striped is 320kB and striped is 129kB.
 +
 +
And there is a way to cross-compile i386 binary on a ppc mac, I have to find the propper command syntax.
 +
 +
 +
----
 +
 +
Thanks for your feedback, I stripped the binaries and added a link to apple.com docs about cross compiling. Seems to work this way:
 +
 +
./configure --prefix=/Users/...
 +
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" \
 +
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" \
 +
make
 +
 +
I think you can leave ''-arch ppc'' out if it should only work on Apple TV.
 +
 +
But I have no PPC Mac to test it. If you have one, could you try if it works and give feedback or better change the wiki page by yourself? --[[User:Mcka|Mcka]] 12:39, 5 December 2007 (CET)

Latest revision as of 11:41, 5 December 2007

The files gzip and gunzip are already present on my ATV (v1.0 + safe update).

Also I suggest to run at the end "strip binary", it can reduce the size of the files. E.g. nano non-striped is 320kB and striped is 129kB.

And there is a way to cross-compile i386 binary on a ppc mac, I have to find the propper command syntax.



Thanks for your feedback, I stripped the binaries and added a link to apple.com docs about cross compiling. Seems to work this way:

./configure --prefix=/Users/...
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" \
make

I think you can leave -arch ppc out if it should only work on Apple TV.

But I have no PPC Mac to test it. If you have one, could you try if it works and give feedback or better change the wiki page by yourself? --Mcka 12:39, 5 December 2007 (CET)