QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = test
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
#qwt
CONFIG += qwt
unix|win32: LIBS += -L$$PWD/../../../../../usr/local/qwt-6.1.0/lib/ -lqwt
INCLUDEPATH += $$PWD/../../../../../usr/local/qwt-6.1.0/include
DEPENDPATH += $$PWD/../../../../../usr/local/qwt-6.1.0/include
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = test
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
#qwt
CONFIG += qwt
unix|win32: LIBS += -L$$PWD/../../../../../usr/local/qwt-6.1.0/lib/ -lqwt
INCLUDEPATH += $$PWD/../../../../../usr/local/qwt-6.1.0/include
DEPENDPATH += $$PWD/../../../../../usr/local/qwt-6.1.0/include
To copy to clipboard, switch view to plain text mode
mainwindow is nothing, it is only because I have created with QtCreator quickly and it has generated this class which I don't use.
Actually I want qwt for another project and this one is only to understand why it doesn't work.
Do you see something wrong ? If not, do you think the library could be badly installed and justified the error ?
Bookmarks