This document describes the step-by-step instructions for building a Haxe* project (OpenFL*) for Intel® x86 for the Android* platform.
Haxe is an open source programming language. While most other languages are bound to their own platform (Java* to the JVM, C# to .Net, ActionScript to the Flash* Player), Haxe is a multiplatform language.
You can use Haxe to target the following platforms:
.jsfile. You can access the typed browser DOM APIs with auto completion support and all the dependencies are resolved at compilation time.
.swffile. Haxe is compatible with Flash Player 6 to 11. Haxe offers good performance and language features to develop Flash content.
mod_nekofor Apache), and also for command-line or desktop applications, since NekoVM can be embedded and extended with some other DLL.
.phpfiles. This enables you to use a high-level strictly typed language such as Haxe while keeping full compatibility with your existing server platform and libraries.
The idea behind Haxe is to let the developer choose the best platform for a given job.
Before starting, you’ll need to download and install the following:
Note: Select the GUI version of make as well; otherwise, you will not be able to build your project using NDK.
Next, edit the environmental variables.
D:\android\, so my path is: D:\android\adt-bundle-windows-x86-20131030\sdk
NOTE: Do not end any variable with “\” , “`”, or any such special character.
Here are the steps for downloading HAXE and corresponding libraries:
E:\HaxeToolkit\haxe\and then add the path to the system PATH env.
Note: set NEKO_INSTPATH to the Neko. For example, E:\neko-2.0.0-win\ and add NEKO path to system PATH env.
Note: haxelib is part of haxe and resides in the HAXEPATH.
Note: You can install through haxelib, or you can skip this step by giving local installation directories for Android SDK, NDK, and Ant, as shown in the following screenshot.
For example, your screen will look like the following when you type haxe:
Creating a Sample Application (OpenFL)
A sample OpenFL application can be created using the following command:
>haxelib run openfl create DisplayingABitmap
The above command creates a sample project.
Building the Application for x86 for Android
The following command should be used for building/cleaning the haxe OpenFL application for x86 for Android:
>haxelib run openfl build android –DHXCPP_X86 –verbose
>haxelib run openfl clean android –DHXCPP_X86 –verbose
Configuring Haxe OpenFL for x86 for Android
The following files can bring in or add the x86 configuration settings for Android:
Output or Binaries
The final binary generates to
The libraries generate to
Praveen Kundurthy works in the Intel® Software and Services Group. He has a master’s degree in Computer Engineering. His main interests are mobile technologies, Microsoft Windows*, and game development.
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.
Notice revision #20110804