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

Compilation error `'GPUInfo' has not been declared`

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.10
    • WebEngine
    • None
    • $ gcc --version
      gcc (GCC) 15.1.1 20250425
    • Linux/Wayland

    Description

      Compilation fails with the following error:

      /data/kde/kde/src/qtwebengine/src/core/web_engine_context.cpp:475:40: error: 'GPUInfo' has not been declared
        475 |         log += "QSG RHI Device: "_L1 + GPUInfo::instance()->deviceName() + u'\n';
            |                                        ^~~~~~~
      /data/kde/kde/src/qtwebengine/src/core/web_engine_context.cpp:477:37: error: 'GPUInfo' was not declared in this scope; did you mean 'gpu::GPUInfo'?
        477 |                 + QLatin1StringView(GPUInfo::vendorToString(GPUInfo::instance()->vendor())) + u'\n';
            |                                     ^~~~~~~
            |                                     gpu::GPUInfo
      In file included from ../../../../../../src/qtwebengine/src/3rdparty/chromium/components/viz/service/gl/gpu_service_impl.h:35,
                       from ../../../../../../src/qtwebengine/src/3rdparty/chromium/content/gpu/gpu_child_thread.h:21,
                       from /data/kde/kde/src/qtwebengine/src/core/web_engine_context.cpp:26:
      ../../../../../../src/qtwebengine/src/3rdparty/chromium/gpu/config/gpu_info.h:267:19: note: 'gpu::GPUInfo' declared here
        267 | struct GPU_EXPORT GPUInfo {
            |                   ^~~~~~~
      /data/kde/kde/src/qtwebengine/src/core/web_engine_context.cpp: In lambda function:
      /data/kde/kde/src/qtwebengine/src/core/web_engine_context.cpp:1199:13: error: 'GPUInfo' has not been declared
       1199 |         if (GPUInfo::instance()->vendor() == GPUInfo::Nvidia) {
            |             ^~~~~~~
      /data/kde/kde/src/qtwebengine/src/core/web_engine_context.cpp:1199:46: error: 'GPUInfo' has not been declared
       1199 |         if (GPUInfo::instance()->vendor() == GPUInfo::Nvidia) {
            |                                              ^~~~~~~

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            alcarazzam Manuel Alcaraz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes