Windows
macOS / Linux
Windows
macOS:
Linux: Ensure GCC/G++ is installed (Ubuntu 22.04+, Debian 12+, ArchLinux).
This will install dependencies and configure environment variables. Restart your terminal after completion.
By default, this builds the host target on your development machine.
Use the -p option to cross‑compile for a different platform.
| Windows | axmol -p win32 |
| UWP | axmol -p winuwp |
| Linux | axmol -p linux |
| macOS x64 | axmol -p osx -a x64 |
| macOS arm64 | axmol -p osx -a arm64 |
| iOS (simulator) | axmol -p ios -a x64 -sdk sim |
| iOS (device) | axmol -p ios -a arm64 -c |
| tvOS (simulator) | axmol -p tvos -a arm64 -sdk sim |
| tvOS (device) | axmol -p tvos -a arm64 -c |
| Android APK | axmol -p android -a arm64 |
| Android AAB | axmol -p android -a arm64 -aab |
| WASM | axmol -p wasm |
| WASM64(requires v3) | axmol -p wasm64 |
-p <platform>
Specify the target platform, e.g. win32, linux, osx, ios, android, wasm, etc.
-a <arch>
Specify the target architecture, e.g. x64, arm64. This is especially important on multi‑architecture platforms such as macOS, iOS, tvOS, and Android.
-c
Generate IDE project files (e.g. Visual Studio .sln or Xcode .xcodeproj). For iOS/tvOS real device builds this flag is mandatory because code signing is required.
-sdk <name>
Specify the SDK type, e.g. sim for simulator builds.
-aab
Generate an Android AAB package (required by Google Play). By default, APK is generated.
-O<n>
Specify the optimization level for builds:
Axmol CLI covers all build needs for most platforms.
For Windows / Linux / macOS (simulator), IDEs are optional.
For iOS/tvOS real devices, IDEs are required because builds must be code‑signed in Xcode.
Visual Studio (Windows)
Run axmol -c, then open the generated solution file:
Xcode (macOS/iOS/tvOS)
Run axmol -p osx/ios/tvos -c, then open the generated .xcodeproj
⚠️ For iOS/tvOS device builds, you must open the project in Xcode and configure signing manually.
Android Studio
Run axmol -p android -c, then open proj.android
Useful for CI/CD workflows:
To generate an AAB instead of an APK, simply add the -aab option.
Minimal workflow is just three steps:
Everything else is optional or advanced.
For more common build issues, please check:
Axmol FAQ – Building