[maemo-developers] sbox2 update
From: Lauri Leukkunen lle at rahina.orgDate: Wed Mar 14 00:07:31 EET 2007
- Previous message: sbox2 update
- Next message: sbox2 update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 3/13/07, Laurent GUERBY <laurent at guerby.net> wrote: > 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 These look just fine. Even stranger. > [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= That's ok too. > > 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)... Just put: #include <stdio.h> int main(int argc, char **argv) { printf("Hello, world!\n"); return 0; } into a hello.c, start sb2 and run: gcc -o hello hello.c after which: ./hello It should say: Hello, world! Oh, and please update your sbox2 first, I fixed some stuff ;) Simply git pull from the repo, ./autogen.sh && ./configure etc. etc. /lauri
- Previous message: sbox2 update
- Next message: sbox2 update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]