SUMMARY When building statically, the some of the tests fail. See https://invent.kde.org/frameworks/kitemmodels/-/jobs/483666 for reference. STEPS TO REPRODUCE 1. Build with -DBUILD_SHARED_LIBS=off 2. run tests OBSERVED RESULT Tests fail EXPECTED RESULT Should pass successfully.
Not that the "qt.qpa.screen: Failed to parse EDID data for output "screen" edid data: """ error is not specific to kitemmodels — other frameworks which use qt.qpa.screen in their tests also fail when built statically.
(In reply to Dawid Wróbel from comment #1) > Not that the "qt.qpa.screen: Failed to parse EDID data for output "screen" > edid data: """ error is not specific to kitemmodels — other frameworks > which use qt.qpa.screen in their tests also fail when built statically. Actually, I just realized that that's not even a bug, it's just appears in the log because of the messages are verbose for any failed test. The underlying issue, i.e. tests failing, still stands, though.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kitemmodels/-/merge_requests/47
Git commit e8dce5e5eb33472196d3bd6a884f13ae90f70069 by Alexander Lohnau. Committed on 16/10/2022 at 18:54. Pushed by alex into branch 'master'. Fix ksortfilterproxymodel_qml test for static builds We need to import the plugin in order for Qt to find the QML module. M +4 -0 autotests/CMakeLists.txt M +5 -0 autotests/ksortfilterproxymodel_qml.cpp https://invent.kde.org/frameworks/kitemmodels/commit/e8dce5e5eb33472196d3bd6a884f13ae90f70069