Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Building the source for Android

There are a few ways to compile for a target arm device. Only armhf (not armel) is supported at this time.

Native Compile

If you have a target device, you should be able to compile directly on the ARM device. This will be probably be slow, given the relative desktop/embedded CPU speeds these days.

Emulated Compile

This method uses QEMU ARM emulation and an armhf chroot on a amd64/ia32 system to produce armhf binaries. This is useful in packaging, but is still slower than a cross compile.

There are many ways to do this, depending on your workflow.

You can set up a qemu pbuilder armhf setup to do compile with. This is typically useful for packaging when you only have a desktop computer.

Alternatively, you can set up an armhf chroot on your device. Typically this involves getting an armhf base image, and installing qemu emulation. This guide gives an overview of how to get emulation in the armhf chroot: http://wiki.debian.org/QemuUserEmulation

Native Compile or Emulated Compile Instructions

From within the armhf system:

Cross Compile

This method uses a cross compiler (e.g., the g++-arm-linux-gnueabihf ubuntu package) to produce armhf code. This is typically the quickest way to compile and run code, and is well suited for a development workflow.


Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013