FydeOS V13 Sp2,打开WPS For Linux闪退,内附日志

软件包:【wps-office_11.1.0.10702_amd64.deb】
步骤:
1、打开“WPS文字”,能正常打开
2、点“+”新建文档,闪退

$ cd /opt/kingsoft/wps-office/office6
$ ./wps

QFactoryLoader::QFactoryLoader() checking directory path “/opt/kingsoft/wps-office/office6/qt/plugins/platforms” …
QFactoryLoader::QFactoryLoader() looking at “/opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so”
Found metadata in lib /opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“xcb”
]
},
“archreq”: 0,
“className”: “QXcbIntegrationPlugin”,
“debug”: false,
“version”: 330752
}

Got keys from plugin meta data (“xcb”)
QFactoryLoader::QFactoryLoader() checking directory path “/opt/kingsoft/wps-office/office6/qt/plugins/platforms” …
QFactoryLoader::QFactoryLoader() checking directory path “/opt/kingsoft/wps-office/office6/platforms” …
QFactoryLoader::QFactoryLoader() looking at “/opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so”
Found metadata in lib /opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“xcb”
]
},
“archreq”: 0,
“className”: “QXcbIntegrationPlugin”,
“debug”: false,
“version”: 330752
}

Got keys from plugin meta data (“xcb”)
QFactoryLoader::QFactoryLoader() checking directory path “/opt/kingsoft/wps-office/office6/platforms” …
loaded library “/opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so”
loaded library “/opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so”
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

terminating with uncaught foreign exception
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

terminating with uncaught foreign exception
QFactoryLoader::QFactoryLoader() checking directory path “/opt/kingsoft/wps-office/office6/qt/plugins/platforms” …
QFactoryLoader::QFactoryLoader() looking at “/opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so”
Found metadata in lib /opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“xcb”
]
},
“archreq”: 0,
“className”: “QXcbIntegrationPlugin”,
“debug”: false,
“version”: 330752
}

Got keys from plugin meta data (“xcb”)
QFactoryLoader::QFactoryLoader() checking directory path “/opt/kingsoft/wps-office/office6/platforms” …
loaded library “/opt/kingsoft/wps-office/office6/qt/plugins/platforms/libqxcb.so”
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

terminating with uncaught foreign exception

$ cd /opt/kingsoft/wps-office/office6/qt/plugins/platforms
$ ldd libqxcb.so

    libc++abi.so.1 => not found
    libQt5XcbQpaKso.so.5 => not found
    ......
    libQt5GuiKso.so.5 => not found
    libQt5DBusKso.so.5 => not found
    libQt5CoreKso.so.5 => not found
    ......
    libc++.so.1 => not found

同一错误。

很明顯是因為fyde OS沒有Qt系統的運行時庫(runtime library),所以WPS for Linux無法在fyde OS運行,是很正常

已解决,切换成GTK+即可
https://wiki.archlinux.org/title/WPS_Office_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E4%BD%BF%E7%94%A8_GTK+_UI