The goal: To have a nice VM (more lightweight than the Maemo SDK VMs offered online) that one can SSH into and build packages for Maemo 4 and Maemo 5:
- Get the Debian i386 netinst CD image from http://www.debian.org/CD/netinst/
- Create a new VirtualBox VM (Name: MaemoSDK, Operating System: Linux, Version: Debian) - the default size (8 GB) should be okay, less is also okay
- Go to Settings, Storage, IDE Controller, select the .iso you downloaded in step 1
- Power up the VM, select "Install" in the menu
- Set the hostname to "maemosdk"
- Use an empty root password (you can use "sudo" from your user)
- Full name for the new user: Maemo Developer
- Username for the new user: user
- Password for the new user: maemo
- Use the default options for partitioning, and wait until the base system is installed
- Select the "SSH Server" option when the Debian Installer offers it
- Install GRUB into the MBR of the VM
- Go to the Maemo 5 SDK Download Page on Nokia Developer
- From the SDK Download page, get the Scratchbox installer script (maemo-scratchbox-install_5.0.sh) and the SDK installer script (maemo-sdk-install_5.0.sh):
http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh
http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
- Login to your new VM, then wget the two scripts above
- sudo sh maemo-scratchbox-install_5.0.sh
- sudo sh maemo-scratchbox-install_5.0.sh -u user
- Log out and log back in again
- sh maemo-sdk-install_5.0.sh
- When asked, I chose Full + Development packages, but feel free to chose a more minimal variant (in that case, you might have to install -dev packages later on as build-dependencies)
As for building gPodder from source in this SDK, here are the instructions:
- scratchbox
- vi /etc/apt/sources.list # then add these entries:
deb http://repository.maemo.org/extras-devel fremantle free non-free
deb-src http://repository.maemo.org/extras-devel fremantle free - fakeroot apt-get install python2.5 python-feedparser python-mygpoclient python-dev maemo-optify
- git clone git://github.com/gpodder/gpodder.git
- cd gpodder
- git checkout origin/maemo-5
- dpkg-buildpackage -rfakeroot -S -sa -I.git -i.git # for the source upload
- dpkg-buildpackage -rfakeroot -b # for the binary to test locally
To get files out of the SDK without setting up fancy SSH stuff, you can also just use netcat (on the target: nc -l 9999 | tar xzv, on the source: tar czv /path/to/files/ | nc a.b.c.d 9999).
To upload files to Maemo Extras, follow the instructions at Uploading to Extras.
Keine Kommentare:
Kommentar veröffentlichen