theos tutorial for Mac OS X

1. Install theos. ( follow iphonedevwiki Theos/Getting Started page )

Mac OS X comes with most of the necessary tools (subversion, curl, and perl) by default.
とあるのだが、gitを使っているのでgitの方で解説する。

install git-osx-installer

iphonedevwikiにあるInstalling theosをこなす。

export THEOS=/opt/theos
git clone git://github.com/DHowett/theos.git $THEOS
curl -s http://dl.dropbox.com/u/3157793/ldid> $THEOS/bin/ldid; chmod +x $THEOS/bin/ldid

theos自体のinstallはこれで終わり。

2. Install Header file.

class-dumpしたヘッダーファイルを入れるのだが、面倒だったのでここもgitで。( ここはもうちょいスマートなやり方があるはず )

git clone git://github.com/rpetrich/iphoneheaders.git $THEOS/include_rpetrich
mv $THEOS/include_rpetrich/* $THEOS/include/
cp /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h $THEOS/include/IOSurface/

3. Modify theos makefile.

また明日書きます・・