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

QTWayland bug yet solved in Qt 6.3.0 for X11 (libvulkan.so not found)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15.14 VxWorks
    • Wayland Compositor
    • None
    • Operating System: openSUSE Tumbleweed 20231016 / Fedora / others
      KDE Plasma Version: 5.27.8
      KDE Frameworks Version: 5.110.0
      Qt Version: 5.15.11
      Kernel Version: 6.5.6-1-default (64-bit)
      Graphics Platform: Wayland
    • Linux/Wayland

    Description

      SUMMARY
      There is a QTWayland that has been solved in Qt 6.3.0 for X11. Is related to how QTWayland works in some distros when looking for "libvulkan.so" library. Some Linux distros, like openSUSE or Fedora, name that library as "libvulkan.so.1", so is not find by QT.
      Issue is identified and solved here https://github.com/qt/qtbase/commit/888b75aa12e2cf35ee760bcf5cb1ed60fe0c0770 too and could be applied easily to Qt 5.15.x.

      Many users have issues in applications when their distros have not "libvulkan.so" but "libvulkan.so.1" and it's really a headache for programmers to detect what's happening.

      STEPS TO REPRODUCE
      1. Launch an application installed from some distros repositories that needs "libvulkan.so"

      OBSERVED RESULT
      Usually, at console, application will show some message similar to:

      initInstance: No Vulkan library available
      Failed to create platform Vulkan instance

      despite, in fact, Vulkan related packages and libraries are installed

      EXPECTED RESULT
      To search for "libvulkan.so.1" too and do not fail

      ADDITIONAL INFORMATION
      As a workaround, if user guess that this is the issue he has, he can launch application preceding it with this environment parameter:

      QT_VULKAN_LIB=/path/to/libvulkan.so.1 application_needing_libvulkan.so

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            rafaellinuxuser Rafael Linux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes