【发布时间】:2014-08-30 05:19:11
【问题描述】:
我有一个简单的“hello world”C++ 项目:https://github.com/RomainGoussault/Deepov
我为 C/C++ 开发人员(在 Windows8 上)使用 Eclipse IDE,它正在生成生成文件。 我可以运行 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
【问题讨论】:
-
您是否也在 Linux 上使用 Eclipse?
-
现在我在 Win8 上使用 Eclipse
-
嗯...您可以尝试以管理员身份运行 Jenkins 构建的 .exe 吗?
-
你可以试试把exe放到`C:\`里然后运行吗?
-
我有类似的错误消息:Windows 找不到“C:\Deepov.exe”。请确保您输入的名称正确,然后重试。
标签: c++ eclipse jenkins makefile