![]() |
Maemo 5 development without scratchbox
Me being a Fedora person, the Debian orientation of everything from playing with the device to developing for it kind of killed my initial enthusiasm. But, as soon as I changed perspective and saw this as a challenge to stitch together my own development environment on my Fedora machine without the use of scratchbox or Ubuntu VMware images, things got better.
The result is a working toolchain with an x86 compiler that generates ARM code. Since this set-up is not for the faint of heart, I won't go into all the details since I butchered some of the Debian package mechanics just to get things to work, but I hope someone might find this interesting and experiment without feeling the need to use something just because you're told to. The base of everything is the rootstrap that's available for download. There is an x86 and an ARM version and I installed them on my Fedora machine and my N900 respectively. Just from this you can chroot to it and play around with a working compiler. Code:
chroot /path/to/rootstrap /bin/sh The rootstrap is very basic and leaves you with a /.dev directory thats empty so you need to at least create /dev/null. Code:
mkdir /dev Code:
mount --bind /dev /path/to/rootstrap/dev Now I need the contents of /lib and /usr/lib from my N900 to be able to link my applications and this is just a matter or copying from the device to my machine. The headers needed to compile are easily installed using apt-get. Finally, the trickiest part, is to get the toolchain with its compiler and linker to work inside the chroot:ed haven. I tinkered a bit, got some suggestions from people and ended up with these variables in my Makefile: Code:
TOOLCHAIN = /scratchbox/compilers/cs2007q3-glibc2.5-arm7 I'm sure I've overlooked some important step but this is how I remember it. Most things are solved either with Google, the nice people in #maemo-devel or just being curious. |
Re: Maemo 5 development without scratchbox
Interesting. Anybody finding this might also be interested in http://talk.maemo.org/showthread.php?t=34924 for some info on Scratchbox on Fedora.
|
Re: Maemo 5 development without scratchbox
This is very nice.
However, why did you bother? Doesn't MADDE work with Fedora? |
Re: Maemo 5 development without scratchbox
Quote:
And after looking through the installer scripts that wanted me to disable SELinux, let the script modify my groups and, in general, boss me around and use magic to make things happen, almost any other solution felt more interesting. I haven't looked at MADDE yet, in any environment, so I have no idea about its Fedora status. |
Re: Maemo 5 development without scratchbox
Quote:
|
Re: Maemo 5 development without scratchbox
|
Re: Maemo 5 development without scratchbox
|
All times are GMT. The time now is 08:27. |
vBulletin® Version 3.8.8