c++ - 无法运行 Jenkins C++ 工件

标签 c++ eclipse jenkins makefile

我有一个简单的“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 的问题:

Using make for cross platform compilation

关于c++ - 无法运行 Jenkins C++ 工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25579272/

相关文章:

java - 需要帮助 java 到 C++ ssl 套接字

python - 如何使用 python 处理错误?

Jenkins 工作流程 : Multibranch plugin checkout to subdirectory

windows - Tomcat/Windows下Jenkins中无法删除pom.xml

c++ 重载 operator() 用于在动态二维数组中赋值

C++ std::destroy(T * 指针)

c++ - 将字母 2 × 2 分组

eclipse - Tomcat 服务器在 45 秒内未启动

java - eclipse java - 在 linux 上崩溃

java - 在已编译的 Java 类中保留参数/参数名称