Closed tsieger closed 9 years ago
Wow, that array size syntax ([4]
) is likely confusing both the compiler and smokegen. The generated code is not correct (why is the s_class
field additionally referenced?), and there might be a bug in the compiler, although I'm not familiar enough with that syntax to know what should work.
But all that is irrelevant, because qtbase does not handle return-by-reference arguments, and the reason is that any Qt API that uses them is generally too low-level for R. In this example, the only use case mentioned by the documentation of QAbstractVideoBuffer
is to implement a "new hardware accelerated video system". No way that is happening in R. Users should be content with QVideoFrame
. Thus, I will remove QAbstractVideoBuffer
from the generation list.
When building against Qt5.4.0, the smoke-generated code does not compile using GNU g++ 4.9.1:
The relevant
x_1.cpp
snippet:Removing the
Multimedia
andMultimediaWidgets
modules fromkdebindings/smoke/qt/CMakeLists.txt
overcomes this.BTW qtbase does not work even with Qt5.4.0, see #28.