Hey,

I have built a Qt application with Qwt.
It compiles and runs fine on my machine, but when i try to compile it on a jenkins Slave running windows server 2008, it says:

Qt Code:

Qt Code:
  1. qwt_plot.h: No such file or directory
To copy to clipboard, switch view to plain text mode 

It's just an example. It cannot find any of the Qwt headers.
However, when typying
Qt Code:
Qt Code:
  1. #include "qwt_plot.h"
To copy to clipboard, switch view to plain text mode 

it has autocompletion for the header name

The Qwt headers are included in the .pro file:

Qt Code:

Qt Code:
  1. LIBS += \
  2. -L$$PWD/../../../../../../QwtRelease/Qwt-6.1.3/lib/ \
  3. -lqwt \
  4. -L$$PWD/../../../../../../QwtRelease/Qwt-6.1.3/lib/ \
  5. -lqwtd
  6. INCLUDEPATH += $$PWD/../../../../../../QwtRelease/Qwt-6.1.3/include
To copy to clipboard, switch view to plain text mode 

I know the path looks ugly, but right now i just want it to run.

I also tried replacing it with

Qt Code:

Qt Code:
  1. LIBS += \
  2. -LC:/QwtRelease/Qwt-6.1.3/lib/ \
  3. -lqwt \
  4. -LC:/QwtRelease/Qwt-6.1.3/lib/ \
  5. -lqwtd
  6. INCLUDEPATH += C:/QwtRelease/Qwt-6.1.3/include
To copy to clipboard, switch view to plain text mode 

But that had no effect either.

I read somewhere that you could also use

Qt Code:

Qt Code:
  1. include("C:/QwtRelease/Qwt-6.1.3/features/qwt.prf")
To copy to clipboard, switch view to plain text mode 

But that has no effect either.

I have added the Qwt lib path to the environment on the machine.
I also tried deleting the build folder and rebuilding it.

Specifying the full path works, e.g:
Qt Code:
Qt Code:
  1. #include "C:/QwtRelease/Qwt-6.1.3/include/qwt_plot.h"
To copy to clipboard, switch view to plain text mode 

As i stated, it works on my own machine running windows 10 but not on the jenkins slave running windows server 2008.

Can you help me find the error?

Best regards