Romain
Romain

Reputation: 1445

Unable to run Jenkins C++ artifact

I have a simple "hello world" C++ project: https://github.com/RomainGoussault/Deepov

I use Eclipse IDE for C/C++ Developers (on Windows8) which is generating the makefile. I can run the .exe file produced by Eclipse but I cannot run the .exe file produced by Jenkins (my Jenkins instance is on a linux server, hosted by cloudbees). I have the following Windows 8 error message.

"This app can't run on your PC"

If I run the .exe file as administrator I have got another error message:

Windows cannot find 'C:\User\Romain\Downloads\Deepov.exe'. Make sure you've typed the name correctly, then try again.

The Jenkins build is simply executing the following shell commands:

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

Note: The makefile can be found here: https://github.com/RomainGoussault/Deepov/blob/master/Debug/makefile

Upvotes: 2

Views: 136

Answers (1)

Slav
Slav

Reputation: 27485

I am pretty sure make is platform dependent. Here is a question discussing cross-platform make:

Using make for cross platform compilation

Upvotes: 2

Related Questions