Building haxe with make

This tutorial assumes you have installed haxe previously (with the automatic installer for example).
After building haxe from source we'll replace the haxe executable and the std folder there.

General instructions:

Create a new folder named 'haxe'.
md haxe

Checkout the latest source files into that folder:
svn checkout haxe

Nagivate to the haxe folder where you just checked out the repository.
cd haxe

Build haxe with 'make"

If you get errors run make clean and then make again

Navigate to the folder where you previously installed haxe and replace the haxe executable and std folder with the ones you just created.
Run haxe to make sure everything is ok:

It should tell you that it is the latest haxe version (2.11 at the time of writing)

Detailed instructions for Windows:

- Using your favorite SVN client, checkout haxe sources from

- Install MSVC version of OCaml:
- Currently the last available OCaml MSVC version is 3.11

- Install any version of Visual C++ (Express):

- Install GNU make for Windows:
- Install GNU CoreUtils for Windows:
- Make sure both are available from command line by adding GnuWin32/bin to your PATH

- Install Flexlink:
- Again make sure that flexlink.exe is available from command line

- Run Visual Studio command prompt OR start a normal command prompt and first run "Microsoft Visual Studio X/VC/vcvarsall.bat"
- Navigate to where you checked out the haxe sources and run the following commands:

  • make MSVC=1 MSVC_OUTPUT=0 -j4 -f libs
  • make MSVC=1 MSVC_OUTPUT=0 -j4 -f haxe
  • make MSVC=1 MSVC_OUTPUT=0 -j4 -f tools

- You should find your haxe.exe in your haxe source folder
- After updating from SVN, you only have to run the second make command again (unless any of the libs changed)

version #15550, modified 2012-10-10 17:28:10 by jan_flanders