Using Debian Rootstrap

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.

1. Installing instructions

  1. Make sure you have created the ARM target (see Configuring Scratchbox for ARM)

  2. Extract rootstrap outside Scratchbox

    $ cd /scratchbox/users/username/targets/ARM $ tar zxf rootstrap_arm_07.tar.gz

  3. Start Scratchbox

    $ /scratchbox/users/username/

  4. Select ARM target an set up environment variable

    [sbox-PC: ~] > sbox-config --select-target=ARM [sbox-ARM: ~] > export PKG_CONFIG_PATH=/usr/lib/pkgconfig

  5. 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`

  6. 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.

2. Various tricks