PPCなMacでiPhone開発環境を作る

iPhone開発環境を作る。僕のMacPPCだから、バイナリで提供されてるiPhoneToolchainのパッケージは使えないので、自前でコンパイルするしかない。

やりかたはここ
Building - iphone-dev - Google Code

llvmMacPortsにもあるけど、ちょっと古いのか?必要なヘッダが無かったりしたので、上のとおりにやるのが良いと思う。

最初、試しにバイナリのiPhoneToolchainをインストールしたら、/usr/bin/ldがi386バイナリのに上書きされてて、gccで実行ファイルが作れなくなったりしたので(Xcode 2.5をダウンロードしてインストールすることで解決した)、PPCの人はバイナリパッケージをインストールしないように気をつけた方が良いよ。


うーん、PPCではコンパイルエラーになるみたい。

# Check out a copy of LLVM SVN, and build a release build (as opposed to a debug one). Currently, due to Issue 70, we are limited to revision 42498.

Building - iphone-dev - Google Code

と書いてあるけど、Issue70を見るとPPC上のTigerではやっぱりだめでしたという報告があって、

Comment 24 by jonaskaplan, Oct 21, 2007

Sorry for the vagueness. With 42498 I get the exact same error message, yes, but with revision 42286 I get the following error, this is on PPC Mac OS X 10.4.10:
(略)

Comment 25 by jonaskaplan, Oct 22, 2007

Compiled successfully on Intel mac, so the problem was PPC only.

ssue 70 - iphone-dev - Google Code

それに対する開発者らしき人の返事が、

Comment 26 by PhireN, Oct 30, 2007

Nightwatch seams to have disappeared, reassigned back to me.

I'm working on Issue 83, which should fix this problem.

ssue 70 - iphone-dev - Google Code

Issue 83に引き継がれて、まだ作業中らしい。

iPhone 開発環境はしばらく様子見。