[maemo-developers] sbox2 update

From: Laurent GUERBY laurent at guerby.net
Date: Tue Mar 13 23:26:35 EET 2007
On Tue, 2007-03-13 at 23:06 +0200, Lauri Leukkunen wrote:
> On 3/13/07, Laurent GUERBY <laurent at guerby.net> wrote:
> > On Mon, 2007-03-12 at 02:59 +0200, Lauri Leukkunen wrote:
> > $ cd ~/work/maemo/sbox2
> > $ /home/guerby/work/maemo/scratchbox/bin/sb2-build-libtool.sh
> > ...
> > Making install in .
> > make[1]: Entering directory
> > `/home/guerby/work/maemo/sbox2/libtool_build'
> > make[2]: Entering directory
> > `/home/guerby/work/maemo/sbox2/libtool_build'
> > test -z "/sb_tools/bin" || mkdir -p -- "/sb_tools/bin"
> > mkdir: cannot create directory `/sb_tools': Permission denied
> > make[2]: *** [install-binSCRIPTS] Error 1
> > make[2]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
> > make[1]: *** [install-am] Error 2
> > make[1]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
> > make: *** [install-recursive] Error 1
> 
> Hmm, something's gone wrong already before that. When you start SB2,
> what does it print out? Does your scratchbox/bin/sb2 use /bin/bash or
> /bin/sh? I changed that not too long ago to help ubuntu users who have
> dash as /bin/sh.

guerby at pc2:~/work/maemo$ head -1 scratchbox/bin/sb2
#!/bin/bash
guerby at pc2:~/work/maemo$ ./scratchbox/bin/sb2
Running scratchbox with these settings:
SBOX_LIBSB2 = /home/guerby/work/maemo/scratchbox/lib/libsb2.so
SBOX_REDIR_SCRIPTS = /home/guerby/work/maemo/scratchbox/share/scratchbox2/redir_scripts
SBOX_GCCWRAPPER = /home/guerby/work/maemo/scratchbox/bin/sb_gcc_wrapper
REDIR_LD_SO = 
REDIR_LD_LIBRARY_PATH = 
SBOX_TARGET_ROOT = /home/guerby/work/maemo
[SB2] guerby at pc2 ~/work/maemo $ exit
guerby at pc2:~/work/maemo$ cat buildroot/sb2.config 
# Scratchbox2 configuration file.
# This file works with Code Sourcery 2006q3 arm linux gnueabi toolchain.
# Modify SBOX_CPUTRANSPARENY_METHOD and SBOX_CROSS_GCC_DIR to suit your
# paths.

SBOX_TARGET_NAME=arm
SBOX_CPU=arm
SBOX_OS=none-linux-gnueabi
SBOX_CLIB=glibc
SBOX_CPUTRANSPARENCY_METHOD=/usr/bin/qemu-arm

SBOX_DEFAULT_GCC_PREFIX=arm-none-linux-gnueabi-
SBOX_TARGET_SETUP_SCRIPT=

SBOX_CROSS_GCC_NAME=arm-linux-2006q3-27
SBOX_CROSS_GCC_PREFIX_LIST=arm-linux-gnueabi-:arm-linux-:arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SUBST_PREFIX=arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SPECS_FILE=
SBOX_CROSS_GCC_DIR=/home/guerby/work/maemo/arm-lltc
SBOX_CROSS_GCC_LD_ARGS=

SBOX_HOST_GCC_NAME=host-gcc
SBOX_HOST_GCC_PREFIX_LIST=host-
SBOX_HOST_GCC_SUBST_PREFIX=
SBOX_HOST_GCC_SPECS_FILE=
SBOX_HOST_GCC_DIR=/usr/bin
SBOX_HOST_GCC_LD_ARGS=
$

> If you try to simply build and run a hello world inside sb2, does it work?

I'm a total noob here and I've never used scratchbox before, so I need
instructions for something as simple as that (at this point, I haven't
read other tutorials yet)...

Laurent



More information about the maemo-developers mailing list