Skip to content

Instantly share code, notes, and snippets.

@AutomationD
Last active August 29, 2015 14:18
Show Gist options
  • Save AutomationD/acc17595cea56e295db7 to your computer and use it in GitHub Desktop.
Save AutomationD/acc17595cea56e295db7 to your computer and use it in GitHub Desktop.
Install Sming
# Prerequisites:
# Xcode
# Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/dupes
brew install binutils coreutils automake wget gawk libtool gettext gperf gnu-sed --with-default-names grep
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
sudo hdiutil create ~/Documents/case-sensitive.dmg -volname "case-sensitive" -size 10g -fs "Case-sensitive HFS+"
sudo hdiutil mount ~/Documents/case-sensitive.dmg
cd /Volumes/case-sensitive
git clone https://github.com/pfalcon/esp-open-sdk
cd esp-open-sdk
# Building sdk (it will take a while)
make STANDALONE=y
mv -r /Volumes/case-sensitive/esp-open-sdk /opt/esp-open-sdk
#DRAFT
# MacOS / Linux
cat << 'EOF' >> ~/.bash_profile
export SMING_HOME="/Users/dmitry/dev/Sming/Sming"
export ESP_HOME="/opt/esp-open-sdk"
EOF
source ~/.bash_profile
Install Chocolatey first:
```powershell
# Powershell - run as Administrator
Set-ExecutionPolicy RemoteSigned -force
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
```
Add a repository
```
choco sources add -name kireevco -source 'https://www.myget.org/F/kireevco-chocolatey/'
```
Then install Sming
```powershell
# Powershell - run as Administrator
choco install sming -y
```
It will install:
- Java Runtime 8
- Eclipse C/C++
- Unofficial Espressif Development Kit for Windows
- Sming
If for some reason you don't want Eclipse, UDK, mingw and Environment configured just run:
```cmd
choco install sming.core -y
```
Optionally install Sming Examples:
```powershell
# Run as Administrator
choco install sming.examples -y
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment