Page 1 of 1
[已解决] 如何正确的关闭IPV6功能?
Posted: Thu Sep 16, 2021 2:18 am
by PzOeeF
在配置中设置关闭IPV6

- 1.png (11.07 KiB) Viewed 4789 times
但是在编译时出现很多错误:

- 2.png (44.47 KiB) Viewed 4789 times
是否还有其它开关需要设置?
Re: 如何正确的关闭IPV6功能?
Posted: Thu Sep 16, 2021 3:28 am
by ESP_ICY
出现这个报错应该是你编译的例程需要 IPV6 功能但是你关闭了,如果没有用到 IPV6 相关功能建议在程序中删掉相关涉及 IPV6 的函数。
Re: 如何正确的关闭IPV6功能?
Posted: Thu Sep 16, 2021 4:07 am
by ESP_Gargamel
在工程目录下的 CMakeLists.txt 的 include 那行之前添加:
Code: Select all
set(EXCLUDE_COMPONENTS "coap" "asio")
不要编译这两个 components
Re: 如何正确的关闭IPV6功能?
Posted: Thu Sep 16, 2021 7:35 am
by PzOeeF
ESP_Gargamel wrote: ↑Thu Sep 16, 2021 4:07 am
在工程目录下的 CMakeLists.txt 的 include 那行之前添加:
Code: Select all
set(EXCLUDE_COMPONENTS "coap" "asio")
不要编译这两个 components
很好的解决了问题