Summary: | smoke is incompatible with Qt 4.5 snapshots | ||
---|---|---|---|
Product: | [Unmaintained] bindings | Reporter: | Bernhard Rosenkraenzer <bero> |
Component: | general | Assignee: | kde-bindings |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fabo, katrina.niolet, roderick.greening |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Bernhard Rosenkraenzer
2008-12-15 11:38:30 UTC
I got the same message as above when compiling with Qt 4.5 beta 1, plus the following error also: x_3.cpp:4417: error: ‘Qt_4_6’ is not a member of ‘QDataStream’ with the generated code being: static void x_12(Smoke::Stack x) { x[0].s_enum = (long)QDataStream::Qt_4_5; } static void x_13(Smoke::Stack x) { x[0].s_enum = (long)QDataStream::Qt_4_6; } static void x_14(Smoke::Stack x) { x[0].s_enum = (long)QDataStream::BigEndian; } Actually I ran into that one too, but it is easy to work around. Given Qt_4_6's definition in qdatastream.h is enum Version { [...] #if QT_VERSION >= 0x040600 #error Add the datastream version for this Qt version , Qt_4_6 = Qt_4_5 #endif }; and there's no way QT_VERSION could be >= 0x040600 with Qt 4.5.x (I think there's only 2 ways to actually hit the definition -- the first is being a Qt developer and increasing the version number to 4.6, the second is severely messing up a system by mixing Qt 4.5 and 4.6 headers), simply removing it in qdatastream.h doesn't actually change anything. I have hit this bug as well with KDE 4.2.0 and Qt 4.5.0 RC1. One of the previous posters indicates that it is easy to get around, but fails to describe a fix or provide a patch. Is the issue with Qt or KDE? Is this corrected in KDE trunk (4.3) assuming it is a KDE issue (what commit corrects)? Or if Qt, can someone describe how to fix or provide a patch? This was fixed around the time of Qt 4.5.0... |