Unable to build cargo_without_cmake
example
#847
-
I copied over the example and when I do cargo run, it errors out (which is not very clear). also it compiles cxx-qt crates twice (maybe not the problem and just related to build.rs) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @mystchonky , This was a bit of a headscracher 😅 As that seems to have added the overload to QDateTime (see: https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/time/qdatetime.h ) We'll have to sort this out to keep compatibility with 6.7 though. If we supported #765 and knew the Qt minor version, we could also go that route. |
Beta Was this translation helpful? Give feedback.
-
Yeah my bad. I am running the testing repo on arch for KDE plasma RCs and forgot that it might break stuff (with QT 6.7 beta). Let me try older versions :) |
Beta Was this translation helpful? Give feedback.
Hi @mystchonky ,
thanks for taking the time to report this issue.
This was a bit of a headscracher 😅
I suspect you're using a Beta version of Qt 6.7?
As that seems to have added the overload to QDateTime (see: https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/time/qdatetime.h )
For now, if you can, try to build with Qt 6.6 or 6.5 LTS, that should resolve the issue.
We'll have to sort this out to keep compatibility with 6.7 though.
@Montel any idea how to approach this? 🤔
I think the easiest way to go about this is to introduce a
qdatetime_settimezone
method on the C++ side that just callsdatetime.setTimeZone()
as that should behave correctly with the default-argument in both 6.6 and…