Page 1 of 1

VSCODE 编译例程出错(windos + wsl)

Posted: Mon Jan 06, 2025 12:36 pm
by shl2130
朋友们 给看看 怎么个处理办法? 入门 真难呀。。。
【输出】端口信息如下:
[cmake] See also "/home/lenovo_szt/esp-idf/examples/get-started/hello_world/build/CMakeFiles/CMakeOutput.log".
[proc] 命令“/usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ --no-warn-unused-cli -S/home/lenovo_szt/esp-idf/examples/get-started/hello_world -B/home/lenovo_szt/esp-idf/examples/get-started/hello_world/build -G Ninja”已退出,代码为 1

【问题】 信息如下:
CMake Error at CMakeLists.txt:5 (include):include could not find load file:

/tools/cmake/project.cmake

怎么解决? 是少安装了什么东西吗?

Re: VSCODE 编译例程出错(windos + wsl)

Posted: Mon Jan 06, 2025 1:39 pm
by shl2130
这是代码界面的 截图。include"...." 包含的头文件下面都有波浪线。不知道是否意味着 此处又错误? 感谢热心朋友 帮忙看下如何解决

Re: VSCODE 编译例程出错(windos + wsl)

Posted: Mon Jan 13, 2025 7:36 am
by Luxni_
我猜你应该是 使用命令来编译的, 它在使用前需要设置一下环境变量:
第四步:设置环境变量


这个波浪线需要你编译成功后才能消失。