Page 4 of 8

Re: Setting up a cross compiling toolchain

Posted: Fri Feb 12, 2010 9:59 pm
by nbd
I installed Arm port of Debian Lenny with qemu from here. Then I mounted the hda.img with -o loop to my nfs export path and mounted it from the TV. Now I have gcc/gdb et.al. running from TV. (Better to exit qemu before mounting, or you will experience strange things if you modify the filesystem through the -o loop mount)

I also tried running nmap, but it says "Bus error"

Edit:

My bad. I tried running nmap under chroot, but it runs fine from the TV after I added the library paths:

Code: Select all

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/dtv/usb/sda2/armel_chroot/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/dtv/usb/sda2/armel_chroot/usr/lib

Re: Setting up a cross compiling toolchain

Posted: Sat Mar 27, 2010 4:27 pm
by arris69
xer21 wrote:ended up using ./configure --host=arm-SamyGO-linux-gnueabi

that seems to work... but I need glib2.0, i downloaded the source trying to compile using

./configure --host=arm-SamyGO-linux-gnueabi

but it fails saying "cannot run test program while cross compiling"... funnnnnnnnnnnnnn.... anyone know how to bypass that? I'm thinking maybe of just resetting up scratchbox and trying that method again, I was able to compile glib2 no problem using scratchbox, my test program worked, but I was getting Bus Error on my program, went to go mess with it again and scratch box was broken some how... haha
may you need
--build and --target to set, btw. why you don't switch to our openembedded?

arris