ESP8266 Support WIKI

User Tools

Site Tools


setup-osx-compiler-esp8266

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
setup-osx-compiler-esp8266 [2014/12/31 13:57]
george-hopkins created
setup-osx-compiler-esp8266 [2017/03/13 22:41]
polarstate [Dependencies]
Line 7: Line 7:
   hdiutil create ~/​Desktop/​eos.dmg -volname "​esp-open-sdk"​ -size 10g -fs "​Case-sensitive HFS+"   hdiutil create ~/​Desktop/​eos.dmg -volname "​esp-open-sdk"​ -size 10g -fs "​Case-sensitive HFS+"
   hdiutil mount ~/​Desktop/​eos.dmg   hdiutil mount ~/​Desktop/​eos.dmg
-  cd /Volumes/eos-open-sdk+  cd /Volumes/esp-open-sdk 
 + 
 +===== esp-open-sdk with Brew =====
  
 ==== Dependencies ==== ==== Dependencies ====
Line 15: Line 17:
   brew install gperf   brew install gperf
   brew install grep   brew install grep
 +  brew install autoconf
 +  brew install binutils
 +  brew install gawk
 +  brew install wget
 +  brew install automake
 +  brew install libtool
 +  brew install help2man
 +
 +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
 +  ​
 +If you get the error "​./​zconf.hash.c:​167:​1:​ error: conflicting types for '​kconf_id_lookup'"​
 +
 +  brew uninstall gperf
 +  ​
 +see: https://​github.com/​pfalcon/​esp-open-sdk/​issues/​236 for reference
 +===== 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.txt · Last modified: 2017/03/13 22:41 by polarstate