Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79781

Example quick/scenegraph/rendernode won't build

    XMLWordPrintable

Details

    • WebAssembly, Windows
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            cboos Christian Boos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes