Scratchbox 2
Target Distribution Instructions
Maemo SDK+, old instructions are useful for non-debian based hosts.
Introduction
Scratchbox 2 is a cross-compilation engine, it can be used to create a highly flexible SDK.
SB2 is totally distribution neutral. I develop it currently on Fedora 8 using Debian/sid as a build tool distribution. It's known to work at least on Debian, Ubuntu, Gentoo and Fedora. Both x86 and amd64 architectures are supported. PPC host support is possible, but not planned. Mac OS X is a potential platform as well, if you're interested in hacking on that, please contact lle at rahina dot org.
For target systems you can do anything that Qemu or sbrsh supports.
News
- 2008-06-20 1.99.0.25 Development snapshot, this is what the Maemo SDK+ is using at the moment. Not tested by anyone else, but does work quite well for them. Big thanks to Lauri Aarnio for his hard work!
- 2008-02-12 1.99.0.23 Various bugfixes and traceability improvements.
- 2007-12-18 1.99.0.22 Mainly build system fixes for x86_64 debian hosts
- 2007-12-14 1.99.0.20 Huge changes everywhere. No more sb_gcc_wrapper, it's handled by the generic argv/envp mangler, support for separate tool distribution (use a debian/sid rootfs on Fedora 8 host without having to chroot), new Maemo mapping rules, sbrsh support, many bugfixes.
- 2007-09-19 1.99.0.19 changes target handling by moving sb_tools and sb2.config to $HOME/.scratchbox2. Targets are now given a name and referred through that everywhere. All targets need to be re-initialized when upgrading to this version. sb2-config can be used to set the default target and to list available targets, no need to edit config files manually.
License
Scratchbox 2 is distributed under LGPL version 2.1, portions are under GPL version 2. Some minor stuff is under MIT style license.
Source Releases
- Version control: git://anongit.freedesktop.org/git/sbox2
Tarballs:
2008-02-12 sbox2-1.99.0.23.tar.bz2 md5sum: 8f0c0c2c204c423257a6db382ac37edc
Installation
For holistic instructions for a particular target distribution, see the links at the top of this page.
SB2 doesn't need root access and it is highly recommended not to use it as root. Actually, if you use it as root, you're insane.
Read the README file for installation instructions. It contains brief example of setting up SB2 for use with Maemo.
NOTE! If you have problems compiling SB2, please check that your make is new enough, GNU make 3.81 or newer is recommended.
Bugs
Bugs can be reported using bugzilla.
Toolchains
For targeting ARM chips you should probably use CodeSourcery's toolchain.
TODO
Major things missing are:
- Documentation
- lot's of testing
CPU Transparency Options
Currently SB2 supports Qemu and sbrsh. You need to get a post 2007-06-18 CVS version of Qemu with -drop-ld-preload support.
If you are interested in developing SB2, contact lle at rahina dot org


