[maemo-developers] sbox2 update

From: Lauri Leukkunen lle at rahina.org
Date: Wed Mar 14 22:27:45 EET 2007
On 3/14/07, Laurent GUERBY <laurent at guerby.net> wrote:
> After that:
> bash: cd: /usr/share/glib-2.0/gettext: No such file or directory
> Outside of sb2 I do have the mentionned directory:
> guerby at pc2:~/work/maemo/scratchbox$  ls -l /usr/share/glib-2.0/gettext
> total 8
> -rwxr-xr-x 1 root root 1988 2007-03-09 14:52 mkinstalldirs
> drwxr-xr-x 2 root root 4096 2007-03-14 20:58 po
> I tried to rebuild hello within SB2 and it didn't work anymore:
> [SB2] guerby at pc2 ~/work/maemo/tmp $ gcc -o hello hello.c
> hello.c:2:19: error: stdio.h: No such file or directory
> hello.c: In function 'main':
> hello.c:3: warning: incompatible implicit declaration of built-in
> function 'printf'
> I'm really confused at how the thing is supposed to be working :).
> I noticed that some scratchbox.sb2cache and  buildroot.sb2cache
> directories appeared.

Those are mapping cache directories for the sb2 environments you've
used. It seems you have/had two of them ;)

You always have to start sb2 in the buildroot directory. Otherwise it
won't setup the paths correctly, I suspect that may explain why
hello.c doesn't compile. I'll make a note to add a check for this.

You can safely delete the sb2cache directories, new ones will be
created as needed.

Could you retry after making sure you start sb2 like this:

cd ~/buildroot

If it doesn't work, maybe we could continue this over irc? I'm lle2 on freenode.


More information about the maemo-developers mailing list