Error compiling webServer sample in ESP8266_RTOS_SDK

JackTech
Posts: 1
Joined: Sat Apr 09, 2016 7:48 pm

Error compiling webServer sample in ESP8266_RTOS_SDK

Postby JackTech » Sat Apr 09, 2016 7:56 pm

Good afternoon everyone!

I was trying to compile the webserver included in the sample directory of the official repo, but an error doesn't allow me to go on with it.
I'm using Ubuntu 14.04.2, and the xtensa toolchain has been correctly installed.
Thanks for the support! :D


Code: Select all

alle@alleUbuntu:~/ESP8266_RTOS_SDK/examples/websocket_demo$ ./gen_misc.sh
gen_misc.sh version 20150911

SDK_PATH:
/home/alle/ESP8266_RTOS_SDK

BIN_PATH:
/home/alle/ESP8266_BIN

Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue:
y

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: use boot_v1.2+ by default
boot mode: new

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
0
ignore boot
generate bin: eagle.flash.bin+eagle.irom0text.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
2
spi speed: 40 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
0
spi mode: QIO

STEP 5: choose spi size and map
    0= 512KB( 256KB+ 256KB)
    2=1024KB( 512KB+ 512KB)
    3=2048KB( 512KB+ 512KB)
    4=4096KB( 512KB+ 512KB)
    5=2048KB(1024KB+1024KB)
    6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):
0
spi size: 512KB
spi ota map:  256KB + 256KB

start...

make -C user clean;  make -C websocket clean;
make[1]: ingresso nella directory "/home/alle/ESP8266_RTOS_SDK/examples/websocket_demo/user"
rm -f -r .output/eagle/debug
make[1]: uscita dalla directory "/home/alle/ESP8266_RTOS_SDK/examples/websocket_demo/user"
make[1]: ingresso nella directory "/home/alle/ESP8266_RTOS_SDK/examples/websocket_demo/websocket"
rm -f -r .output/eagle/debug
make[1]: uscita dalla directory "/home/alle/ESP8266_RTOS_SDK/examples/websocket_demo/websocket"
rm -f -r .output/eagle/debug
make[1]: ingresso nella directory "/home/alle/ESP8266_RTOS_SDK/examples/websocket_demo/user"
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I /home/alle/ESP8266_RTOS_SDK/include -I /home/alle/ESP8266_RTOS_SDK/extra_include -I /home/alle/ESP8266_RTOS_SDK/include/espressif -I /home/alle/ESP8266_RTOS_SDK/include/lwip -I /home/alle/ESP8266_RTOS_SDK/include/lwip/ipv4 -I /home/alle/ESP8266_RTOS_SDK/include/lwip/ipv6 -I /home/alle/ESP8266_RTOS_SDK/include/nopoll -I /home/alle/ESP8266_RTOS_SDK/include/spiffs -I /home/alle/ESP8266_RTOS_SDK/include/ssl -I /home/alle/ESP8266_RTOS_SDK/include/json user_main.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections  -DICACHE_FLASH   -I include -I ./ -I ../include -I /home/alle/ESP8266_RTOS_SDK/include -I /home/alle/ESP8266_RTOS_SDK/extra_include -I /home/alle/ESP8266_RTOS_SDK/include/espressif -I /home/alle/ESP8266_RTOS_SDK/include/lwip -I /home/alle/ESP8266_RTOS_SDK/include/lwip/ipv4 -I /home/alle/ESP8266_RTOS_SDK/include/lwip/ipv6 -I /home/alle/ESP8266_RTOS_SDK/include/nopoll -I /home/alle/ESP8266_RTOS_SDK/include/spiffs -I /home/alle/ESP8266_RTOS_SDK/include/ssl -I /home/alle/ESP8266_RTOS_SDK/include/json  -o .output/eagle/debug/obj/user_main.o -c user_main.c
make[1]: xtensa-lx106-elf-gcc: comando non trovato
make[1]: *** [.output/eagle/debug/obj/user_main.o] Errore 127
make[1]: uscita dalla directory "/home/alle/ESP8266_RTOS_SDK/examples/websocket_demo/user"
make: *** [.subdirs] Errore 2

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

【Feedback】Re: Error compiling webServer sample in ESP8266_RTOS_SDK

Postby ESP_Rubin » Fri Jul 01, 2016 10:13 am

please try to my steps:
SDK_PATH:
/home/rubin/Desktop/8266_SDK/RTOS/ESP8266_RTOS_SDK

BIN_PATH:
/home/rubin/Desktop/8266_SDK/RTOS/ESP8266_RTOS_BIN

Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue:
y

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: use boot_v1.2+ by default
boot mode: new

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
1
generate bin: user1.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
2
spi speed: 40 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):

spi mode: QIO

STEP 5: choose spi size and map
0= 512KB( 256KB+ 256KB)
2=1024KB( 512KB+ 512KB)
3=2048KB( 512KB+ 512KB)
4=4096KB( 512KB+ 512KB)
5=2048KB(1024KB+1024KB)
6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):
2
spi size: 1024KB
spi ota map: 512KB + 512KB

start...

Who is online

Users browsing this forum: No registered users and 288 guests