mich-w / QtSerialMonitor

Qt serial monitor and data plotter
GNU General Public License v3.0
203 stars 70 forks source link

Which Qt version to use for building #2

Open SoothingMist opened 3 years ago

SoothingMist commented 3 years ago

Which Qt version should be used to build this project? Where does one obtain the Windows installer? With Qt 5.12 I get the following error:

QtSerialMonitor-master\src\logger.cpp:142: error: 'Qt::SplitBehaviorFlags' has not been declared ..\src\logger.cpp: In member function 'void Logger::writeLogCSV(QStringList, QList, bool)': ..\src\logger.cpp:142:75: error: 'Qt::SplitBehaviorFlags' has not been declared QStringList origFile = out.readAll().split(QRegExp("[\r\n]"), Qt::SplitBehaviorFlags::SkipEmptyParts);

mich-w commented 3 years ago

"Which Qt version should be used to build this project?" -> For now do not go beyond 5.15, as 6.2 is still beta and seems to lack alot of modules such as serialport, Qt3D etc.

"Where does one obtain the Windows installer?" -> Try this: https://www.qt.io/download-qt-installer

"With Qt 5.12 I get the following error: ..." -> I pushed the fix. For some reason my Linux Qt installation, which became my main driver accepted this line just fine, while the one on Windows didn't. Thanks for the heads-up.

agguro commented 3 years ago

Works here with Qt version 5.15.2. Also on Linux. One drawback is when I don't send 0x0a after a byte let's say 0x35 the application doesn't show anything. Could be because Arduino put an extra 0x0a behind the scenes. Anyway this application DOESN'T crash as often as Arduino's serial monitor does. I use it already a lot and I'm still at day 3 with exploring. Nice tool, good job.

agguro commented 3 years ago

Perhaps I didn't read the readme.md good enough but you need to download QCustomPlot and extract it in ~/Downloads/QCustomPlot.tar/ Doing this get rid of the warning that qcustomplot.h isn't found.

agguro commented 3 years ago

I also add:

QMAKE_LFLAGS_RELEASE += -no-pie QMAKE_LFLAGS_DEBUG += -no-pie -O0

to the .pro file. By this means Linux doesn't complains that the executable isn't executable from the desktop. You can however skip it and just start the application from terminal.