build iPhone toolchain for 3.0 in windows via CYGWIN

已验证通过编译!

 

recently toelooper & m4dm4n just update iphone toolchain for Linux to version 3.0, but i don't use Linux in my everyday use. so i transplant it to CYGWIN

update 2:
add megaupload link (i hate rapidshare, seriously)

update 1:
- i modified the otool source code to make it compilable in CYGWIN.
- ldid in the src directory can be compiled, but can not run successfully. maybe some one can help use figure it out. (a clue: i can run ldid smoothly in my old cygwin, which is build one year ago, and i can't remember what i have done to it. but in the new built windows2003 version of cygwin it failed)
- again! i really appreciate whatever u done to help us to figure out how to make ldid work. i really don't want to run ldid in my iPhone


My References
1. http://iphonedevonlinux.googlecode.com/
2. http://www.iphonetoolchain.cn/viewth...extra=page%3D1 i am a lazy dog, so i just copy & paste its text&pics

I am just going to tell u how to build an iPhone toolchain for 3.0 in windows(just been tested in XP SP3 & 2003)

At the beginning, make sure your iPhone has been jailbreaked, and has openSSH & ldid installed (via Cydia)


This is telling u how does the toolchain works


I.install CYGWIN

download the 2files below

Cygwin安装程序(setup.exe)

cygwin package source:

(1)Rayfile in China

(2)megaupload


place the "cygwin_source" on the desktop.
1.run the "setup.exe", until we can choose "Install From Local Directory"
2.continue pushing Next, until we can set the Root Directory to "c:/cygwin"
3.continue pushing Next, until we can locate the "Local Package Directory" to the "cygwin_source" which we have just placed on desktop(lol, i'm lazy so the pic below doesn't match what i said )

4.make sure ALL PACKAGES in Admin、 Archive、Devel、Net、System、Util、Web will be installed

5.continue pushing Next and we will have CYGWIN installed successfully



II.get the source of iPhone toolchain

iPhone ToolChain source package

1.iPhone Rayfile in China

2. megaupload

place the toolchain.7z to the root of CYGWIN

Quote:
c:/cygwin/

run the CYGWIN, run the commands below

Quote:
cd /
7z x toolchain.7z

 

ln -sf /usr/local/sys/usr/lib/libSystem.B.dylib /usr/local/sys/usr/lib/libSystem.dylib

ln -sf /usr/local/sys/usr/lib/libSystem.dylib /usr/local/sys/usr/lib/libc.dylib



3.compile iPhone Tool Chain

run the CYGWIN, run the commands below

Quote:
cd /toolchain
./toolchain.sh all

this step will take a very long time, so make sure you have a cup of tasty coffee or tea (my favor)

At the end, it will prompt u like this

Quote:
It seems like the toolchain built!
Do you want to clean up the source files used to build the toolchain? [Y/n] n
All stages completed. The toolchain is ready.

en, you have build the toolchain successfully.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值