maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Scratchbox help (https://talk.maemo.org/showthread.php?t=11451)

JeffElkins 2007-11-07 18:23

Scratchbox help
 
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!

cvmiller 2007-11-08 02:01

Re: Scratchbox help
 
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...

JeffElkins 2007-11-08 14:05

Re: Scratchbox help
 
Thanks for the info!

JeffElkins 2007-11-10 19:18

Re: Scratchbox help
 
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.

JeffElkins 2007-11-10 20:48

Re: Scratchbox help
 
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?


All times are GMT. The time now is 06:45.

vBulletin® Version 3.8.8