Compiler can't find your headers because it searches for them in <INCLUDEPATH>/qwt-qt4 directory which doesn't exist (also qwt-5.2.2\include doesn't exists either unless you've changed something).
In your *.pro file add:
win32:INCLUDEPATH += C:\QtSDK\qwt-5.2.2
win32:INCLUDEPATH += C:\QtSDK\qwt-5.2.2
To copy to clipboard, switch view to plain text mode
and rename the src directory inside C:\QtSDK\qwt-5.2.2 to qwt-qt4, then compiler should be able to find header files.
This way you won't have to modify your source files and it should compile on linux as well as on windows.
You'll also need an os specific library statements in the pro file, something like that:
win32 {
LIBS += -LC:\QtSDK\qwt-5.2.2\lib -lqwt5 (that's release version qwtd5 is debug)
}
unix {
LIBS += -L/usr/local/lib -lqwt-qt4
LIBS += -L/usr/local/lib -lQtSvg
}
win32 {
LIBS += -LC:\QtSDK\qwt-5.2.2\lib -lqwt5 (that's release version qwtd5 is debug)
}
unix {
LIBS += -L/usr/local/lib -lqwt-qt4
LIBS += -L/usr/local/lib -lQtSvg
}
To copy to clipboard, switch view to plain text mode
you should also add per os release/debug handling in the pro file.
Your final *.pro file should have something like that:
win32 {
INCLUDEPATH += C:\QtSDK\qwt-5.2.2
CONFIG(debug, debug|release) {
LIBS += -LC:\QtSDK\lib -lqwtd5
}
else {
LIBS += -LC:\QtSDK\lib -lqwt5
}
}
unix {
LIBS += -L/usr/local/lib -lqwt-qt4
LIBS += -L/usr/local/lib -lQtSvg
}
win32 {
INCLUDEPATH += C:\QtSDK\qwt-5.2.2
CONFIG(debug, debug|release) {
LIBS += -LC:\QtSDK\lib -lqwtd5
}
else {
LIBS += -LC:\QtSDK\lib -lqwt5
}
}
unix {
LIBS += -L/usr/local/lib -lqwt-qt4
LIBS += -L/usr/local/lib -lQtSvg
}
To copy to clipboard, switch view to plain text mode
and remember to rename qwt's src directory to avoid messing with your source files.
Bookmarks