-->
Page 1 of 3

Simple ESP8266 Arduino IDE Build Instructions

PostPosted: Thu Apr 09, 2015 2:13 pm
by ozayturay
To make use of new configuration settings like
Code: Select allgeneric.serial.disableDTR=true
generic.serial.disableRTS=true

I needed to build Windows version of ESP8266 Arduino IDE myself and succeeded. So I wanted to share the steps to show how easy the building process is and help people who wants to build the IDE himself/herself.

Here are simple instructions for building Windows version:

  • Download jdk-8u40-windows-i586.exe from http://www.oracle.com/technetwork/java/ ... 33151.html and install with default settings.

  • Make an enviroment variable JAVA_HOME that points to C:\Program Files (x86)\Java\jdk1.8.0_40 from computer properties.

  • Download https://cygwin.com/setup-x86.exe and install adding latest versions of git, make, mingw-gcc-core, mingw-gcc-g++, perl, zip, unzip and making sure the already default packages coreutils, gzip, tar are also selected.

  • Download http://ftp.itu.edu.tr/Mirror/Apache/ant ... .4-bin.zip and extract it's contents to folder C:\Cygwin\opt (create folder opt if not exists) and using your favourite editor (mine is NotePad++) at the end of file C:\Cygwin\home\yourwindowsusername\.bash_profile add these two lines:
    Code: Select allexport ANT_HOME=/opt/apache-ant-1.9.4
    export PATH=/opt/apache-ant-1.9.4/bin:$PATH

  • Enter Cygwin enviroment using the icon from desktop and use these commands to clone and build the source:
    Code: Select allmkdir Source
    cd Source
    git clone https://github.com/esp8266/Arduino.git
    cd Arduino/build
    ant dist

After a long downloading and building process you can find your freshly build arduino-1.6.1-windows.zip file in C:\Cygwin\home\yourwindowsusername\Source\Arduino\build\windows folder.

With your newly rebuild IDE Serial Monitor is working with DTR and RTS connected. Thanks goes to Ivan and all supporters of ESP8266 Arduino. :)

I hope it helps someone. ;)

PS: Don't forget to copy libiconv-2.dll from hardware\tools\avr\libexec\gcc\avr\4.8.1 to the root (side by side with arduino.exe) of your freshly installed arduino-1.6.1 installation. :)

Re: Simple ESP8266 Arduino IDE Build Instructions

PostPosted: Sun Apr 12, 2015 9:28 am
by AcmeUK
Why got to all this trouble when you can download a prebuilt zip file from here :- https://github.com/esp8266/Arduino

All this talk of needing to build the IDE for Windows will have new users running for the hills!

Re: Simple ESP8266 Arduino IDE Build Instructions

PostPosted: Sun Apr 12, 2015 3:01 pm
by ozayturay
Because Serial Monitor is not working with auto reset (DTR to GPIO0, RTS to REST) in the latest release for Windows (arduino-1.6.1-p1-windows.zip)

But Ivan has shown us another way to get the source compile through a CI Server which automagically builds every revision at github. So there is no need to compile manually anymore. But hey information is information. ;)

Here is the link: https://ci.appveyor.com/project/igrr/Arduino/history

Re: Simple ESP8266 Arduino IDE Build Instructions

PostPosted: Mon Apr 13, 2015 4:01 pm
by Vleis Walker
[quote="AcmeUK"]Why got to all this trouble when you can download a prebuilt zip file from here :- https://github.com/esp8266/Arduino

Hi there
Firstly, my sincere thanks to ALL involved and for the GREAT work each is doing!

Im on Win7 64b
I have followed this link and believe I have installed the s/w as required.
I also d/l the esp8266-Arduino-0.0.3.zip, unzipped it and move it to my documents/Arduino/hardware folder.
Arduino 1.6.1 and 1.6.3 were both tried.

On opening Arduino, I am able to select the ESP Generic Board, but the programmer is not in the list.

I selected an example sketch, modified it, tried to compile, but get only COMPILE ERROR in the OUTPUT window. No other text is displayed in this window.

It seems Arduino does not even attempt to compile the sketch.

Is there some environment variables I need to set?
Is there a test to verify my installation was actually correct?

I appreciate your help.
Thx