Qt open source serial tool serialplot

A summary

serialplot, very powerful visualization tool serial transceivers. Source: https: //bitbucket.org/hyOzd/serialplot

1.serialplot uses qwt plug-in, so the first installed qwt.

2. serialplot download the source code, to open the Qt .pro file, the corresponding configuration MSVC2017_32bit with qwt compiled.

3. The pro code references all deleted files, then re-add all the time, because the downloaded code file to add incomplete.

4. Add the pro: DEFINES + = QWT_DLL QT_DLL

  

win32:CONFIG(release, debug|release): LIBS += -LD:/ProgramFiles/Qt/Qt5.13.2/5.13.2/msvc2017/lib/ -lqwt
else:win32:CONFIG(debug, debug|release): LIBS += -LD:/ProgramFiles/Qt/Qt5.13.2/5.13.2/msvc2017/lib/ -lqwtd

INCLUDEPATH += D:/ProgramFiles/Qt/Qt5.13.2/5.13.2/msvc2017/include/qwt
DEPENDPATH += D:/ProgramFiles/Qt/Qt5.13.2/5.13.2/msvc2017/include/qwt

5. Project referenced qwt header files are replaced by new such as:

//#include <qwt_plot.h>
#include "qwt/qwt_plot.h"

6. Add version.h version defined in the header file

   

#ifndef VERSION_H
#define VERSION_H

#define VERSION_STRING "0.10.0"
#define PROGRAM_NAME "serialplot"

#ifndef VERSION_STRING
#warning VERSION_STRING not defined!
#define VERSION_STRING   "0.0.0"
#endif

7. Define added version versionnumber.h

#ifndef VERSIONNUMBER_H
#define VERSIONNUMBER_H

#define VERSION_MAJOR 0
#define VERSION_MINOR 10
#define VERSION_PATCH 0


#include <QString>

 

Guess you like

Origin www.cnblogs.com/ike_li/p/12049576.html