Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which Qt version to use for building #2

Open
SoothingMist opened this issue Oct 13, 2021 · 4 comments
Open

Which Qt version to use for building #2

SoothingMist opened this issue Oct 13, 2021 · 4 comments

Comments

@SoothingMist
Copy link

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
Copy link
Owner

mich-w commented Oct 14, 2021

"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
Copy link

agguro commented Nov 5, 2021

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
Copy link

agguro commented Nov 5, 2021

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
Copy link

agguro commented Nov 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants