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.

 

 

你可能感兴趣的:(iphone开发,iphone,build,windows,archive,linux,system)