I have the exact same question Luckily I'm one step further; look up page 60 in the book "Pro Linux Embedded Systems", for instance on books.google.com, and follow the instructions there.
Basically, you need install proper ARM libraries from somewhere. There does not seem to be any pre-built Ubuntu packages, so you need to do that manually. From ARM you can get pre-build disk images with base Linux systems, which incidentally includes ARM versions of some common system libraries. The steps I took to get it to work are
- Download a filesystem image from http://www.arm.com/community/softwar...ment/linux.php (I used the minimal ARMv5T one, filename filesystem_bin_armv5t_min.cramfs)
- Mount the image
- Copy libraries
$ sudo mkdir /mnt/tmp
$ sudo mount -o loop -t cramfs filesystem_bin_armv5t_min.cramfs /mnt/tmp/
- Test QEMU by running one of the ARM binaries from the image
$ sudo mkdir -p /usr/gnemul/qemu-arm
$ sudo cp -a /mnt/tmp/lib/ /usr/gnemul/qemu-arm
Unfortunately it's way past my bedtime, so this is as far I've come One glaring problem that needs to be solved for me (since this will be deployed on some dev-servers) is that you should not need super-user privileges to run ARM code. If you make more progress than this please post updates!
<fails, it's an ARM binary>
$ sudo qemu-arm /mnt/tmp/bin/ls
Edit: However, if you've succeeded in cross-compiling an ARM binary you probably already have these libraries installed somewhere. If so, you could probably just use the "-L" switch and point to them.