pfalcon / esp-open-sdk

Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips
1.97k stars 624 forks source link

Build fails on Mac OSX #157

Open hansamann opened 8 years ago

hansamann commented 8 years ago

I've followed the build procedure as much as possible, built a case-sensitive file system, etc... but I get this:

make -C crosstool-NG -f ../Makefile _ct-ng ./bootstrap Running autoconf... Done. You may now run: ./configure ./configure --prefix=pwd checking build system type... x86_64-apple-darwin15.4.0 checking host system type... x86_64-apple-darwin15.4.0 checking for a BSD-compatible install... /usr/bin/install -c checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking whether sed understands -r -i -e... no configure: error: make[1]: * [_ct-ng] Error 1 make: * [crosstool-NG/ct-ng] Error 2

Any ideas?

eadf commented 8 years ago

I managed to build esp-open-sdk on OSX (macports) with these build instructions.

jellyfishcoder commented 8 years ago

Install home-brew, with /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" then run brew update. Now, run brew install gnu-sed --with-default-names and brew install help2man. If it says your missing any other packages, just try brew install package name.

mcauser commented 8 years ago

May be unrelated... I was having trouble getting make clean to run on OS X. Was failing at step make -C crosstool-NG clean. Had to cd into esp-open-sdk/crosstool-NG and run ./configure to regenerate it's Makefile as it has hard coded paths to binaries.

Why? It was after a Boxen upgrade, which moved Homebrew to a different folder. (/opt/boxen/homebrew/ -> /usr/local/Cellar) After that, make clean and make worked again.

Also had to run unset CFLAGS.