How do I cross-compile my application for Ubuntu 12.04 armhf architecture on a Ubuntu 12.04 i386 host?

Posted by Jonathan Cave on Ask Ubuntu See other posts from Ask Ubuntu or by Jonathan Cave
Published on 2012-05-02T19:53:32Z Indexed on 2013/10/22 10:15 UTC
Read the original article Hit count: 286

Filed under:
|
|

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?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about arm