all ,

we encountered a problem during the installation of scratchbox.

the problem is we can not go over the step of "testing sbrsh" mentioned
in section 3.4 of the doc:
http://www.scratchbox.org/documentation/docbook/installdoc.html#AEN40

as the section 3.4 in the doc says, sbrsh can be tested by repeating
same steps as below:

2.5. Testing installation

The new target can be tested with a simple command-line program. Our
example program
uses GNU Autotools for detecting compilation environment. It can be
compiled by following
these steps:

1. Extract hello-world's source code from the /scratchbox/packages
directory:
[sbox-MYTARGET: ~] > tar xfz /scratchbox/packages/hello-world.tar.gz

2. Go to the created 'hello-world' directory:
[sbox-MYTARGET: ~] > cd hello-world

3.Generate the configure script, configure the program and generate its
Makefile:
[sbox-MYTARGET: ~/hello-world] > ./autogen.sh

4. Compile it:
[sbox-MYTARGET: ~/hello-world] > make

5. We should now have an executable ARM binary named 'hello'. This can
be verified with command:
[sbox-MYTARGET: ~/hello-world] > file hello
hello: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux
2.0.0, dynamically linked (uses shared libs), not stripped

6. Let's run the program:
[sbox-MYTARGET: ~/hello-world] > ./hello
Hello World!

------------------------------------------------------------
actually, in the case of emulating, we can go over all these steps; but
after we configured sbrsh by
choosing "Remote execution", we tried to test the same example as
follow:

[sbox-device_10_10_10_1: ~] >
[sbox-device_10_10_10_1: ~] > tar xfz
/scratchbox/packages/hello-world.tar.gz
[sbox-device_10_10_10_1: ~] > cd hello-world/
[sbox-device_10_10_10_1: ~/hello-world] > ./auto
autogen.sh      autom4te.cache/
[sbox-device_10_10_10_1: ~/hello-world] > ./autogen.sh
+ aclocal
/scratchbox/tools/share/aclocal/pkg.m4:5: warning: underquoted
definition of PKG_CHECK_MODULES
run info '(automake)Extending aclocal'
or see
http://sources.redhat.com/automake/automake.html#Extending%20aclocal
+ autoconf
+ autoheader
+ automake --add-missing --foreign
+ ./configure
checking for a BSD-compatible install.../scratchbox/tools/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.

*********************************************************************************************
If you meant to cross compile, use `--host'. See `config.log' for more
details.
*********************************************************************************************

[sbox-device_10_10_10_1: ~/hello-world] >
------------------------------------------

then  there are a few questions to ask.
1. what is the real meaning of that debugging information that if you
meant to cross compile, use `--host'? and how to use '--host'?

2. how to handle the problem?
the problem seems sterm from the conflict between libraries. we use iPAQ
 H5550 running Familar
0.8.2 (ip:10.10.10.1) as the target, and debian kernel 2.6.8 as the
host.

Regards,

Denise





Denise Umuhoza
Department of Computer Science
University of the Western Cape
_______________________________________________
Scratchbox-users mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to