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.
Create a new folder named 'haxe'.
Checkout the latest source files into that folder:
svn checkout http://haxe.googlecode.com/svn/trunk/ haxe
Nagivate to the haxe folder where you just checked out the repository.
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)
- Using your favorite SVN client, checkout haxe sources from http://haxe.googlecode.com/svn/trunk/
- Install MSVC version of OCaml: http://caml.inria.fr/pub/distrib/
- Currently the last available OCaml MSVC version is 3.11
- Install any version of Visual C++ (Express): http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express
- Install GNU make for Windows: http://gnuwin32.sourceforge.net/packages/make.htm
- Install GNU CoreUtils for Windows: http://gnuwin32.sourceforge.net/packages/coreutils.htm
- Make sure both are available from command line by adding GnuWin32/bin to your PATH
- Install Flexlink: http://alain.frisch.fr/flexdll.html
- 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 Makefile.win libs
- make MSVC=1 MSVC_OUTPUT=0 -j4 -f Makefile.win haxe
- make MSVC=1 MSVC_OUTPUT=0 -j4 -f Makefile.win 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)