Scratchbox is a cross-compilation toolkit designed to make embedded Linux application development easier. It also provides a full set of tools to integrate and cross-compile an entire Linux distribution.
Questions tagged [scratchbox]
23 questions
9
votes
1 answer
qemu: uncaught target signal 11 (Segmentation fault)
Inside scratch box i am performing git clone, getting following error:
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Error:
/pi$ sb2 -t rfs-raspbian -eR git clone git://github.com/danwinship/glib.git
Cloning into…

Allan
- 2,971
- 4
- 24
- 28
8
votes
2 answers
How to create a directory in a makefile when mkdir -p is not available?
I have a makefile which does the usual directory creation:
$(Release_target_OBJDIR)/%.o: %.cpp
mkdir -p $(dir $@)
$(COMPILE.cpp) $< $(CFLAGS) $(INCLUDES) -o $@
Unfortunately when I run this under scratchbox2 the mkdir -p command always…

Simon Elliott
- 2,087
- 4
- 30
- 39
5
votes
2 answers
Python on Arm, Illegal Instructions
I am trying to compile Python 3.2 for an ARM920T (architecture 4T) but I am getting some strange errors.
I am compiling Python inside a Scratchbox environment, configured to use the following compiler: "gcc version 4.3.3 (Sourcery G++ Lite…

Daniel
- 428
- 3
- 8
4
votes
2 answers
Scratchbox2 returns "Implicit declaration of function getline", among other weird behaviour
I'm trying to cross compile my application for the maemo environment (GNU).
When compiling the application normally, everything works fine, however when it's compiled through sb2 the following warning comes up:
$ sb2 gcc -D_GNU_SORCE -o app -Wall…

Jaime Borondo
- 421
- 1
- 6
- 14
4
votes
1 answer
Scons in Scratchbox: Can't find g++
I've been using sbox with a Make-based codebase with no problems. Now
I'm using a scons-based codebase, and am getting some odd problems.
It seems that within scratchbox, scons can't find g++. For example, it
attempts to execute things like:
o hello…

Ray2k
- 374
- 1
- 6
- 13
4
votes
1 answer
Cross-compiling mono for proprietary ARM device
Currently at work, we are developing software for some arm-elf little endian devices. We are currently doing this in plain C, which is a pain. Luckily for us the company who creates the devices provide c++ support, unfortunatly that same company has…

Robin Heggelund Hansen
- 4,906
- 6
- 37
- 54
3
votes
1 answer
My scratchbox 2 installation is using an ARM gcc build to compile for the ARM target. How do I fix this?
I'm using scratchbox 2, the maemo development cross-compilation environment. When compiling code for the ARM target, I think scratchbox 2 is using the native ARM gcc compiler, which runs very slow on my x86 machine.
I think it should be using an ARM…

Neil
- 24,551
- 15
- 60
- 81
3
votes
1 answer
Cross compile when using apt-get
I am currently using Scratchbox2 for cross compiling. I can do ./configure, make install from my toolchain prompt:
[SB2 mapping-armv7 armv7]
Is there a way to cross compile while using apt-get install?

cube
- 1,774
- 4
- 23
- 33
2
votes
0 answers
mono ./configure --host=arm-linux?
i tried some cross-compiling mono (2.8) with the ./configure --host=arm-linux option, running on an x86 ubuntu.
sometimes i get this error:
checking for arm-linux-gcc... gcc
checking for C compiler default output file name...
configure: error: in…

Gobliins
- 3,848
- 16
- 67
- 122
2
votes
0 answers
scratchbox arm cannot execute c compiled program
Hi i set up a scratchbox with a arm-linux-gnueabi-gcc toolchain and qemu emulator.
When i want to run inside scratchbox [sbox-arm:/]> a ./configure script (from a mono tarball) i am getting the error:
checking whether the c compiler works...…

Gobliins
- 3,848
- 16
- 67
- 122
2
votes
1 answer
Using OSSOLOG in scratchbox (maemo development)
I am building a sharing-service for maemo5. In the example plugin they are calling ULOG_INFO_L at a lot of places, so I have adopted this for my service as well. The problem is that I can't find where the messages goes.
Reading osso-log.h I should…

Tobias R
- 91
- 6
2
votes
1 answer
maemo scratchbox compiler error with gtk+-2.0
I'm trying to follow section 3.4.2, starting on page 31 of this manual. However, as I have configured my target to be DIABLO_ARMEL rather than DIABLO_X86, I have gotten different results for this command:
[sbox-DIABLO_X86: ~] > gcc -Wall -g…

stanigator
- 10,768
- 34
- 94
- 129
1
vote
0 answers
Error : conflicting types for scandir and scandir64 while installing scratchbox 2 for LTP
I followed the steps for installing scratch box 2;
git clone http://anongit.freedesktop.org/git/sbox2.git
./autogen.sh
cd sbox2
./configure --prefix=/opt/sb2
make install
But while installing, it shows conflicts for scandir and scandir64.
It…

Nitin
- 11
- 1
1
vote
0 answers
Compiling shared libraries into executable?
I'm trying to cross compile some software I developed for my Nokia N900. It has an ARM7 processor, and is running Maemo (Based on Debian Etch and Lenny I believe).
To cross compile I am using Scratchbox, which has worked fine in the past for other…

BugHunterUK
- 8,346
- 16
- 65
- 121
1
vote
2 answers
is it binary compatible for emdebian and android?
the Android ndk is hard to use for the old autoconf based code, so i employed scratchbox2/emdebian to have a complete build environment. can i build a shared library in emdebian (arch is armel) and then use it in android?

Dyno Fu
- 8,753
- 4
- 39
- 64