Closed carlosal1015 closed 2 years ago
Please try building with -DENABLE_QT6=0
flag
Actually, the problem here seems to be with QT_NO_CAST_FROM_ASCII
being defined. In this case QVariant::QVariant(const char*)
constructor is not available (see the docs) — both in Qt 5 and 6.
But why is it defined — that's the question.
I just added Qt6.4 to my Windows system. Indeed it no longer builds, blocks at the same line.
Satellite.cpp line 791: Why do we convert a QString to a QByteArray and later back to QString? @alex-w ?
Please try building with
-DENABLE_QT6=0
flag
Thanks, Arch Linux users will keep using qt5, with this workaround it is compiling fine. Feel free to reopen 😄 .
Looks like a small bugfix. You should be able to use Qt6.2 or Qt6.3 if available.
Satellite.cpp line 791: Why do we convert a QString to a QByteArray and later back to QString? @alex-w ?
TLE has formatted data and QByteArray allow manage the data by bytes. I think it can be changed (hello from Qt4 days...)
Hello @carlosal1015!
OK, developers can reproduce the issue. Thanks for the report!
On Qt6, use QString::sliced(pos, len). Or just a QRegularExpression?
On Qt6, use QString::sliced(pos, len). Or just a QRegularExpression?
No need QRegularExpression
Would you like to have a quick fix (by adding 'QString::fromUtf8( ... )') first before rewriting it to QString::sliced() ?
The definition can be from Qxlsx: https://github.com/QtExcel/QXlsx/blob/3f19752a3c4441a83454c8a3cee70a7c897c9292/QXlsx/CMakeLists.txt#L146. I'm no cmake expert, but these definitions are marked as PRIVATE, it's strange that they end up being here.
Edit: I'm looking at the wrong commit, https://github.com/QtExcel/QXlsx/blob/38c1ec81041524caec74bc8f4d3261b5872fa48e/QXlsx/CMakeLists.txt#L143 defines these as PUBLIC on v1.4.4.
I think just avoiding the QByteArray as intermediate type would solve it.
Hello @carlosal1015!
Please check the fresh version (development snapshot) of Stellarium: https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot
Ok, I applied the patch in order to use qt6.
Hello @carlosal1015!
Please check the latest stable version of Stellarium: https://github.com/Stellarium/stellarium/releases/latest
Expected Behaviour
That the software compiles fine.
Actual Behaviour
Is throwing an error, either with qt5 or qt6.
System