ESP8266 Support WIKI

User Tools

Site Tools


setup-osx-compiler-esp8266

**This is an old revision of the document!**

Table of Contents


Mac OSX Compiler Setups

esp-open-sdk

esp-open-sdk can be installed almost as described in Linux Compiler Setups.

Some problems have been reported if you build the toolchain in a case-insensitive filesystem. To avoid these issues create a case-sensitive volume:

hdiutil create ~/Desktop/eos.dmg -volname "esp-open-sdk" -size 10g -fs "Case-sensitive HFS+"
hdiutil mount ~/Desktop/eos.dmg
cd /Volumes/esp-open-sdk

esp-open-sdk with Brew

Dependencies

brew install gnu-sed --with-default-names
brew tap homebrew/dupes
brew install gperf
brew install grep
brew install autoconf
brew install binutils
brew install gawk
brew install wget
brew install automake
brew install libtool

binutils is needed for gobjcopy

gawk is required for overwriting the non-gnu awk in my case

If you get the error “configure: error: could not find GNU awk”, run

brew link --overwrite gawk

esp-open-sdk with MacPorts

Dependencies

sudo port install gsed gawk binutils gperf grep gettext py-serial wget

Get the compiler

git clone https://github.com/pfalcon/esp-open-sdk.git --recursive

Note the –recursive option. This will force git to initialize modules.

Patches

These needs to be applied before build.

sed -i.bak '1s/^/gettext=\'$'\n/' crosstool-NG/kconfig/Makefile
sed -i.bak -e 's/[[:<:]]sed[[:>:]]/gsed/' Makefile
sed -i.bak -e 's/[[:<:]]awk[[:>:]]/\$(AWK)/' lx106-hal/src/Makefile.am
sed -i.bak 's/AM_PROG_AS/AM_PROG_AS\'$'\nAM_PROG_AR/' lx106-hal/configure.ac
setup-osx-compiler-esp8266.1440003535.txt.gz · Last modified: 2015/08/19 16:58 by jseb