Hello, I'm working in Qt Creator/Win7, and have been trying to understand how to use external libraries for 2 hours already.
I've read the qmake documentation and looked for info on google but I didn't find any satisfactory examples.
I've added qextserialportd.dll and qwt5.dll files to my main directory where all the project files are.
here is my .pro file:
QT += core gui
TARGET = myser2
TEMPLATE = app
SOURCES += main.cpp\
myser2.cpp
HEADERS += myser2.h
FORMS += myser2.ui
LIBS += -lqextserialportd
LIBS += -lqwt5
QT += core gui
TARGET = myser2
TEMPLATE = app
SOURCES += main.cpp\
myser2.cpp
HEADERS += myser2.h
FORMS += myser2.ui
LIBS += -lqextserialportd
LIBS += -lqwt5
To copy to clipboard, switch view to plain text mode
in myser2.h, I've put
#include <qextserialport.h>
#include <qwt_plot.h>
#include <qextserialport.h>
#include <qwt_plot.h>
To copy to clipboard, switch view to plain text mode
now, when I try to build, it can't find any of those files.
I've tried all sorts of different notations for LIBS:
LIBS += <path>/qwt5.lib
LIBS += <path>/qwt5.dll
LIBS += qwt5.lib
LIBS += -L<path> -lqwt5
LIBS += <path>/qwt5.lib
LIBS += <path>/qwt5.dll
LIBS += qwt5.lib
LIBS += -L<path> -lqwt5
To copy to clipboard, switch view to plain text mode
but nothing works
If you could explain me what I am forgetting, that would be great. An example project would be even better.
Thanks
Bookmarks