Reply
Thread Tools
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#1
I've installed scratchbox, but I'm unsure about what to do next. Are there howtos about basic setup?

I've run sb-menu:

Compiler: cs2005q3.2-glibc-arm
Architecture: arm
Sub-architecture: arm
C-library: glibc
Devkits: debian-etch cputransp debian-lenny
CPU-transparency: scratchbox/devkits/cputransp/bin/qemu-arm-0.8.0-m2

But I'm not really sure that I've chosen the correct options. All I want to do is compile apps for the N8* platform and recompile the kernel.

Thanks for pointers!
 
Posts: 191 | Thanked: 29 times | Joined on Sep 2007 @ Ottawa
#2
Jeff,

there are 2 parts to scratchbox. 1) scratchbox 2) Nokia binaries.
I found this to be quite a bit of help:
http://maemo.org/development/sdks/maemo-3-x--bora-.html

Once you get #2 installed you should see the message:
Installation was successful!
----------------------------

IMPORTANT! Please read this.

You now have the maemo 3.1 'bora' installed on your computer.
You can now start your maemo SDK session with /opt/scratchbox//login and
then select your target with 'sb-conf select SDK_ARMEL' for armel
target or 'sb-conf select SDK_X86' for i386 target.

If you have any problems with targets' package databases, you can try
running 'fakeroot apt-get -f install' on your scratchbox target.
This command will try to fix any problems with the package database.


Nokia EUSA binaries
-------------------

The package maemo-explicit is a metapackage of Nokia EUSA licensed
binaries which can be installed to scratchbox targets. It is highly
recommended to install this package on both targets to ensure a fully
working system.

If you want to install these, login to scratchbox (see commands above)
and run the command 'fakeroot apt-get install maemo-explicit' for both
armel (SDK_ARMEL) and i386 (SDK_X86) targets.

Happy hacking!

The key here is to use: /opt/scratchbox//login
Then select either SDK_X86 or SDK_ARMEL (this is the one to use if you are making apps for the N800).

I have been quite impressed with how good scratchbox environment is. I was able to pull down TCL source (which I needed for expect) and just type:
./configure
make

And it all made!

I hope this gets you started.

Craig...
__________________
N800, Think Outside Kbd, 8GB SDHC Card (OCZ, ext2), and 8GB SD Card (Patriot formatted as VFAT)
Zaurus SL-6000, IR Keyboard, 1GB SD Card
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#3
Thanks for the info!
__________________
My Mac Mini runs Kubuntu
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#4
Two more questions:

1. How do you stop one target to switch to another?

I get the error: "You must close your other Scratchbox sessions first"

2. Can scratchbox support more than one SDK? I downloaded the 4.0 installer and have it working (I think...I'm compiling & running programs, but have no chinook to test them yet) and I thought I would install 3.X to play with in the meantime. However the 3.1 sdk installer tells me that I don't have the proper toolchains installed.
__________________
My Mac Mini runs Kubuntu
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#5
Woohoo!

I blundered ahead and installed an extra scratchbox with the 3.1 bora SDK and have compiled working software for the N800. I started out with my favorite command line ftp app, ncftp. It's installed on my N800 and working fine

Just to /usr/local/bin - no deb packaging yet. It's a baby-step, but now the entire debian arm repository is fair game

Can you telll I'm excited?
__________________
My Mac Mini runs Kubuntu
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:34.