『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1001|回复: 1

[求助] esphome编译时出错

[复制链接]

23

主题

243

帖子

2321

积分

金牌会员

Rank: 6Rank: 6

积分
2321
金钱
2078
HASS币
0
发表于 2022-10-20 21:59:08 | 显示全部楼层 |阅读模式
最近用esphome编译时出错,望大神指教解决方法
WARNING Calling ESPHome with the configuration before the command is deprec
ated and will be removed in the future. 
WARNING Please instead use:
WARNING    esphome compile pz.yaml
INFO Reading configuration pz.yaml...
INFO Generating C++ source...
INFO Compiling app...
********************************************************************************

Obsolete PIO Core v5.2.5 is used (previous was 6.1.4)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/page ... o-cores-in-a-system
********************************************************************************

Processing pz (board: esp12e; framework: arduino; platform: platformio/espressif
8266 @ 3.2.0)
--------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html

PLATFORM: Espressif 8266 (3.2.0) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 3.30002.0 (3.0.2)
- tool-esptool 1.413.0 (4.13)
- toolchain-xtensa 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ off, Compatibility ~ soft
Library Manager: Installing ottowinter/ESPAsyncTCP-esphome @ 1.2.3
Warning! Please upgrade to the PlatformIO Core 6
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
Warning! Please upgrade to the PlatformIO Core 6
Found 35 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <DNSServer> 1.1.1
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
Building in release mode
Compiling .pioenvs\pz\src\esphome\components\captive_portal\captive_portal.cpp.o

Compiling .pioenvs\pz\src\esphome\components\ota\ota_backend_arduino_esp32.cpp.o

Compiling .pioenvs\pz\src\esphome\components\ota\ota_backend_arduino_esp8266.cpp
.o
Compiling .pioenvs\pz\src\esphome\components\ota\ota_backend_esp_idf.cpp.o
In file included from src\esphome\components\captive_portal\captive_portal.h:10,

                 from src\esphome\components\captive_portal\captive_portal.cpp:3
:
src/esphome/components/web_server_base/web_server_base.h:9:10: fatal error: ESPA
syncWebServer.h: No such file or directory

***************************************************************************
* Looking for ESPAsyncWebServer.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ESPAsyncWebServer.h"
* Web  > https://registry.platformio.org/ ... ESPAsyncWebServer.h
*
***************************************************************************

    9 | #include <ESPAsyncWebServer.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs\pz\src\esphome\components\captive_portal\captive_portal.cpp.o] Err
or 1
========================== [FAILED] Took 7.95 seconds ==========================
求解决方法,不胜感激

回复

使用道具 举报

23

主题

243

帖子

2321

积分

金牌会员

Rank: 6Rank: 6

积分
2321
金钱
2078
HASS币
0
 楼主| 发表于 2022-10-20 22:01:40 | 显示全部楼层
用vscode编译也是出现相同问题,望指教
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 09:27 , Processed in 0.317982 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表