The purpose of this Instructable is to build the Arduino IDE from GIT on a clean Windows computer. The development master branch (mainline) will be used.
A Ubuntu Instructable is located here.
Prerequisites:
Let's start!
The first step is to download ANT which will be used to build the Arduino IDE Java source.
Download ANT from: https://ant.apache.org/bindownload.cgi.
Extract the apache-ant-1.9.7-bin.zip file, for example into your Download directory.
The results should be something like this:
Downloads\apache-ant-1.9.7\bin\ant.bat
Download Cygwin:
Double click on the setup to start the installation.
Select the following packages:
Start Cygwin from the Desktop.
Java is required to run the Arduino IDE. This must be the 32 bit Java JDK, even if you're using Windows 64 bit.
Download Windows x86Java SE Development Kit 8u101 from:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Double click on the jdk-8u101-windows-i586.exe setup to start the installation.
Click 3x Next > Close.
Open a Cygwin terminal and type:
# java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) Client VM (build 25.101-b13, mixed mode)
Now you're ready to build the Arduino IDE.
1. Set JAVA_HOME path:
$ export JAVA_HOME=/cygdrive/c/PROGRA~1/Java/jdk1.8.0_101
$ export JAVA_HOME=/cygdrive/c/PROGRA~2/Java/jdk1.8.0_101
2. Check the path JAVA_HOME environment variable:
$ ls $JAVA_HOME
3. Set PATH environment variable:
$ export PATH="$JAVA_HOME/bin:$PATH"
4. Go to the build directory in the Arduino GIT checkout:
$ cd Arduino/build/
5. Build the Arduino source:
$ ../../apache-ant-1.9.7/bin/ant.bat clean dist -Dplatform=windows
...
[input] Enter version number: [1.6.11] < [Enter]
...
# Be patient!
...
BUILD SUCCESSFUL
Total time: 1 minute 27 seconds
Create a shortcut on the desktop by holding down [CTRL+SHIFT] and drag arduino.exe to the Desktop.
Double click on the shortcut on the desktop to start the Arduino IDE.
Congratulations! You've successfully built the Arduino IDE from source!
Feel free to leave a comment with feedback or your success story. :-)
Thanks!