Skip to content
javacom edited this page Dec 11, 2011 · 25 revisions

Welcome to the toolchain4 wiki!



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

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

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

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

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

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

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.
Clone this wiki locally