factory_demo编译过不去!!!

junshuliang
Posts: 11
Joined: Mon May 29, 2023 3:35 am

factory_demo编译过不去!!!

Postby junshuliang » Mon May 29, 2023 3:53 am

硬件box-lite,IDE:vsCode,IDFv4.4.4,hello world已编译!
  1. [SDK Configuration Editor]
  2. -- Found Git: D:/Users/MECHREVO/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
  3.  
  4. [SDK Configuration Editor]
  5. -- ccache will be used for faster recompilation
  6.  
  7. [SDK Configuration Editor]
  8. -- The C compiler identification is GNU 8.4.0
  9.  
  10. [SDK Configuration Editor]
  11. -- The CXX compiler identification is GNU 8.4.0
  12.  
  13. [SDK Configuration Editor]
  14. -- The ASM compiler identification is GNU
  15.  
  16. [SDK Configuration Editor]
  17. -- Found assembler: D:/Users/MECHREVO/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
  18.  
  19. [SDK Configuration Editor]
  20. -- Detecting C compiler ABI info
  21.  
  22. [SDK Configuration Editor]
  23. -- Detecting C compiler ABI info - done
  24.  
  25. [SDK Configuration Editor]
  26. -- Check for working C compiler: D:/Users/MECHREVO/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
  27.  
  28. [SDK Configuration Editor]
  29. -- Detecting C compile features
  30.  
  31. [SDK Configuration Editor]
  32. -- Detecting C compile features - done
  33.  
  34. [SDK Configuration Editor]
  35. -- Detecting CXX compiler ABI info
  36.  
  37. [SDK Configuration Editor]
  38. -- Detecting CXX compiler ABI info - done
  39.  
  40. [SDK Configuration Editor]
  41. -- Check for working CXX compiler: D:/Users/MECHREVO/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
  42.  
  43. [SDK Configuration Editor]
  44. -- Detecting CXX compile features
  45.  
  46. [SDK Configuration Editor]
  47. -- Detecting CXX compile features - done
  48.  
  49. [SDK Configuration Editor]
  50. -- Building ESP-IDF components for target esp32s3
  51.  
  52. [SDK Configuration Editor]
  53. Solving dependencies requirements
  54. .
  55. [SDK Configuration Editor]
  56. ---------------------------ERROR--------------------------
  57.  
  58. CMake Error at D:/Users/MECHREVO/esp/esp-idf/tools/cmake/build.cmake:452 (message):
  59.   ERROR: Cannot establish a connection to the component registry.  Are you
  60.   connected to the internet?
  61.  
  62. Call Stack (most recent call first):
  63.   D:/Users/MECHREVO/esp/esp-idf/tools/cmake/project.cmake:384 (idf_build_process)
  64.   CMakeLists.txt:13 (project)
  65.  
  66.  
  67.  
  68. -----------------------END OF ERROR-----------------------
  69. [SDK Configuration Editor]
  70. -- Configuring incomplete, errors occurred!
  71. See also "D:/Projects/esp-box/examples/factory_demo/build/CMakeFiles/CMakeOutput.log".
  72.  
  73. [SDK Configuration Editor]
  74. Executing action: confserver
  75. Running cmake in directory d:\projects\esp-box\examples\factory_demo\build
  76. Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 d:\projects\esp-box\examples\factory_demo"...
  77.  
  78. [SDK Configuration Editor]
  79. ---------------------------ERROR--------------------------
  80.  
  81. cmake failed with exit code 1
  82.  
  83. -----------------------END OF ERROR-----------------------
  84. [SDK Configuration Editor]
  85. ---------------------------ERROR--------------------------
  86.  
  87. SDK Configuration editor confserver process exited with code: 2
  88. -----------------------END OF ERROR-----------------------
看字面的意思,编译时还需要联网注册组件???

ESP_Rachel
Posts: 96
Joined: Wed Nov 10, 2021 9:28 am

Re: factory_demo编译过不去!!!

Postby ESP_Rachel » Tue May 30, 2023 8:50 am

您使用的是原始代码,没做改动么?

junshuliang
Posts: 11
Joined: Mon May 29, 2023 3:35 am

Re: factory_demo编译过不去!!!

Postby junshuliang » Tue May 30, 2023 12:35 pm

是的,代码没动过,我还在搭环境 :geek:

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: factory_demo编译过不去!!!

Postby ESP_Xuxin » Thu Jun 01, 2023 1:46 am

那个,我看了下,你用的是 ESP-IDF 4.4 版本:
有两点:
1:包管理器需要ESP-IDF 5.0版本;
2:目前最新的 master 代码匹配 box-lite,你可以按照readme 中的版本说明,将工程版本切到指定版本;
例如 tag v0.3.0;

junshuliang
Posts: 11
Joined: Mon May 29, 2023 3:35 am

Re: factory_demo编译过不去!!!

Postby junshuliang » Fri Jun 02, 2023 2:04 am

基本上找到原因,网络不行,最近封网升级,github的https链接经常被reset或超时,编译脚本没有重试机制。3个解决方方案:
1,脚本健壮化:如git命令失败,自动重试,并延长超时时间
2,构造gitee版编译脚本
3,提供无需联网的本地编译包

Who is online

Users browsing this forum: No registered users and 31 guests