Open aadityadengle opened 7 years ago
https://github.com/esp8266/esp8266-wiki/tree/master/sdk should contain the right version of the SDK (among others). In my case, the code builds and runs, but there are still some memory leak issues, so please let me know if you get it working.
This is what I am getting on setup failure....
Cloning into 'esp-open-sdk'... remote: Counting objects: 506, done. Receiv: Total 506 (delta 0), reused 0 (delta 0), pack-reused 506 eceiving objects: 100% (506/506), 172.01 KiB | 291.00 KiB/s ing objects: 100% (506/506), 323.66 KiB | 291.00 KiB/s, done. Resolving deltas: 100% (291/291), done. Checking connectivity... done. Submodule 'crosstool-NG' (https://github.com/jcmvbkbc/crosstool-NG) registered for path 'crosstool-NG' Submodule 'esp-open-lwip' (https://github.com/pfalcon/esp-open-lwip) registered for path 'esp-open-lwip' Submodule 'esptool' (https://github.com/themadinventor/esptool) registered for path 'esptool' Submodule 'lx106-hal' (https://github.com/tommie/lx106-hal) registered for path 'lx106-hal' Cloning into 'D:/eink1/tools/esp-open-sdk/crosstool-NG'... Cloning into 'D:/eink1/tools/esp-open-sdk/esp-open-lwip'... Cloning into 'D:/eink1/tools/esp-open-sdk/esptool'... Cloning into 'D:/eink1/tools/esp-open-sdk/lx106-hal'... Submodule path 'crosstool-NG': checked out '37b07f6fbea2e5d23434f7e91614528f839db056' Submodule path 'esp-open-lwip': checked out '8c39d2179a273553466043f388772abb6251a4ca' Submodule path 'esptool': checked out '9dfcb350e1a91bb4641f725fc6c2f126791013ce' Submodule path 'lx106-hal': checked out 'e4bcc63c9c016e4f8848e7e8f512438ca857531d' make -C crosstool-NG -f ../Makefile _ct-ng make[1]: Entering directory
/d/eink1/tools/esp-open-sdk/crosstool-NG'
./bootstrap
Running autoconf...
Done. You may now run:
./configure
./configure --prefix=pwd
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking whether sed understands -r -i -e... yes
checking whether ln -s works... no, using cp -p
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for gobjcopy... no
checking for objcopy... objcopy
checking for absolute path to objcopy... /mingw/bin/objcopy.exe
checking for gobjdump... no
checking for objdump... objdump
checking for absolute path to objdump... /mingw/bin/objdump.exe
checking for greadelf... no
checking for readelf... readelf
checking for absolute path to readelf... /mingw/bin/readelf.exe
checking for gperf... gperf
checking for absolute path to gperf... /bin/gperf.exe
checking for bison... bison
checking for flex... flex
checking for makeinfo... makeinfo
checking for cut... cut
checking for stat... stat
checking for readlink... readlink
checking for wget... wget
checking for tar... tar
checking for gzip... gzip
checking for bzip2... bzip2
checking for help2man... help2man
checking for gpatch... no
checking for patch... patch
checking for absolute path to patch... /bin/patch.exe
checking for bash >= 3.1... /bin/bash
checking for GNU awk... /bin/gawk
checking for GNU make >= 3.80... /bin/make
checking whether /bin/make sets $(MAKE)... yes
checking for make 3.81... yes
checking for GNU libtool >= 1.5.26... /mingw/bin/libtool
checking for GNU libtoolize >= 1.5.26... /mingw/bin/libtoolize
checking for GNU automake >= 1.10... /mingw/bin/automake
checking for the type used in gperf declarations... size_t
checking for xz... xz
checking for cvs... cvs
checking for svn... svn
checking for inline... inline
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether gettext is declared... yes
checking for library containing bindtextdomain... -lintl
checking ncurses/ncurses.h usability... yes
checking ncurses/ncurses.h presence... yes
checking for ncurses/ncurses.h... yes
checking for library containing initscr... -lncursesw
checking for library containing tgetent... none required
configure: creating ./config.status
config.status: creating Makefile
make MAKELEVEL=0
make: Entering directory /d/eink1/tools/esp-open-sdk/crosstool-NG' SED 'ct-ng' SED 'scripts/crosstool-NG.sh' SED 'scripts/saveSample.sh' SED 'scripts/showTuple.sh' GEN 'config/configure.in' GEN 'paths.mk' GEN 'paths.sh' DEP 'nconf.gui.dep' In file included from nconf.gui.c:8:0: nconf.h:27:21: fatal error: ncurses.h: No such file or directory compilation terminated. DEP 'nconf.dep' In file included from nconf.c:13:0: nconf.h:27:21: fatal error: ncurses.h: No such file or directory compilation terminated. DEP 'lxdialog/yesno.dep' DEP 'lxdialog/util.dep' DEP 'lxdialog/textbox.dep' DEP 'lxdialog/menubox.dep' DEP 'lxdialog/inputbox.dep' DEP 'lxdialog/checklist.dep' DEP 'mconf.dep' DEP 'conf.dep' BISON 'zconf.tab.c' GPERF 'zconf.hash.c' LEX 'zconf.lex.c' DEP 'zconf.tab.dep' CC 'zconf.tab.o' In file included from zconf.tab.c:2525:0: confdata.c: In function 'conf_split_config': confdata.c:928:28: error: too many arguments to function 'mkdir' if (stat(path, &sb) && mkdir(path, 0755)) { ^ In file included from c:\mingw\include\unistd.h:56:0, from zconf.lex.c:802, from zconf.tab.c:2523: c:\mingw\include\io.h:516:38: note: declared here _CRTIMP __cdecl __MINGW_NOTHROW int mkdir (const char *); ^ In file included from zconf.tab.c:2527:0: symbol.c: At top level: symbol.c:9:19: fatal error: regex.h: No such file or directory compilation terminated. make: *** [zconf.tab.o] Error 1 make: *** [build-lib-kconfig] Error 2 make: *** [build] Error 2 make: Leaving directory
/d/eink1/tools/esp-open-sdk/crosstool-NG'
make[1]: [_ct-ng] Error 2
make[1]: Leaving directory `/d/eink1/tools/esp-open-sdk/crosstool-NG'
make: [crosstool-NG/ct-ng] Error 2
cp: cannot stat esp_iot_sdk_v1.0.1/include/c_types.h.orig': No such file or directory Cloning into 'esptool-ck'... remote: Counting objects: 594, done. Receiving objects: 100% (594/594), 92.01 KiB | 145.00 KiB/s 594 ceiving objects: 100% (594/594), 228.20 KiB | 145.00 KiB/s, done. Resolving deltas: 100% (338/338), done. Checking connectivity... done. cc -std=gnu99 -Os -Wall -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm -DWINDOWS -DVERSION=\"0.4.11-1-g3152622\" -c -o argparse/argparse.o argparse/argparse.c make: cc: Command not found make: *** [argparse/argparse.o] Error 127 fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git sed: preserving permissions for
./sed001800': Permission denied
sed: preserving permissions for ./sed001788': Permission denied sed: preserving permissions for
./sed006064': Permission denied
sed: preserving permissions for ./sed010440': Permission denied sed: preserving permissions for
./sed012256': Permission denied
sed: preserving permissions for ./sed009548': Permission denied CC user/cgiwifi.c make: /d/eink1/tools/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc: Command not found make: *** [build/user/cgiwifi.o] Error 127 make -C mkespfsimage make[1]: Entering directory
/d/eink1/mkespfsimage'
cc -I../lib/heatshrink -std=gnu99 -c -o main.o main.c
make[1]: cc: Command not found
make[1]: [main.o] Error 127
make[1]: Leaving directory `/d/eink1/mkespfsimage'
make: [mkespfsimage/mkespfsimage] Error 2.`
Hi, did you try to delete the folder and retry ? I just tried again the script from scratch and it works on my computer.
Also, are you on Linux or Windows, the path c:\mingw\include\unistd.h:56:0
is confusing
Hi, I have done it fresh for several times, but no success. I am running it on Windows and using MingGW for making. Will you please, post your procedure and tools used at your end.
The procedure I am using is listed here, and I tested the script against Linux Debian but not Windows/WingGW
By the way I took a closer look to your report and the error you are getting fatal error: ncurses.h: No such file or directory compilation terminated
make me think that you are missing ncurse-dev library to compile the SDK. It seems to be named libncursesw-devel
under Cygwin.
All required libraries are listed here
I have tried to make it with latest sdk as sdk 1.0.1 is currently not available. Unfortunately the attempt fails. Do you have any update on latest sdk, or have any source to sdk 1.0.1?