Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.0 Beta2
-
None
-
-
06267f90a2ec6e67c754f1b9fd2a516c37fd784e (qt/qtdeclarative/5.15)
Description
I was using the emscripten-wasm platform, but the build failure would probably happen on any platform since there seems to be unguarded platform-specific #include in this example.
Fix seems to be along the lines of:
--- customrenderitem.cpp.orig 2019-11-05 18:37:36.389432300 +0100 +++ customrenderitem.cpp 2019-11-05 17:38:13.474356500 +0100 @@ -53,8 +53,12 @@ #include <QSGRendererInterface> #include "openglrenderer.h" +#ifdef Q_OS_MACOS #include "metalrenderer.h" +#endif +#if QT_CONFIG(d3d12) #include "d3d12renderer.h" +#endif #include "softwarerenderer.h" //! [1]
At least with that change, the example could be built... and worked! Amazing job with the Qt/WASM platform, keep going
Attachments
For Gerrit Dashboard: QTBUG-79781 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
280697,2 | fix rendernode example build | 5.14 | qt/qtdeclarative | Status: MERGED | +2 | 0 |