Bug 397237 - kwindowsystem is broken when compiled in static mode
Summary: kwindowsystem is broken when compiled in static mode
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kwindowsystem
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.48.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-07 11:38 UTC by Emmanuel Lepage Vallée
Modified: 2022-12-29 05:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Lepage Vallée 2018-08-07 11:38:24 UTC
When compiled as a static plugin, as required by compiling kirigami as a qt plugin (until I submit patch to disable this dependency). It install a few plugins like:

lib64/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so

as shared objects. Those objects cannot be used in static mode and thus kirigami doesn't work past commit:

commit ad404dd929626f3556b4bf776d2df71f0d11d9fe
Author: Marco Martin <notmart@gmail.com>
Date:   Tue Apr 17 13:52:47 2018 +0200

    watch the tabletMode from KWin
    
    Summary:
    Add api in the C++ library that watches the tablet mode property exposed from
    KWin. use dbus, but only on linux,bsd etc, not on Android, Windows etc.
    connect it to Settings.isMobile which was already used for it (even tough
    it introduces a naming inconsistence, but needed for retrocompatibility)
    
    Test Plan: tested to switch on the fly on Wayland with the kwin tablet mode sensor working
    
    Reviewers: #plasma, #kirigami, davidedmundson
    
    Reviewed By: #plasma, davidedmundson
    
    Subscribers: ngraham, plasma-devel
    
    Tags: #plasma, #kirigami
    
    Differential Revision: https://phabricator.kde.org/D10112


commit f5cd75acadf4254144c975437d3022f460669a64 mitigate the issue but is not directly usable on embedded Linux or static AppImages.

When built with BUILD_SHARED_LIBS OFF, kwindowsystem need to select X11 or WayLand at compile time and not use plugins.
Comment 1 Emmanuel Lepage Vallée 2018-08-07 11:55:01 UTC
As a side note, a more flexible alternative is to ship the plugins as QtPlugins as qmake do it for xcb (from the moc):

Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
Q_IMPORT_PLUGIN(QtQuick2Plugin)
Q_IMPORT_PLUGIN(QtQuickControls1Plugin)
Q_IMPORT_PLUGIN(QtQuickControls2Plugin)
Q_IMPORT_PLUGIN(QtQuick2WindowPlugin)
Q_IMPORT_PLUGIN(QEvdevKeyboardPlugin)
Q_IMPORT_PLUGIN(QEvdevMousePlugin)
Q_IMPORT_PLUGIN(QtQuickLayoutsPlugin)
Q_IMPORT_PLUGIN(QtQuickTemplates2Plugin)
Q_IMPORT_PLUGIN(QJpegPlugin)
Q_IMPORT_PLUGIN(QSvgPlugin)
Q_IMPORT_PLUGIN(QSvgIconPlugin)
Q_IMPORT_PLUGIN(QXcbGlxIntegrationPlugin)
Q_IMPORT_PLUGIN(QtGraphicalEffectsPlugin)
Q_IMPORT_PLUGIN(QtGraphicalEffectsPrivatePlugin)
Q_IMPORT_PLUGIN(QtQmlModelsPlugin)
Q_IMPORT_PLUGIN(KirigamiPlugin)
Q_IMPORT_PLUGIN(QQc2DesktopStylePlugin)
Comment 2 Justin Zobel 2022-11-29 05:06:20 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-12-14 05:13:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-12-29 05:25:06 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!