Skip to content

Commit

Permalink
Update InstallEclipse.md
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus authored Jan 22, 2020
1 parent 2b70d5a commit a09b0fa
Showing 1 changed file with 1 addition and 184 deletions.
185 changes: 1 addition & 184 deletions InstallEclipse.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,187 +28,4 @@ You are done, do not continue, go here:

# HARD MODE

## Personal Computer install Linux (Unsupported)

Ubuntu 18.04 Instructions:

[InstallToolchainOnUbuntu18-04.md](InstallToolchainOnUbuntu18-04.md)

Ubuntu 16.04 Instructions:
Installation instructions for Debian / Ubuntu OS
=================================================

- Install latest Arduino IDE from [arduino.cc](https://www.arduino.cc/en/Main/Software)
- Open Terminal and execute the following command (copy->paste and hit enter):

```bash
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`:

```bash
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
```


## END Optional
-----



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...

# Make Sure you have Java 8, *not 9, 10, 11 or 12*

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

![Select this java on windows](/docs/whichJavaWindows.png)

## Install Eclipse and the Sloeber plugin (If the computer doesn't already have it)

Download the Eclipse Oxygen for C Development from here:

[https://www.eclipse.org/downloads/packages/release/2018-12/r](https://www.eclipse.org/downloads/packages/release/2018-12/r)

![Select this Eclipse](/docs/whichEclpse.png)

Install Eclipse on C drive if using personal

```
C:\eclipse\
```

Once the install is done, open eclipse and go to the workbench.

![alt text](/docs/openWorkspaceOnR.png)
![alt text](/docs/goToWorkspace.png)

Open

```
Help->Eclipse Marketplace...
```

Search for Sloeber

![alt text](/docs/installSloeber.png)

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.

#### Open the Arduino Preferences:

```
Arduino -> Preferences
```

![alt text](/docs/ArduinoPreferences.png)

And start by removing both of the default values for private Hardware and Private libraries:

![alt text](/docs/removePrivatePaths.png)

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
```
![alt text](/docs/setPrivateFields.png)

# Doxygen and GraphViz
### Windows Doxygen and GraphViz

[Install Doxygen From these instructions](http://www.doxygen.nl/download.html) or [the direct link](http://doxygen.nl/files/doxygen-1.8.15-setup.exe)

and [GraphViz from here](https://graphviz.gitlab.io/_pages/Download/Download_windows.html)

Then use [these instructins]( https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/) to set add GraphViz to the path

```
C:\Program Files (x86)\Graphviz2.38\bin
```

### Ubuntu Doxygen and GraphViz

```
sudo apt install doxygen
```
## After the native Doxygen, install the plugin

In eclipse

```
Help->Eclipse Marketplace...
```

Search for

```
eclox
```

and install it.

# Setup your project

[Open Projects in Eclipse using the Eclipse instructions](https://github.com/WPIRoboticsEngineering/RobotInterfaceBoard/blob/master/UseEclipse.md)


# Troubleshooting

## arduinoPlugin\tools\make\make not found in PATH

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 : https://github.com/Sloeber/arduino-eclipse-plugin/issues/767



I am almost sure you do not want this, but in case you are curious how those bundles are created in the first place you can look at [hardMode.md](hardMode.md)

0 comments on commit a09b0fa

Please sign in to comment.