• Система автоматизации с открытым исходным кодом на базе esp8266/esp32 микроконтроллеров и приложения IoT Manager. Наша группа в Telegram

esp8266+dht22+blink ошибки компиляции

Сергей_Ф

Moderator
Команда форума
@Alex077
Отлично. Теперь выполняете рекомендации @CodeNameHawk и пробуете собрать. Если не получится, пробуем на компе с процом Интел и ОС Windows. И потом делаем выводы. Только не используйте нигде папки с кириллицей в именах.
 

Alex077

New member
Покажите полный лог компиляции.









In file included from /home/notebook/Arduino/DHT11nodemcu/DHT11nodemcu.ino:34:0:
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray '\302' in program
<title>blynk-library/BlynkSimpleEsp8266.h at master · blynkkk/blynk-library · GitHub</title>
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray '\267' in program
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray '\302' in program
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray '\267' in program
In file included from /home/notebook/Arduino/DHT11nodemcu/DHT11nodemcu.ino:34:0:
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:158:3: error: missing terminating ' character
<!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" data-scope-type="Repository" data-scope-id="32791821" data-scoped-search-url="/blynkkk/blynk-library/search" data-unscoped-search-url="/search" action="/blynkkk/blynk-library/search" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="&#x2713;" />
^
In file included from /home/notebook/Arduino/DHT11nodemcu/DHT11nodemcu.ino:34:0:
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:390:19: error: too many decimal points in number
v0.5.2
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:400:19: error: too many decimal points in number
v0.5.1
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:410:19: error: too many decimal points in number
v0.5.0
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:420:19: error: too many decimal points in number
v0.4.10
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:430:19: error: too many decimal points in number
v0.4.8
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:440:19: error: too many decimal points in number
v0.4.7
^

^

^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:831:149: error: expected unqualified-id before '<' token
<td id="LC21" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>ESP8266WiFi.h<span class="pl-pds">&gt;</span></span></td>
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:831:194: error: expected unqualified-id before '<' token
Несколько библиотек найдено для "BlynkSimpleEsp8266.h"
Используется: /home/notebook/Arduino/libraries/BlynkSimpleEsp8266
Не используется: /home/notebook/Arduino/libraries/blynk-library-master
<td id="LC21" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>ESP8266WiFi.h<span class="pl-pds">&gt;</span></span></td>
Не используется: /home/notebook/Arduino/libraries/blynk-library-0.5.2
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:844:100: error: 'BlynkArduinoClient' does not name a type
<td id="LC24" class="blob-code blob-code-inner js-file-line"> : public BlynkProtocol&lt;BlynkArduinoClient&gt;</td>
^
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:844:122: error: expected unqualified-id before '<' token
<td id="LC24" class="blob-code blob-code-inner js-file-line"> : public BlynkProtocol&lt;BlynkArduinoClient&gt;</td>
^
exit status 1
Ошибка компиляции для платы NodeMCU 0.9 (ESP-12 Module).
 

CodeNameHawk

Moderator
Команда форума
Попробуйте удалить папку /home/notebook/Arduino/libraries/BlynkSimpleEsp8266
и снова лог.
 

Alex077

New member
Попробуйте удалить папку /home/notebook/Arduino/libraries/BlynkSimpleEsp8266
и снова лог.
УрррАААА!!! Спасибо, спасибо, спасибо!

Archiving built core (caching) in: /tmp/arduino_cache_413267/core/core_esp8266_esp8266_nodemcu_CpuFrequency_80,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_4bf8f90687d48bde7e9bd52775386d77.a
Скетч использует 267084 байт (25%) памяти устройства. Всего доступно 1044464 байт.
Глобальные переменные используют 35400 байт (43%) динамической памяти, оставляя 46520 байт для локальных переменных. Максимум: 81920 байт.
 

CodeNameHawk

Moderator
Команда форума
В логе видно
Несколько библиотек найдено для "BlynkSimpleEsp8266.h"
Используется: /home/notebook/Arduino/libraries/BlynkSimpleEsp8266
Не используется: /home/notebook/Arduino/libraries/blynk-library-master
 

goga7615

New member
Доброго времени суток! Может и мне подскажете) Ошибка похожая, никак не могу справиться


Arduino: 1.8.16 (Mac OS X), Плата:"WeMos D1 R2 & mini, 80 MHz, 115200, 4M (3M SPIFFS)"

