我有一个简单的“hello world”C++ 项目: https://github.com/RomainGoussault/Deepov
我使用 Eclipse IDE for C/C++ Developers(在 Windows8 上)生成 makefile。 我可以运行 Eclipse 生成的 .exe 文件,但无法运行 Jenkins 生成的 .exe 文件(我的 Jenkins 实例位于由 cloudbees 托管的 Linux 服务器上)。我收到以下 Windows 8 错误消息。
"This app can't run on your PC"
如果我以管理员身份运行 .exe 文件,我会收到另一条错误消息:
Windows cannot find 'C:\User\Romain\Downloads\Deepov.exe'. Make sure you've typed the name correctly, then try again.
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
最佳答案
我很确定make
是依赖于平台的。这是一个讨论跨平台 make 的问题:
关于c++ - 无法运行 Jenkins C++ 工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25579272/