Skip to content

Improves the readability of the documentation. #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 51 additions & 62 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,54 @@
## Arduino_IDE_builder.bash

Living in the land of ARM I found a need to write this

Although it was written for ARM primarily, I do believe it will work on any Linux box.
And with a little help Mac && Windows too...

What it does is use github to get all the various programs.
Compiles them and builds the IDE in 1 simple script .. :)~

Normally, Update_git is the only 1 needed to be un-rem'd
The rest are mainly for if your playing with the sources, and my debug, lol.

### Usage
```
sudo ./Arduino_IDE_builder.bash
```

### To run after building is done
```
sudo Arduino/build/linux/work/./arduino
```

### To install
```
sudo Arduino/build/linux/work/./install.sh
```

I've tested it on a Raspberry Pi2, Odroid C1 and Debian 8.20 i386, and all seems well after dependency are meet.

```
apt-get install -y mercurial subversion build-essential gperf bison ant texinfo zip automake flex libusb-dev libusb-1.0-0-dev libtinfo-dev pkg-config libwxbase3.0-dev libtool
```

The latest Raspbian already has Java 8, so no problems there.
If it is not already installed, like on the Odroid and Debian i386, I did it as follows

```
sudo sh -c 'echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer
```


Not all options are fully implemented yet,
But Silence_is_Golden is enabled as it sed's through toolchain-avr on the initial git clone to silence it and make things easier to follow.
So to do/un-do it, just 'rm -rf Arduino/build/toolchain-avr' and re-run the script.
You can save some download time by coping all the files for toolchain-avr downloads over as git clone is working if you have them.


Ya'll Have A Great Day

ShorTie






### Old
# Arduino_IDE_builder.bash

This repository contains a script for building the Arduino IDE and toolchain from source on Linux. Although it was written for ARM platforms primarily, such as the Raspberry Pi or ODroid, I do believe it will work on any Linux box (and possibly with a little help Mac and Windows too). The script has been tested on Raspberry Pi 2, Odroid C1 and Debian 8.20 i386, and all seems well.

It works by retrieving the souces for the various projects from GitHub and building everything locally.

## Instructions

1. Install prerequisites:
```
apt-get install -y mercurial subversion build-essential gperf bison ant texinfo zip automake flex libusb-dev libusb-1.0-0-dev libtinfo-dev pkg-config libwxbase3.0-dev libtool
```

Java is also required, and is included with Raspian on the Raspberry Pi. For ODroid and other platforms without
Java, you will need to install it:
```
sudo sh -c 'echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer
```

1. Clone this repository:
```
git clone https://github.com/ShorTie8/Arduino_IDE.git
```

1. Execute the build script. (This can take many hours):
```
cd Arduino_IDE
sudo ./Arduino_IDE_builder.bash
```

1. Either run directly with:
```
sudo Arduino/build/linux/work/./arduino
```

1. Or install as a local user with (installing as root doesn't work):
```
Arduino/build/linux/work/./install.sh
```

## Notes

* Not all options are fully implemented yet, but `Silence_is_Golden` is enabled as it `sed`'s through `toolchain-avr` on the initial git clone to silence it and make things easier to follow; to do/undo it, just `rm -rf Arduino/build/toolchain-avr` and re-run the script.

* You can save some download time by coping all the files for `toolchain-avr` downloads over as git clone is working if you have them.

## Old

A Debian .deb builder for ARM Boards

Expand Down