低级错误:ESP32官方例程编译不成功只因为文件夹名称使用了空格
[复制链接]
今天在使用ESP32官方全程时出现下边的错误,找了很长时间没找到原因,后来重新创建例程到其它文件夹后编译成功,对比后发现出错的原因是因为文件夹名称使用了空格。之前知道文件夹不能有空格的问题,实际使用时还是大意了,这个问题从错误日志里得不到暗示,搜索关键字也没找到对应的解决办法,现在把日志粘出来希望再有人遇到这个问题能检索到这个帖子。
> Executing task: cmake -G Ninja .. <
-- 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 esp32
-- Checking Python dependencies...
Python requirements from d:\esp-idf-v4.3-beta3\requirements.txt are satisfied.
CMake Error at D:/esp-idf-v4.3-beta3/tools/cmake/component.cmake:224 (message):
CMake Error at
D:/esp-idf-v4.3-beta3/tools/cmake/scripts/component_get_requirements.cmake:97
(include):
include called with invalid argument:
security/gatt_security_server/main/CMakeLists.txt
Call Stack (most recent call first):
D:/esp-idf-v4.3-beta3/tools/cmake/scripts/component_get_requirements.cmake:115 (__component_get_requirements)
Call Stack (most recent call first):
D:/esp-idf-v4.3-beta3/tools/cmake/build.cmake:414 (__component_get_requirements)
D:/esp-idf-v4.3-beta3/tools/cmake/project.cmake:396 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "F:/xxxxxxxx/build/CMakeFiles/CMakeOutput.log".
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja ..”已终止,退出代码: 1。
终端将被任务重用,按任意键关闭。
|