You can download a preliminary version of rootstrap from the download section.
Rootstrap contains prebuilt ARM libraries and all required include files. It provides one way of installing the required development libraries. It gives you a "clean" target installation within Scratchbox.
Make sure you have created the ARM target (see Configuring Scratchbox for ARM)
Extract rootstrap outside Scratchbox
$ cd /scratchbox/users/username/targets/ARM $ tar zxf rootstrap_arm_07.tar.gz
Start Scratchbox
$ /scratchbox/users/username/run.sh
Select ARM target an set up environment variable
[sbox-PC: ~] > sbox-config --select-target=ARM
[sbox-ARM: ~] > export PKG_CONFIG_PATH=/usr/lib/pkgconfig
Your Scratchbox is now be set up for GUI application cross-development for the ARM target platform. Test your installation by building the Hello World application from GTK+ 2.0 Tutorial:
gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags --libs gtk+-2.0`
Copy the "helloworld" binary executable over to the target device, ensure that you have a windowing system, gtk libraries, and all dependencies installed, and run the program. It should produce a simple window with a single button on the target device screen.
NOTE It is very important that build environment libraries and includes match those on the target device. Any discrepancies can lead to errors that are very hard to track down.
Rootstrap is meant for development purposes only.
PERL5LIB
environment variable needs to be explicitely set to make debhelper scripts work.
export PERL5LIB=$PERL5LIB:/scratchbox/tools/lib/perl5/site_perl/5.8.3/Debian/Debhelper
Similar approach may alleviate many other perl problems.
SBOX_REDIRECT_BINARIES
environment variable allows redirecting the execution of binaries to elsewhere.
The format is a comma separated list of pairs:
/usr/bin/make:/scratchbox/tools/bin/make,/usr/bin/perl:/scratchbox/tools/bin/perl
Don't hesitate to ask about these things on the scratchbox-users mailing list. This is still very much under construction.