【已解决】快速入门(CMake)第七步配置问题(windows平台)

Jachin_Yu
Posts: 14
Joined: Wed Feb 26, 2020 8:48 am

【已解决】快速入门(CMake)第七步配置问题(windows平台)

Postby Jachin_Yu » Wed Feb 26, 2020 9:05 am

新手入坑,跪求大佬帮忙!
如题,按照官方教程,进行到第七步,在cmd中运行“cd %userprofile%\esp\hello_world
idf.py menuconfig”命令,报错,错误信息如下:

Code: Select all

C:\Users\Jachin_Yu\esp\hello_world>cd %userprofile%\esp\hello_world

C:\Users\Jachin_Yu\esp\hello_world>idf.py menuconfig
Checking Python dependencies...
Python requirements from C:\Users\Jachin_Yu\esp\esp-idf\requirements.txt are satisfied.
Executing action: menuconfig
Running ninja in directory c:\users\jachin_yu\esp\hello_world\build
Executing "ninja menuconfig"...
[0/1] Re-running CMake...
CMake Error: The source directory "" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
FAILED: build.ninja
"C:\Program Files\CMake\bin\cmake.exe" -SC:\Users\Jachin_Yu\esp\hello_world -BC:\Users\Jachin_Yu\esp\hello_world\build
ninja: error: rebuilding 'build.ninja': subcommand failed
ninja failed with exit code 1
我参考的官方教程链接:
https://docs.espressif.com/projects/esp ... -configure


请大佬们帮忙解答,新手入坑,不胜感激!!!!
Last edited by Jachin_Yu on Tue Jun 06, 2023 8:42 am, edited 4 times in total.

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 快速入门(CMake)第七步配置问题(windows平台)

Postby ESP_Gargamel » Fri Feb 28, 2020 2:27 am

看你提了第二个问题。这个问题你是自己解决了吗?

Jachin_Yu
Posts: 14
Joined: Wed Feb 26, 2020 8:48 am

Re: 快速入门(CMake)第七步配置问题(windows平台)

Postby Jachin_Yu » Fri Feb 28, 2020 7:10 am

ESP_Gargamel wrote:
Fri Feb 28, 2020 2:27 am
看你提了第二个问题。这个问题你是自己解决了吗?
是的,同时,昨晚第二个问题也自行解决了,解决方法是:
用工具安装器v1.2版本安装了工具之后,在此基础上运行命令

Code: Select all

cd %userprofile%\esp\esp-idf
install.bat
使两个工具环境叠加之后解决的,现在已经出现了配置界面。
至于为什么单独使用工具安装器v1.2自动配置的环境不能用,以及单独使用install.bat配直的环境不能用,用目前还没找到原因。

Who is online

Users browsing this forum: No registered users and 99 guests