[maemo-developers] [maemo-developers] Howto: using two scratchbox environments

From: Aaron Levinson alevinsn at aracnet.com
Date: Sun Jan 14 05:54:28 EET 2007
The standard maemo 3.0 SDK installation documentation states that it is 
recommended that previous versions of the SDK be uninstalled before 
installing the new SDK.  But, it seems reasonable that developers will 
want to maintain both the 2.0/2.1 and 3.0 installations due to the need to 
build packages for both the 770 and N800.  No information is provided for 
how to do this, but something in the scratchbox installation document 
alludes to how to make this happen.

Move your existing scratchbox installation to another directory and also
untar the R4 scratchbox files to a different directory.  On my system, I
am using /scratchbox_insts/<version number>/scratchbox for the different
versions of scratchbox.  At this point, you should no longer have a
/scratchbox directory on your system.

Whenever you want to use a particular version of scratchbox, create a
/scratchbox symbolic link using ln -s that links to the correct scratchbox
directory.  Make sure to run /scratchbox/sbox_ctl stop (if scratchbox is
running) before deleting the symbolic link in order to switch to a 
different installation.

It would be nice to see this mentioned in the maemo 3.0 installation
documentation, because until we have maemo 2.2, developers may find
themselves needing to switch back and forth between the 2.0/2.1 and 3.0
SDKs.

Aaron


More information about the maemo-developers mailing list