My qwt-6.1.0-rc3 has been successfully installed under /opt/qwt-6.1.0-rc3/ .
and, I'd love to build a static library "qtviews".

1) qtviews.pro is

TARGET = qtviews
TEMPLATE = lib
CONFIG += qt warn_on debug staticlib
QT += widgets

DEFINES += QTVIEWS_LIBRARY

SOURCES += \
src/VO_DataPlot.cpp

HEADERS += \
include/VO_DataPlot.h \
include/qtviews_global.h

INCLUDEPATH += $QWTDIR/include \
$QTDIR/include \
include \

FORMS += \
ui/distance.ui


DESTDIR = ../../Output/libs/MyQtGui

MOC_DIR = ../../Output/mocs

OBJECTS_DIR = ../../Output/objs/

symbian {
MMP_RULES += EXPORTUNFROZEN
TARGET.UID3 = 0xED588A81
TARGET.CAPABILITY =
TARGET.EPOCALLOWDLLDATA = 1
addFiles.sources = qtviews.dll
addFiles.path = !:/sys/bin
DEPLOYMENT += addFiles
}

unix:!symbian {
maemo5 {
target.path = /opt/usr/lib
} else {
target.path = /usr/lib
}
INSTALLS += target
}

2) and,
$ echo $QWTDIR
/opt/qwt-6.1.0-rc3

3)
/opt/qwt-6.1.0-rc3/include$ ls -l qwt.h
-rw-r--r-- 1 root root 511 Jan 25 16:21 qwt.h

4) in src/VO_DataPlot.cpp
Qt Code:
  1. #include <QtWidgets/QFileDialog>
  2. #include <stdlib.h>
  3. #include <qimagewriter.h>
  4. #include "qwt.h"
  5. #include "qwt_painter.h"
  6. #include "VO_DataPlot.h"
To copy to clipboard, switch view to plain text mode 



Whenever I tried to build qtviews (make after qmake, which is after make distclean) I still get the following error:
src/VO_DataPlot.cpp:37:17: fatal error: qwt.h: No such file or directory
compilation terminated.
make: *** [../../Output/objs/VO_DataPlot.o] Error 1


It looks like INCLUDEPATH += $QWTDIR/include \ doesn't work at all...


Please help. Thank you..


Best Regards
Pei