Skip to content
javacom edited this page Jul 23, 2016 · 40 revisions

Welcome to the toolchain4 wiki!



**NEW!!**

There is a docker image (1.22GB) based on ubuntu-x86:10.04 for this toolchain4 plus Telesphoreo


Download from here https://mega.nz/#!jgJ23bRL!IC0hw8QDgJEH3RvfPGHK4Fij8dEV3MlX_Bn78WU8Zxs
import to docker using
cat toolchain4.tar.gz | docker import - toolchain4:ubuntu
or
docker import toolchain4.tar.gz toolchain4:ubuntu

run docker using
docker run -t -i toolchain4:ubuntu bash


Ubuntu 10.10 releases are here http://releases.ubuntu.com/10.10/
I used ubuntu-10.10-desktop-i386.iso (32 bit) in VMWare Fusion to test this toolchain

The pkg files should be put in /toolchain4/sdks/



If you want to ./toolchain.sh buildsys
    Download iPhoneSDK4_2.pkg here or here

If you want to ./toolchain.sh buildsys50
     Download iPhoneSDK5_0.pkg here or here

If you want to ./toolchain.sh buildsys43
     Download iPhoneSDK4_3.pkg here or here

If you want to ./toolchain.sh build313
     Download iPhoneSDKHeadersAndLibs.pkg (that is iPhoneSDK3.1.3) here or here
    Download MacOSX10.5.pkg here or here

If you want to ./toolchain.sh build32
    Download iPhoneSDKHeadersAndLibs_32.pkg (that is iPhoneSDK3.2) here or here
    and MacOSX10.5.pkg

Old iPhone SDKs (requires developer account login)
iPhone SDK 3.1.3 with XCode 3.2.1 for Snow Leopard (requires 10.6.0)
iPhone SDK 3.2 Final with Xcode 3.2.2 for Snow Leopard (requires 10.6.0)

Xcode 3.2.3 and iPhone SDK 4 Final for Snow Leopard (requires 10.6.2)

Xcode 3.2.4 and iOS SDK 4.1 for Snow Leopard (requires 10.6.4)

Xcode 3.2.5 and iOS SDK 4.2 for Snow Leopard (requires 10.6.4)

Xcode 3.2.6 and iOS SDK 4.3.1 for Snow Leopard (requires 10.6.6)

If you use Ubuntu 11.04/11.10, please make sure you use gcc-4.4 and g++-4.4 to compile cctools

sudo apt-get install gcc-4.4 g++-4.4 gobjc-4.4
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 44  \
 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4 \
 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.4

If you have problem installing libssl0.9.8, try this

wget http://us.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl0.9.8_0.9.8o-1ubuntu4_i386.deb
sudo dpkg -i libssl0.9.8_0.9.8o-1ubuntu4_i386.deb 

if you get the print_objc.c for error objc/objc_runtime.h not found add these to disable compilation in /toolchain4/src/cctools/otool/print_objc.c

#if 0
..
..#endif

There are lots of ld warning: bad symbol version: .... when compiling
To disable this, edit the source code of /toolchain4/src/cctools/ld64/src/MachOReaderDylib.hpp
and comment out this line

warning("bad symbol version: %s in dylib %s ...
Then rebuild cctools without downloading source again.