• Уважаемые посетители сайта esp8266.ru!
    Мы отказались от размещения рекламы на страницах форума для большего комфорта пользователей.
    Вы можете оказать посильную поддержку администрации форума. Данные средства пойдут на оплату услуг облачных провайдеров для сайта esp8266.ru
  • Система автоматизации с открытым исходным кодом на базе esp8266/esp32 микроконтроллеров и приложения IoT Manager. Наша группа в Telegram

Не компилируется Web_base

amatron

New member
Не компилируется Web_base:

Код:
c:/Espressif/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -Os -ffunction-sections -fno-jump-tables -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals    -I include -I ./ -I ../include -I ../include/  -o .output///obj/spi.o -c spi.c
In file included from ../include/driver/spi.h:6:0,
                 from spi.c:1:
spi.c: In function 'spi_slave_init':
../include/osapi.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ICACHE_RODATA_ATTR'
  static const char flash_str[] ICACHE_RODATA_ATTR = fmt; \
                                ^
spi.c:229:5: note: in expansion of macro 'os_printf'
     os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
     ^
../include/osapi.h:49:32: error: 'ICACHE_RODATA_ATTR' undeclared (first use in this function)
  static const char flash_str[] ICACHE_RODATA_ATTR = fmt; \
                                ^
spi.c:229:5: note: in expansion of macro 'os_printf'
     os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
     ^
../include/osapi.h:49:32: note: each undeclared identifier is reported only once for each function it appears in
  static const char flash_str[] ICACHE_RODATA_ATTR = fmt; \
                                ^
spi.c:229:5: note: in expansion of macro 'os_printf'
     os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
     ^
../include/osapi.h:50:17: error: 'flash_str' undeclared (first use in this function)
  os_printf_plus(flash_str, ##__VA_ARGS__); \
                 ^
spi.c:229:5: note: in expansion of macro 'os_printf'
     os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
     ^
../Makefile:142: recipe for target '.output///obj/spi.o' failed
mingw32-make[1]: Leaving directory 'C:/Espressif/workspace/Web_base/driver'
mingw32-make[1]: *** [.output///obj/spi.o] Error 1
C:/Espressif/workspace/Web_base/Makefile:131: recipe for target '.subdirs' failed
mingw32-make.exe: *** [.subdirs] Error 2

22:43:14 Build Finished (took 20s.119ms)
 

pvvx

Активный участник сообщества
Не компилируется Web_base:
Код:
mingw32-make[1]: Leaving directory 'C:/Espressif/workspace/Web_base/driver'
В новой версии для UDK v1.0.8 (03.02.2015) директории Web_base/driver уже нет. Это значит, что вы используете старую версию с новой сборкой UDK от SHERTS
 

Прапор

New member
pvvx, помогите пожалуйста разобраться с похожей проблемой :

Код:
03:37:39 **** Build of configuration Default for project Web_Base ****
mingw32-make.exe -f C:/Espressif/examples/esp8266web-0.4.9/Makefile all
mingw32-make[1]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app'
mingw32-make[2]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib'
mingw32-make[3]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/system'
mingw32-make[3]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/system'
mingw32-make[3]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/phy'
mingw32-make[3]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/phy'
mingw32-make[3]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/pp'
mingw32-make[3]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/pp'
mingw32-make[3]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/wpa'
mingw32-make[3]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/wpa'
mingw32-make[3]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip'
mingw32-make[4]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/api'
mingw32-make[4]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/api'
mingw32-make[4]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/app'
mingw32-make[4]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/app'
mingw32-make[4]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/core'
mingw32-make[5]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/core/ipv4'
mingw32-make[5]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/core/ipv4'
mingw32-make[4]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/core'
mingw32-make[4]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/netif'
mingw32-make[4]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip/netif'
mingw32-make[3]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib/lwip'
mingw32-make[2]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/sdklib'
mingw32-make[2]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/user'
mingw32-make[2]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/user'
mingw32-make[2]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/driver'
mingw32-make[2]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/driver'
mingw32-make[2]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/mdbtcp'
mingw32-make[2]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/mdbtcp'
mingw32-make[2]: Entering directory 'C:/Espressif/examples/esp8266web-0.4.9/app/web'
mingw32-make[2]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app/web'
------------------------------------------------------------------------------
../Makefile:192: recipe for target '.output/eagle/bin/eagle.app.v6.bin' failed
process_begin: CreateProcess(NULL, C:/Python27/python.exe C:\Espressif\examples\esp8266web-0.4.9\esptool.py elf2image -o ../bin/ -ff 80m -fm qio -fs 4m .output/eagle/image/eagle.app.v6.out, ...) failed.
mingw32-make[1]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app'
make (e=2): Не удается найти указанный файл.

mingw32-make[1]: *** [.output/eagle/bin/eagle.app.v6.bin] Error 2
C:/Espressif/examples/esp8266web-0.4.9/Makefile:240: recipe for target '.subdirs' failed
mingw32-make.exe: *** [.subdirs] Error 2

03:37:42 Build Finished (took 2s.790ms)
Что ему не нравится ?
 

Прапор

New member
Наверно проект скопирован, а не импортирован в "Workspace" Eclipse.
Как импортировать указано в описании работы с UDK.
Папку "esp8266web-0.4.9" скопировал в заданную папку "Workspace" ("C:\Espressif\examples"), а потом в Эклипсе импортировал по инструкции - в "Project Explorer" появился проект "Web_Base". Далее в "Make Target" жму "all" или "clean" и потом "all" - никак :(

Удалил всё и сделал установку "с нуля". При первой же компиляции выдаёт это:
Код:
------------------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Espressif\examples\esp8266web-0.4.9\esptool.py", line 22, in <module>
  import serial
ImportError: No module named serial
../Makefile:192: recipe for target '.output/eagle/bin/eagle.app.v6.bin' failed
mingw32-make[1]: *** [.output/eagle/bin/eagle.app.v6.bin] Error 1
mingw32-make[1]: Leaving directory 'C:/Espressif/examples/esp8266web-0.4.9/app'
C:/Espressif/examples/esp8266web-0.4.9/Makefile:240: recipe for target '.subdirs' failed
mingw32-make.exe: *** [.subdirs] Error 2

06:05:53 Build Finished (took 2m:12s.756ms)
 
Последнее редактирование:

Tomahawk

New member
Компилируется всё, научитесь работать с Eclipse для начала ) В Makefile можно найти строчку ESPTOOL ?= C:/Python27/python.exe $(CWD)esptool.py, а у вас его нет 100%.
 
Последнее редактирование:
Сверху Снизу