[Scratchbox-users] Scratchbox on 64-bit environment
Lauri Leukkunen
lle at rahina.org
Thu Dec 27 10:53:16 EET 2007
When you go to http://freedesktop.org/wiki/Software/sbox2 you will
notice at the very top of the page a link to http://freedesktop.org/
wiki/Software/sbox2/Maemo which is currently the best and only guide
to doing Maemo development using sb2. Maemo 4.x is not supported
because qemu is buggy.
As you may notice 64-bit non-debian distributions are not supported
by that guide. That does not mean it can't work. On a 64-bit host you
have to replace the sb2 installation procedure with:
cd sbox2
./autogen.sh
make install-multilib prefix=$HOME/scratchbox2
That will build both 32 and 64bit versions of the library.
Proceed with the rest of the non-debian section as it is. You should
not need to install apt-get for your fedora host machine as that
should be provided by the debian/etch distribution you debootstrapped
to /etch_root. It's important that you follow the guide exactly, I
can assure you that there is no other way to get a working sb2
environment for Maemo development.
As you're new to Maemo, please try to follow instructions on
maemo.org and use scratchbox 1.x. There will be a sb2 based maemo sdk
at some point available, but at the moment unless you want to help
with sb2 development, it's better to stick to what Nokia officially
supports.
/lauri
On Dec 27, 2007, at 6:45 AM, Jakov wrote:
> Rehi,
>
> I've installed sb2.
>
> $ cd sbox2
> $ ./autogen.sh
> $ ./configure --prefix=$HOME/scratchbox
> $ make install
>
> After installing arm-linux-gcc as said at http://www.linux110.com/
> bbs/thread-70392-1-1.html:
>
> $HOME/scratchbox/bin/sb2-init ARM arm-linux-gcc
>
> It said: sb2-init completed successfully, have fun!
>
> I continue to install maemo as said at readme.txt file in sb2:
>
> - Download the latest rootstrap from: http://repository.maemo.org/
> stable/chinook/armel/maemo-sdk-rootstrap_4.0_armel.tgz
>
> I get the 4.0 version instead of 3.1 as readme.txt
>
> - Extract that to $HOME/maemo-root
>
> I don't see $HOME/maemo-root/etc/apt/apt.conf - where is it? I
> go to next step:
>
> - $ cd $HOME/maemo-root
>
> - sb2-init -m maemo -t /etch_root maemo arm-linux-gcc
>
> It usually asks for the target, I really don't understand about it,
> so I set ARM as default target.
>
> -> sb2-init completed successfully, have fun!
>
> - sb2 apt-get source fontconfig
>
> (I have to install apt-get in Fedora to run this command)
>
> but it says:
>
> error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file
> or directory.
> Segmentation fault
> -------------------------------------------------------------------
>
> Now I get stuck here again. What am I doing wrong? Please help me.
> Thanks in advance.
>
>
> On Dec 27, 2007 8:31 AM, Jakov < giaodichdientu at gmail.com> wrote:
> Hi Lauri,
>
> Here is what I did to install sb2::
>
> - install glibc-devl and qemu using yum[ex]
> - install ARM-LINUX-GCC 3.3.4 Tool Chains following http://
> www.linux110.com/bbs/thread-70392-1-1.html - I got it by using google.
> (dont know if it's the right tool. I follow the readme.txt file
> attached to sb2)
>
> But I don't see any sbox_adduser or something like this when the
> script maemo-sdk-install_4.0.sh requires.
>
> I'm so confused, this is the first time I try maemo. Could you
> please give me a HowTo install step by step, please?
>
> Thank you very much!
>
> Jakov.
>
>
> Scratchbox 2 ( http://www.freedesktop.org/wiki/
> > Software/sbox2 )? It says it's 64-bit supported. I tried it but got
> > no success.
>
> How did it not work? I just tested it on x86_64 Fedora, and it works
> fine for me.
> You have to be more specific if you expect anybody to help you.
>
> /lauri
>
>
More information about the Scratchbox-users
mailing list