MADDE/Configuration

TECHNOLOGY PREVIEW

Introduction
This guide explains how to configure the development environment in MADDE and introduces the most important commands. These commands are used in the same way on all supported operating systems.

Commands "mad" and "mad-admin"

 * Basically MADDE can be used and configured by using this two basic commands with different parameters:


 * mad is used for cross-compiling and getting general information.
 * mad-admin is needed to set up and configure the development environment.

Check the configuration

 * Before it is possible to use MADDE for cross-compiling, it has to be configured correctly. By default the environment is set up for Fremantle. To check, which software versions of the Maemo OS ("target") are available, installable or set as default use the command:

mad list Targets: fremantle-qt-0942 (default) maemo412-1        (installable)


 * This means, that the Fremantle target is installed and set as default. Diablo can be installed, but is not available yet. If a target is set as default, it means that it will be used automatically for cross-compiling, if nothing else is specified.

Choose a target

 * An installed target can be set as 'default' by:

mad set


 * Besides the default option, a target can be set to be used with the parameter -t . For example:

mad -t make


 * If a target is set by the -t parameter, it will be used, regardless which target is set as default.

Install a target

 * If a target is marked as 'installable', it has to be installed, before it can be taken into use. This is done by:

mad-admin create


 * If the target is created successfully, it can be set as default or manually for each command as described before. It might be that necessary components (sysroot/toolchain) are missing. In this case the following error message will be shown:

Can not find /home/dwilms/madde_latest/.madde/0.5/cache/maemo-sdk-rootstrap_4.1.2_armel -- no such file. Please enter 'mad-admin fetch maemo-sdk-rootstrap_4.1.2_armel' to get one. Then try again.


 * Then use the following command to download the missing files:

mad-admin fetch 


 * This command downloads the file from the location specified with URL. For convenience URL aliases can be used instead of complete URLs. To list available URL_ALIASES give the 'mad-admin fetch' command without arguments:

mad-admin fetch


 * After the missing sysroot and/or toolchain have been fetched, run the command for the target installation again:

mad-admin create


 * Finally check if the target is installed by running:

'mad list'