I have a large application I have written. I can successfully compile the application in the following scenarios:
- in a native compilation for the i386 host running Ubuntu 12.04
- natively on a PandaBoard running Ubuntu 12.04 (this takes a long time)
- using Qemu and a chroot on the host PC for the armhf PandaBoard target (this takes a very long time)
I would like to cross-compile the application on the i386 host to run on a target such as the PandaBoard to complete builds in a timely fashion. So far attempts made using the arm-linux-gnueabihf tool chain in the repositories has produced binaries that do not run correctly. At this stage, I have no plans to package the software.
What is the recommended way to achieve a successful cross-compile?
If you're still having problems, you'll need to elaborate. What does ldd say? What did you see from strace that took you to your conclusion? See if you can reduce your problem to a simple test case which should clearly work, and present the steps you are taking in detail.
– Robie Basak Jul 05 '12 at 22:03