Ubuntu 18.04 Instructions:
InstallToolchainOnUbuntu18-04.md
-
Install latest Arduino IDE from arduino.cc
-
Open Terminal and execute the following command (copy->paste and hit enter):
sudo usermod -a -G dialout $USER && \ sudo apt-get install git && \ wget https://bootstrap.pypa.io/get-pip.py && \ sudo python get-pip.py && \ sudo pip install pyserial && \ mkdir -p ~/Arduino/hardware/espressif && \ cd ~/Arduino/hardware/espressif && \ git clone https://github.com/espressif/arduino-esp32.git esp32 && \ cd esp32 && \ git checkout 1.0.3 && \ git submodule update --init --recursive && \ cd tools && \ python3 get.py
-
Restart Arduino IDE
-
If you have Arduino installed to ~/, modify the installation as follows, beginning at
mkdir -p ~/Arduino/hardware
:cd ~/Arduino/hardware mkdir -p espressif && \ cd espressif && \ git clone https://github.com/espressif/arduino-esp32.git esp32 && \ cd esp32 && \ git checkout 1.0.3 && \ git submodule update --init --recursive && \ cd tools && \ python3 get.py
You most likely do not want to be here, but just in case you want to know how the sausage is made, here you go...
Check your java version by opening CMD and typing
java -version
and you should see:
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
If you see anything other than 1.8.something, remove Java then install it from:
https://www.java.com/en/download/manual.jsp
Download the Eclipse Oxygen for C Development from here:
https://www.eclipse.org/downloads/packages/release/2018-12/r
Install Eclipse on C drive if using personal
C:\eclipse\
Once the install is done, open eclipse and go to the workbench.
Open
Help->Eclipse Marketplace...
Search for Sloeber
Set the workspace to Arduino mode. In the upper right hand corner there is a button with a little yellow plus sign, and when you hover over it is says "pen Perspective". Click that button. Select Arduino.
Eclipse will restart to load the plugin.
Arduino -> Preferences
And start by removing both of the default values for private Hardware and Private libraries:
Under Private Hardware Path, select New.. and search for (where you extracted Arduino)/hardware/
Mine looks like:
C:\WPIAPPS\arduino-1.8.3\hardware\
Under Private Library path, select New.. and search for your user library directory. It is usually in (your users home)\Documents\Arduino\libraries for Windows, or (your users home)/Arduino/libraries for Unix systems. You know you have the right one if the folder contains ESP32Servo, Esp32SimplePacketComs, SimplePacketComs, EspWii and WiiChuck Directories from the library install step above. Remember the location of this folder, it will be where you clone your code in a coming step.
Mine looks like:
C:\Users\harrington\Documents\Arduino\libraries
Install Doxygen From these instructions or the direct link
Then use these instructins to set add GraphViz to the path
C:\Program Files (x86)\Graphviz2.38\bin
sudo apt install doxygen
In eclipse
Help->Eclipse Marketplace...
Search for
eclox
and install it.
Open Projects in Eclipse using the Eclipse instructions
There can be a currupted download to the Make tools, if this error comes up follow these instructions to correct it Follow the instructions here : Sloeber/arduino-eclipse-plugin#767