Bug 475940 - QTWayland bug yet solved in Qt 6.3.0 for X11 (libvulkan.so not found)
Summary: QTWayland bug yet solved in Qt 6.3.0 for X11 (libvulkan.so not found)
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-wayland-protocols
Classification: Plasma
Component: general (show other bugs)
Version: 1.10.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-21 22:16 UTC by Rafael Linux User
Modified: 2023-10-21 22:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2023-10-21 22:16:36 UTC
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.

Please fix it ASAP, cause many users have issues in applications under Wayland when their distros have not "libvulkan.so" but "libvulkan.so.1" and it's really a headache for programmers to detect what's happening.

Thank you

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 are installed

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

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231016
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
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Product Name: B550M Phantom Gaming 4

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 name_of_application_needing_libvulkan.so
Comment 1 Nicolas Fella 2023-10-21 22:26:57 UTC
Qt bugs should be reported to https://bugreports.qt.io, not here
Comment 2 Rafael Linux User 2023-10-21 22:30:55 UTC
My apologies. It's difficult to guess where to report this kind of issues.

Thank you for alerting me to my error and how to do it correctly.
Comment 3 Nicolas Fella 2023-10-21 22:39:42 UTC
No problem. I left a comment on https://bugreports.qt.io/browse/QTBUG-101592