/private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/hardware -hardware /Users/igor_/Library/Arduino15/packages -tools /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/igor_/Library/Arduino15/packages -built-in-libraries /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/libraries -libraries /Users/igor_/Google Диск/АРДУИНО/SIM 800L/Рабочая папка sim800l/libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M3M -vid-pid=1A86_7523 -ide-version=10816 -build-path /var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285 -warnings=none -build-cache /var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_cache_616491 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.mkspiffs-0.1.2.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.esptool.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/esptool/0.4.9 -prefs=runtime.tools.esptool-0.4.9.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/esptool/0.4.9 -verbose /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/blynk-library-master/examples/Boards_WiFi/ESP8266_Standalone/ESP8266_Standalone.ino
/private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/hardware -hardware /Users/igor_/Library/Arduino15/packages -tools /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/igor_/Library/Arduino15/packages -built-in-libraries /private/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/AppTranslocation/585B62E9-4BA5-4050-9991-CBB05F62A263/d/Arduino.app/Contents/Java/libraries -libraries /Users/igor_/Google Диск/АРДУИНО/SIM 800L/Рабочая папка sim800l/libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M3M -vid-pid=1A86_7523 -ide-version=10816 -build-path /var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285 -warnings=none -build-cache /var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_cache_616491 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.mkspiffs-0.1.2.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.esptool.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/esptool/0.4.9 -prefs=runtime.tools.esptool-0.4.9.path=/Users/igor_/Library/Arduino15/packages/esp8266/tools/esptool/0.4.9 -verbose /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/blynk-library-master/examples/Boards_WiFi/ESP8266_Standalone/ESP8266_Standalone.ino
Using board 'd1_mini' from platform in folder: /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0
Using core 'esp8266' from platform in folder: /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0
Detecting libraries used...
/Users/igor_/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include -I/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10816 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266 -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/d1_mini /var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285/sketch/ESP8266_Standalone.ino.cpp -o /dev/null
Alternatives for ESP8266WiFi.h: [ESP8266WiFi@1.0]
ResolveLibrary(ESP8266WiFi.h)
-> candidates: [ESP8266WiFi@1.0]
/Users/igor_/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include -I/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10816 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266 -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/d1_mini -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src /var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285/sketch/ESP8266_Standalone.ino.cpp -o /dev/null
Alternatives for BlynkSimpleEsp8266.h: [Blynk@1.0.1]
ResolveLibrary(BlynkSimpleEsp8266.h)
-> candidates: [Blynk@1.0.1]
/Users/igor_/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include -I/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10816 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266 -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/d1_mini -I/Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src "-I/Users/igor_/Google Диск/АРДУИНО/SIM 800L/Рабочая папка sim800l/libraries/Blynk/src" /var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285/sketch/ESP8266_Standalone.ino.cpp -o /dev/null
Alternatives for version.h: []
ResolveLibrary(version.h)
-> candidates: []
In file included from /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/blynk-library-master/examples/Boards_WiFi/ESP8266_Standalone/ESP8266_Standalone.ino:40:0:
/Users/igor_/Google Диск/АРДУИНО/SIM 800L/Рабочая папка sim800l/libraries/Blynk/src/BlynkSimpleEsp8266.h:18:21: fatal error: version.h: No such file or directory
#include <version.h>
^
compilation terminated.
Используем библиотеку ESP8266WiFi версии 1.0 из папки: /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi
Используем библиотеку Blynk версии 1.0.1 из папки: /Users/igor_/Google Диск/АРДУИНО/SIM 800L/Рабочая папка sim800l/libraries/Blynk
exit status 1
Ошибка компиляции для платы WeMos D1 R2 & mini.
Неверная библиотека найдена в /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/blynk-library-master: нет заголовочных файлов (.h), найденных в /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/blynk-library-master
Неверная библиотека найдена в /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Arduino-EasyTransfer-master: нет заголовочных файлов (.h), найденных в /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Arduino-EasyTransfer-master
 

Atom

Member
...
/var/folders/d_/by4070_j7cq257dvfwzhck180000gn/T/arduino_build_127285/sketch/ESP8266_Standalone.ino.cpp -o /dev/null
Alternatives for version.h: []
ResolveLibrary(version.h)
-> candidates: []
In file included from /Users/igor_/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/blynk-library-master/examples/Boards_WiFi/ESP8266_Standalone/ESP8266_Standalone.ino:40:0:
/Users/igor_/Google Диск/АРДУИНО/SIM 800L/Рабочая папка sim800l/libraries/Blynk/src/BlynkSimpleEsp8266.h:18:21: fatal error: version.h: No such file or directory
#include <version.h>
^
compilation terminated.
...
я не специалист по всяческим блинкам, но ошибка указана и нужно проверить, почему version.h не неаходит. Хотя подозреваю, что где то имеется еще один version.h.
 

goga7615

New member
я не специалист по всяческим блинкам, но ошибка указана и нужно проверить, почему version.h не неаходит. Хотя подозреваю, что где то имеется еще один version.h.
Да, скорее всего. Попробовал на другом компе, все норм. Поэтому просто снес папку со всеми библиотеками и установил заново и все заработало.
 
Сверху Снизу