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?