无法运行Jenkins C ++工件

时间:2014-08-30 05:19:12

标签: c++ eclipse jenkins makefile

我有一个简单的"你好世界" C ++项目:https://github.com/RomainGoussault/Deepov

我将Eclipse IDE用于生成makefile的C / C ++开发人员(在Windows8上)。 我可以运行Eclipse生成的.exe文件,但是我无法运行Jenkins生成的.exe文件(我的Jenkins实例是在linux服务器上,由cloudbees托管)。我有以下Windows 8错误消息。

  

"此应用无法在您的PC上运行"

如果我以管理员身份运行.exe文件,则会收到另一条错误消息:

  

Windows找不到' C:\ User \ Romain \ Downloads \ Deepov.exe'。确保   您已正确输入名称,然后重试。

Jenkins构建只是执行以下shell命令:

#!/bin/bash
echo "*********building************"
echo $WORKSPACE
cd $WORKSPACE/Debug
echo $PWD
make clean
make

注意:makefile可以在这里找到:https://github.com/RomainGoussault/Deepov/blob/master/Debug/makefile

1 个答案:

答案 0 :(得分:2)

我很确定make与平台有关。这是一个讨论跨平台制作的问题:

Using make for cross platform compilation