Build configuration issue for CMAKE

Answered

 Hi 

I am new to teamcity, i have windows agent, i have installed CMAKE plugin the path is automatically set on the server when i installed the plugin. But my build always fail and complain about the path and unable to find the internal or extenral command. 

 

Any help?

FYI....

[10:50:12]Parameter "env.PATH" is undefined.

[10:50:12]Step 1/3: CMake - Generate Visual Studio sln (Command Line) (1s)
[10:50:12][Step 1/3] Starting: E:\BuildAgent\work\c03f10790c818dd4\build\regenVisualStudioProj.bat
[10:50:12][Step 1/3] in directory: E:\BuildAgent\work\c03f10790c818dd4
[10:50:12][Step 1/3]
[10:50:12][Step 1/3] E:\BuildAgent\work\c03f10790c818dd4>echo off
[10:50:12][Step 1/3] Generating Visual Studio 2015 session at E:\BuildAgent\work\c03f10790c818dd4\build\\..\TempBuild
[10:50:13][Step 1/3] -- The C compiler identification is unknown
[10:50:14][Step 1/3] -- The CXX compiler identification is unknown
[10:50:14][Step 1/3] CMake Error at CMakeLists.txt:2 (project):
[10:50:14][Step 1/3] No CMAKE_C_COMPILER could be found.
[10:50:14][Step 1/3]
[10:50:14][Step 1/3]
[10:50:14][Step 1/3]
[10:50:14][Step 1/3] CMake Error at CMakeLists.txt:2 (project):
[10:50:14][Step 1/3] No CMAKE_CXX_COMPILER could be found.
[10:50:14][Step 1/3]
[10:50:14][Step 1/3]
[10:50:14][Step 1/3]
0
2 comments
Avatar
Permanently deleted user

Hello,

 

It seems CMake was unable to find your C/CXX compiler on your agent. Could you please run your build step from the command prompt when run on the same machine as the TeamCity agent and under the same user?

You also may find this article useful.

1
Avatar
Permanently deleted user

Thanks Marina, that did the trick. 

0

Please sign in to leave a comment.