idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

teddyzheng
Posts: 11
Joined: Tue Aug 22, 2023 3:06 am

idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

Postby teddyzheng » Tue Sep 19, 2023 9:34 am

看起来像是去检验组件的完整性以及更新版本,过一会儿编译有好了,能给他关了吗?不要去校验,直接编译

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

Postby ESP_Penguin_Helper » Tue Sep 19, 2023 10:03 am

请问你编译的是哪个 examples 吗?运行 idf.py build 会直接编译,本身是不需要联网的。去连接网络应该是缺失了某个组件所以在下载。可能是在项目的 CMakeList.txt 中包含了没有安装的组件,所以 IDF 会去下载没有安装的组件。你可以检查一下是否有组件缺失,可以自行手动安装组件。

teddyzheng
Posts: 11
Joined: Tue Aug 22, 2023 3:06 am

Re: idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

Postby teddyzheng » Tue Sep 19, 2023 10:33 am

ESP_Penguin_Helper wrote:
Tue Sep 19, 2023 10:03 am
请问你编译的是哪个 examples 吗?运行 idf.py build 会直接编译,本身是不需要联网的。去连接网络应该是缺失了某个组件所以在下载。可能是在项目的 CMakeList.txt 中包含了没有安装的组件,所以 IDF 会去下载没有安装的组件。你可以检查一下是否有组件缺失,可以自行手动安装组件。
没有包含未下载的组件,已经发现好多次了,比如:现在编译OK,然后代码随便改动什么内容,可能很小的改动,绝对不会出错的那种,然后编译,就一直卡在联网那里,然后报connected to the internet,连续编译,还是出错,过两分钟,又好了,这时候代码没有做任何改动。
我是有用到一些组件,但组件都是下载好了的、以前都是编译通过了的。
没搞懂为什么还要去外网检查....

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

Postby ESP_Penguin_Helper » Tue Sep 19, 2023 11:25 am

可以看一下日志吗?

teddyzheng
Posts: 11
Joined: Tue Aug 22, 2023 3:06 am

Re: idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

Postby teddyzheng » Tue Sep 19, 2023 12:43 pm

ESP_Penguin_Helper wrote:
Tue Sep 19, 2023 11:25 am
可以看一下日志吗?

Code: Select all

/work/tools/esp32/esp-idf/tools/check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Executing action: all (aliases: build)
Running ninja in directory /work/myfile/esp32/xxxx/build
Executing "ninja all"...
[0/1] Re-running CMake...-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
CMake Error at /work/tools/esp32/esp-idf/tools/cmake/build.cmake:540 (message):
  ERROR: Cannot establish a connection to the component registry.  Are you
  connected to the internet?

Call Stack (most recent call first):
  /work/tools/esp32/esp-idf/tools/cmake/project.cmake:464 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "/work/myfile/esp32/xxxx/build/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja 
/usr/bin/cmake -S/work/myfile/esp32/xxxx -B/work/myfile/esp32/xxxx/build
ninja: error: rebuilding 'build.ninja': subcommand failed
ninja failed with exit code 1, output of the command is in the /work/myfile/esp32/xxxx/build/log/idf_py_stderr_output_9875 and /work/myfile/esp32/xxxx/build/log/idf_py_stdout_output_9875

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

Postby ESP_Penguin_Helper » Wed Sep 20, 2023 3:27 am

现在不确定是 IDF 没装好还是测试代码有问题,请问你用的是 examples 中的哪个示例来测的吗?怎么修改的?可不可以把项目文件发出来(删除 build 文件),我在自己的 IDF 环境中测试一下。

teddyzheng
Posts: 11
Joined: Tue Aug 22, 2023 3:06 am

Re: idf.py build的时候老是报外网链接错误,connected to the internet?能把外网关了吗?

Postby teddyzheng » Thu Sep 21, 2023 5:42 am

ESP_Penguin_Helper wrote:
Wed Sep 20, 2023 3:27 am
现在不确定是 IDF 没装好还是测试代码有问题,请问你用的是 examples 中的哪个示例来测的吗?怎么修改的?可不可以把项目文件发出来(删除 build 文件),我在自己的 IDF 环境中测试一下。
工程是根据helloword添加的,有官方组件,也有自添加的组件。代码添得有点多,偶尔出现这情况,我就先用着,回头重装一下idf试试看能不能好。感谢。下次出现的时候,我把-v加上或许能看到更多的信息。

Who is online

Users browsing this forum: No registered users and 47 guests