HTML

Hackstock

Hack the planet! Hackers unite!

Címkék

Címkefelhő

iPhone - the beginning

2007.11.26. 23:00 :: theshadow

Like you know every beginning is hard... so I'm not wasting the words; let's create the iPhone developer toolchain. If you seen an error by any of the following steps just try to execute the make clean command and try again. Of course before trying it is worsty to find and fix the problem. I not succeeded for the firswt time..
  1. Cygwin install
  2. Download XCode 2.5 Developer Tools from Apple Developer Center
  3. In Cygwin
    cd /home
    svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-svn -r 42498
    In an other consolte
    cd /home
    svn checkout http://iphone-dev.googlecode.com/svn/trunk/ iphone-dev
  4. Let's create a copy of the phone file system in usr/local/share/iphone-filesystem directory
  5. Creating LLVM
    cd /home/llvm-svn
    ./configure --enable-optimized
    make ENABLE_OPTIMIZED=1
    make install
    LLVMOBJDIR=`pwd`
  6. Creating ODCCTools
    Let's download in /home/iphone-dev/odcctools directory victzh's patch which is required for Cygwin install
    mkdir /usr/local/arm-apple-darwin
    mkdir -p /home/iphone-dev/build/odcctools
    cd /home/iphone-dev/odcctools
    patch -p0 <odcctools_cygwin.patch
    mv include/foreign/machine include/foreign/_machine
    cd ../build/odcctools
    ../../odcctools/configure --target=arm-apple-darwin --disable-ld64
    make
    make install
  7. Extract Packages/Packages/MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz file from XCode 2.5 Developert Tools and unpack it
    gunzip -c Archive.pax.gz | cpio -i
  8. Installing iPhone headers
    HEAVENLY=/usr/local/share/iphone-filesystem
    cd /home/iphone-dev/include
    ./configure --with-macosx-sdk=/SDKs/MacOSX10.4u.sdk
    bash install-headers.sh
  9. Creating CSU
    mkdir -p /home/iphone-dev/build/csu
    cd /home/iphone-dev/build/csu
    ../../csu/configure --host=arm-apple-darwin
    make install
  10. Compiling LLVM-GCC (very important to have the right path in $LLVMOBJDIR and $HEAVENLY
    mkdir -p /home/iphone-dev/build/llvm-gcc-4.0-iphone
    cd /home/iphone-dev/build/llvm-gcc-4.0-iphone
    ../../llvm-gcc-4.0-iphone/configure --enable-llvm=`llvm-config --obj-root` --enable-languages=c,c++,objc,obj-c++ --target=arm-apple-darwin --enable-sjlj-exceptions --with-heavenly=$HEAVENLY --with-as=/usr/local/bin/arm-apple-darwin-as --with-ld=/usr/local/bin/arm-apple-darwin-ld
    make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn
    make install
Done, that's all!

Szólj hozzá!

Címkék: iphone toolchain

A bejegyzés trackback címe:

https://hackstock.blog.hu/api/trackback/id/tr58243089

Kommentek:

A hozzászólások a vonatkozó jogszabályok  értelmében felhasználói tartalomnak minősülnek, értük a szolgáltatás technikai  üzemeltetője semmilyen felelősséget nem vállal, azokat nem ellenőrzi. Kifogás esetén forduljon a blog szerkesztőjéhez. Részletek a  Felhasználási feltételekben és az adatvédelmi tájékoztatóban.

Nincsenek hozzászólások.
süti beállítások módosítása