Make sure you have installed Haxe.
To get the latest released NME version, install via haxelib:
haxelib install nme
haxelib run nme setup
Alternative: To install the current git version:
haxelib git nme https://github.com/haxenme/nme.git
To install older NME versions:
http://nmehost.com/nme
To build Haxe applications using C++, install hxcpp via haxelib:
haxelib install hxcpp
NME comes with a custom build tool to configure the application, define the assets and manage the platform settings. The application isn't configured using a .hxml file but with a .nmml config file.
Build applications using one of the build targets:
nme test sample.nmml windows
nme test sample.nmml neko
nme test sample.nmml flash
nme test sample.nmml cpp
nme test sample.nmml android
nme test sample.nmml webos
nme test sample.nmml ios
Note:
nmeis a shortcut tohaxelib run nme
To learn NME by example, check out the sample projects. These are also included in the installation. Every sample project contains the .hx Haxe sources and the .nmml config file to build the example.