Crosscompile problem
Hi,
i want to cross compile a C-Program (host=i386, target=armel). The
program is:
#######################
#include <stdio.h>
#include <glib.h>
int main()
{
printf("Hello world\n");
return (0);
}
#######################
I have installed the cross-compiler from emdebian testing (gcc 4.4) and
also installed a debian squeeze chroot with armel packages.
When i try to compile my program, i got the following error:
$ /usr/bin/arm-linux-gnueabi-gcc `pkg-config
--define-variable=prefix=/home/test/armel_devel/usr --libs --cflags
glib-2.0`
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../../arm-linux-gnueabi/bin/ld: skipping incompatible /home/test/armel_devel/usr/lib/libglib-2.0.so when searching for -lglib-2.0
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../../arm-linux-gnueabi/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../../arm-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
Any ideas what i have to do?
Cheers,
Tom
--
M.Sc. Thomas Bechtold
Development Engineer
Ammonit Gesellschaft für Messtechnik mbH
Wrangelstraße 100
10997 Berlin
T: +49(0) 30 600 31 88 - 15
F: +49(0) 30 600 31 88 - 10
E: tb@ammonit.com
-----------------------------------------------------------
Ammonit Gesellschaft für Messtechnik mbH
10997 Berlin, Wrangelstraße 100
Amtsgericht Berlin-Charlottenburg
HRB: 31099
VAT-ID No. DE 136 567 928
Geschäftsführer: Vincent Camier
Internet: www.ammonit.com
Reply to: