build iPhone toolchain for 3.0 in windows via CYGWIN

Discussion in 'iOS Development' started by demonlj, Sep 15, 2009.

  1. demonlj

    demonlj New Member

    Joined:
    Jul 8, 2009
    Messages:
    12
    Likes Received:
    0
    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 [PIRACY.mu] link (i hate [PIRACY.rs], 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/viewthread.php?tid=10&extra=page=1 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
    [​IMG]

    1.install CYGWIN

    download the 2files below

    Cygwin安装程序(setup.exe)

    cygwin package source:

    1. Rayfile in China

    2. [PIRACY.mu]


    place the "cygwin_source" on the desktop.
    run the "setup.exe", until we can choose "Install From Local Directory"
    [​IMG]

    continue pushing Next, until we can set the Root Directory to "c:\cygwin"
    [​IMG]

    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 )
    [​IMG]

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

    continue pushing Next and we will have CYGWIN installed successfully

    2.get the source of iPhone toolchain

    iPhone ToolChain source package

    1.iPhone Rayfile in China

    2. [PIRACY.mu]

    place the toolchain.7z to the root of CYGWIN

    run the CYGWIN, run the commands below



    3.compile iPhone Tool Chain

    run the CYGWIN, run the commands below

    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

    en, you have build the toolchain successfully.
  2. yellowacer

    yellowacer New Member

    Joined:
    Sep 13, 2009
    Messages:
    4
    Likes Received:
    0
    WOW!!! I cant thank you enough! i had given up , i was stupid enough to compile the old toolchain hoping it would work on 3.0 (it didnt). hopefully this will work, gonna try it now :) thanks!
    ------------------double post merged------------------
    quick question: is there a an alternative to rayfile.com? it requires the download of a client, which i find suspicious....
  3. demonlj

    demonlj New Member

    Joined:
    Jul 8, 2009
    Messages:
    12
    Likes Received:
    0
    i am in china, i don't have a speedy connection with [PIRACY.rs]. but i will try~
  4. yellowacer

    yellowacer New Member

    Joined:
    Sep 13, 2009
    Messages:
    4
    Likes Received:
    0
    demonlj, no worries then, i will use rayfile
    ------------------double post merged------------------
    demonlj, Thank you for taking the time to put this on [PIRACY.mu].
  5. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    232
    Likes Received:
    0
    Device:
    3G iPod touch
    Cygwin says that I need XAR? How do I get that?
  6. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,652
    Likes Received:
    122
  7. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    232
    Likes Received:
    0
    Device:
    3G iPod touch
    Do I have to build it with make?
  8. acca2o

    acca2o New Member

    Joined:
    Sep 26, 2009
    Messages:
    51
    Likes Received:
    0
    Device:
    2G iPod touch
    It's my firts time with iphone developement...
    can you please give me some suggestion to build the first easy application?
    just the icon on the dispay to launch it and then a white screen.
    it's to test the toolchain installation.
    I tried with an HelloWorld fron the net but the make command gave me a lot of errors (declaration for parameter...but non such parameter)
    Is it the source code o the toolchain?
    I think the source code is for iphone 2.x and not for 3.0. Is that?
    During the last phase of the toolchain building process I got an error (i don't know witch one) but the installation has been completed succefully.
    Last...I installed cygwin in c:/programs
    Thanks a lot.
    P
    ------------------double post merged------------------
    for the xar i got a prebuilt version on the net and just copied the file xar.exe in cygwin/usr/local/bin and the folde share in usr/local
  9. muhu

    muhu Member

    Joined:
    Feb 27, 2009
    Messages:
    86
    Likes Received:
    0
    Device:
    iPhone 4S (White)
    There are two test apps, "HelloToolchain" and "HelloWorldapp", inside of /cygwin/toolchain/apps

    Its as simple as typing 'make' in one of those directories. Take a look into the source folders of those two apps, it should give you a general idea of what a basic app consists of.

    And about xar, its in most if not all Cygwin repositories. I found it no problem. If yours was not installed properly I doubt you could have gone on installing the toolchain.
  10. dudemanbra123

    dudemanbra123 New Member

    Joined:
    Feb 3, 2008
    Messages:
    81
    Likes Received:
    1
    Device:
    iPod touch
    I got three errors while

Share This Page