Go Down

Topic: Compiling Arduino Source (Read 323 times) previous topic - next topic


Feb 18, 2015, 05:45 am Last Edit: Feb 18, 2015, 05:47 am by Virtronics
Hi All, we thought we would look at compiling the Arduino source. This webpage explains the process: https://code.google.com/p/arduino/wiki/BuildingArduino

Here is a Youtube video.

However, the process is not easy to follow. What is a Java JDK (is this eclipse?) and where is it found. What is meant by "Of the packages" and where are the defaults found? How do you change the JAVA_HOME directory? Has anyone managed to compile the Arduino source and how hard was it? Any easy to follow steps would be much appreciated.

On Windows, you'll need Cygwin, a Java JDK, and ant.

Cygwin is downloadable from http://www.cygwin.com/ or specifically: http://www.cygwin.com/setup.exe

Of the packages, begin with the defaults, and add:

git - used for version control
make, gcc-mingw, and g++ - used to build arduino.exe (this will also pull in gcc-core)
perl - use this version, activestate or other distros have trouble
unzip, zip - for dealing with archives
Included in the defaults, but make sure:

coreutils (or textutils), gzip, tar
Not required but useful:

openssh - command line ssh client
nano - handy/simple text editor
And be sure to leave the option selected for 'unix line endings'

Download and install ant. Add the apache-ant-xxx\bin directory to your path.

Download and install a Java JDK and point the JAVA_HOME environment variable to its root directory. An error message that reads "Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar" means you need to set JAVA_HOME to your JDK (not JRE) installation.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131