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

Build broken with -no-feature-sharedmemory

    XMLWordPrintable

Details

    • Linux/Wayland
    • d29b41e0e (dev), 6ec26d84c (6.10)

    Description

      Qt 6.10.0-beta1 cannot be build with -no-feature-sharedmemory it will fail with this error.

      /.../src/qt/qtbase/src/plugins/platforms/wayland/plugins/hardwareintegration/shm-emulation-server/shmserverbufferintegration.cpp: In function 'QOpenGLTexture* createTextureFromShm(const QString&, int, int, int, int)':
      /.../src/qt/qtbase/src/plugins/platforms/wayland/plugins/hardwareintegration/shm-emulation-server/shmserverbufferintegration.cpp:16:28: error: 'QSharedMemory' was not declared in this scope
         16 |     QT_IGNORE_DEPRECATIONS(QSharedMemory shm(key);)
            |                            ^~~~~~~~~~~~~
      /.../src/qt/qtbase/src/corelib/global/qcompilerdetection.h:1232:5: note: in definition of macro 'QT_IGNORE_DEPRECATIONS'
       1232 |     statement \
            |     ^~~~~~~~~
      /.../src/qt/qtbase/src/plugins/platforms/wayland/plugins/hardwareintegration/shm-emulation-server/shmserverbufferintegration.cpp:18:10: error: 'shm' was not declared in this scope
         18 |     ok = shm.attach(QSharedMemory::ReadOnly);
            |          ^~~
      /.../src/qt/qtbase/src/plugins/platforms/wayland/plugins/hardwareintegration/shm-emulation-server/shmserverbufferintegration.cpp:18:21: error: 'QSharedMemory' is not a class, namespace, or enumeration
         18 |     ok = shm.attach(QSharedMemory::ReadOnly);
      

      Attachments

        For Gerrit Dashboard: QTBUG-137814
        # Subject Branch Project Status CR V

        Activity

          People

            liaqi Liang Qi
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change