首页 > 解决方案 > 在 TeamCity 中使用 CMake 构建问题

问题描述

我已经安装了Cmake 插件,以便能够使用 TeamCity 构建我的 C/C++ 项目。但是,到目前为止,我还没有成功构建项目。构建服务器和代理在不同的 docker 容器上运行。构建失败并出现以下错误:

[14:09:29] Step 1/1: DebugBuild (CMake build)
[14:09:29]   [Step 1/1] Starting: /bin/bash -c "cmake "$@" 2>&1" -- --build . --target suite_1_app --config Debug --
[14:09:29]   [Step 1/1] in directory: /opt/buildagent/work/3249fc82f6dadd5
[14:09:29]   [Step 1/1] --: cmake: command not found
[14:09:29]   [Step 1/1] Process exited with code 127
[14:09:30]   [Step 1/1] Process exited with code 127 (Step: DebugBuild (CMake build))
[14:09:30]   [Step 1/1] Step DebugBuild (CMake build) failed
[14:09:30] Publishing internal artifacts
[14:09:30] Build finished

这是我在构建步骤中使用的配置:

任何帮助,将不胜感激!

标签: cmaketeamcity

解决方案


推荐阅读