Skip to content
Kristing edited this page Sep 13, 2010 · 14 revisions

Scratchbox

Xephyr :1 -screen 800x480x16 -dpi 96 -ac & 
/scratchbox/login
export DISPLAY=:1
dbus-uuidgen
/usr/bin/af-sb-init.sh start 
af-sb-init.sh stop
sb-conf killall
af-sb-init.sh start
./run

run-standalone.sh python2.5 main.py

Installation of gtk for python on maemo

echo deb http://repository.maemo.org/extras/ diablo free non-free >> /etc/apt/sources.list
apt-get update
apt-get install python2.5-gtk2 python2.5-gstreamer

vill man köra kartkomponenten behövs xml och hildon också

apt-get install python2.5-xml python2.5-hildon

To share files between the host computer and scratchbox use this folder (replace $user with your username):

/scratchbox/users/$user/home/$user/

Fix threads in scratchbox

In file /scratchbox/users/<username>/targets/DIABLO_ARMEL.config

change the row to:

SBOX_CPUTRANSPARENCY_METHOD=/scratchbox/devkits/cputransp/bin/qemu-arm-eabi-sb2

Work with two terminals:

Terminal Host

cd /scratchbox/users/$user/home/$user/

First time download all code:

git clone git@github.com:Loffe/errors-included.git

Second time download (and merge) updates:

git pull

Always:

# hack on code
git commit -am "no comment"
git push

Clone this wiki locally