用 vscode 编译项目时出错。 我以前的项目还不错,但是
同事发给我的项目编译不了
截图的信息看不清楚, 麻烦再发下。
Regards
Harvey
"D:/Program Files/Cmake/bin/cmake" --build C:/Users/DELL/Desktop/newrem/new_program_2025.2.18/shear_controller(2)/armgcc/debug --target clean --
Error: could not find CMAKE_PROJECT_NAME in Cache
已完成 清理,但出现错误。
* 终端进程已终止,退出代码: 1。
* 终端将被任务重用,按任意键关闭。
* 正在执行任务: CMake: configure
配置任务已启动...
CMake Error at D:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:152 (message):
Could not find toolchain file:
e:/program/SDK_2_15_000_EVK-MIMX8MP/tools/cmake_toolchain_files/armgcc.cmake
Call Stack (most recent call first):
CMakeLists.txt:18 (ENABLE_LANGUAGE)
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
配置完成,返回代码为 1
* 终端进程已终止,退出代码: 1。
* 终端将被任务重用,按任意键关闭。
* 正在执行任务: CMake: build
已启动 生成...
“D:/Program Files/cmake/bin/cmake” --build C:/Users/DELL/Desktop/newrem/new_program_2025.2.18/shear_controller(2)/armgcc/debug --target all --
错误:在Cache
中找不到CMAKE_PROJECT_NAME已完成 生成,但出现错误。
* 终端进程启动失败(退出代码: 1)。
* 终端将被任务重用,按任意键关闭。
输出为 :
在vscode的配置里和系统环境变量下检查下跟Cmake, 编译工具等配置。如果你同事哪里没有问题的话,可以参考下他那边。
Regards
Harvey