factory_demo无法编译

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

factory_demo无法编译

Postby ssssss » Thu Jun 16, 2022 3:23 pm

编译问题如下:

Executing action: all (aliases: build)
Running cmake in directory d:\espressif\frameworks\esp-idf-v4.4.1\esp-box-master\examples\factory_demo\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 d:\espressif\frameworks\esp-idf-v4.4.1\esp-box-master\examples\factory_demo"...
-- Found Git: D:/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Not find RMAKER_PATH, default is D:/Espressif/frameworks/esp-idf-v4.4.1/esp-box-master/examples/factory_demo/../../components/esp-rainmaker
-- Component directory D:/Espressif/frameworks/esp-idf-v4.4.1/esp-box-master/components/esp-rainmaker does not contain a CMakeLists.txt file. No component will -- Component directory D:/Espressif/frameworks/esp-idf-v4.4.1/esp-box-master/components/esp-rainmaker/components/esp-insights does not contain a CMakeLists.txt file. No component will be added
-- Component directory D:/Espressif/frameworks/esp-idf-v4.4.1/esp-box-master/components/esp-rainmaker/components/rmaker_common does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
CMake Error at D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/build.cmake:200 (message):
Failed to resolve component 'rmaker_common'.
Call Stack (most recent call first):
D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/build.cmake:226 (__build_resolve_and_add_req)
D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/build.cmake:512 (__build_expand_requirements)
D:/Espressif/frameworks/esp-idf-v4.4.1/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:22 (project)


-- Configuring incomplete, errors occurred!
cmake failed with exit code 1

经检查,代码是最新的版本,idf 4.4.1,没看明白configuring incomplete 是什么意思,是哪里配置不完全?

ESP_ZhouL
Posts: 15
Joined: Thu Apr 08, 2021 11:50 am

Re: factory_demo无法编译

Postby ESP_ZhouL » Fri Jun 17, 2022 3:11 am

看起来是没有下载子仓库,先执行 git submodule update --init --recursive 再试试

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: factory_demo无法编译

Postby ssssss » Fri Jun 17, 2022 3:39 am

请问有没有码云的仓库,或者其他的仓库,git下依赖包总是失败,然后都是手动一个一个下的,不知道遗漏了哪个模块

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

Re: factory_demo无法编译

Postby ESP_Rachel » Mon Jun 27, 2022 3:39 am

ssssss wrote:
Fri Jun 17, 2022 3:39 am
请问有没有码云的仓库,或者其他的仓库,git下依赖包总是失败,然后都是手动一个一个下的,不知道遗漏了哪个模块
sorry,由于esp-box依赖的子仓库太多,gitee 需要同步所有仓库才能保证 esp-box submodule 的完整性,这部分的解决方案我们商量一下。

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

Re: factory_demo无法编译

Postby ESP_Rachel » Wed Jun 29, 2022 9:20 am

ssssss wrote:
Fri Jun 17, 2022 3:39 am
请问有没有码云的仓库,或者其他的仓库,git下依赖包总是失败,然后都是手动一个一个下的,不知道遗漏了哪个模块
Gitee esp-box: https://gitee.com/EspressifSystems/esp-box
How to update submodule: https://gitee.com/EspressifSystems/esp- ... ols/issues

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: factory_demo无法编译

Postby ssssss » Tue Mar 28, 2023 1:18 pm

老问题又出现了,我换了个电脑,之前的环境没有了,当我重新去git上下新版的esp-box时,出现了子库不全的老问题,请问现在的gitee上子库全了吗?我试了下好像还不全。。。不知道是不是这样

能否提供一个更好的解决方案来让我快速搭建环境呢,我已经翻墙了但依然不行,重新弄一遍环境好痛苦

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: factory_demo无法编译

Postby ssssss » Wed Mar 29, 2023 2:33 am

ESP官方有一个JIHU镜像,可以参考下面链接,目前依赖子库下载正常
https://gitee.com/EspressifSystems/esp- ... -mirror.md

tough_jin
Posts: 6
Joined: Thu Apr 06, 2023 7:37 am

Re: factory_demo无法编译

Postby tough_jin » Thu Apr 06, 2023 7:40 am

问题一样,你解决了吗?

Who is online

Users browsing this forum: No registered users and 7 guests