Setup Windows

Create native Windows desktop applications with Lime and OpenFL by compiling to C++.

Automatic Install

Open a command-prompt or terminal and run the following command:

lime setup windows

Manual Install

In order to build C++ applications for Windows, you must have a compatible version of Visual Studio C++ installed on your system.

Currently, Lime requires a version of Visual Studio capable of targeting Win32. For newer versions of Visual Studio, this requires the “Windows Desktop” version of the software.

You can only target Windows from a Windows system right now. If you are interested in contributing to cross-desktop builds to Windows, please open a topic on the forums.

Build & Run

To compile a Windows .exe file, run lime build windows. Add the -debug option to create a build that can connect to the HXCPP debugger. Add the -release option to create a release build.

To compile and launch a Windows .exe file with one command, run lime test windows.

Note: The first time that you compile a project for C++, it will take a noticably long time. However, compiling the same project again should be significantly faster because parts of your code that have not changed do not need to be recompiled. To force all of code to be recompiled for C++, use the -clean option.


If you encounter any problems when setting up Lime for targeting Windows, please visit the forums.

Improve this page