阅读:5850回复:20
qt插件加载的一个问题
周大好:
KDE 版本是 Plasma5,qt 版本是 5.15.2 ,在 debian11 下,一切正常。 但在 manjaro ( Linux 5.13.19-2) 下面,qt 插件无法加载, cat 了一下 maps ,结果如下: cmd.txt 其间,作了如下尝试: manjaro 输入法插件路径与其它发行版不同,是这个 ↓ /usr/lib/foxitreader/platforminputcontexts/libyongplatforminputcontextplugin.so 但无果,于是,就给小小的默认路径里,指了一个软链接: ln -s /usr/lib/foxitreader/platforminputcontexts/libyongplatforminputcontextplugin.so /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libyongplatforminputcontextplugin.so 依然不行…… 周大看看,是不是还有其它的依赖没有加载上来。 |
|
沙发#
发布于:2022-02-23 18:52
|
|
板凳#
发布于:2022-02-26 11:35
dgod:qt版本小版本也必须大于等于插件的版本。实在不行,还是得重新编译。回到原帖找到了原因: Debian 系下,之所以 KDE 可用,而同版本的 KDE 在 Arch 上用不了,是因为「qtbase5-dev」这个包,该包,在 Arch 上,名为「 qt5-base」 https://archlinux.org/packages/extra/x86_64/qt5-base/ 观察 「Package Contents」可见,它是没有「Qt5.pc」文件的。 而「Qt5.pc」文件,是「Qt5」的目录分布:
所以,不管是 Qt 插件的使用,还是 Qt插件的编译,都是在 Arch 下不可能完成的: ~/yong-master node build.js -C im/qt5-im ✔ |
|
地板#
发布于:2022-02-26 11:36
|
|
4楼#
发布于:2022-02-26 14:48
|
|
5楼#
发布于:2022-02-26 14:50
|
|
6楼#
发布于:2022-02-27 08:39
Scfy:只编译Qt插件的话只需要gcc nodejs pkgconf这三个包就可以了。如果需要完全编译的话再加一个gettext包,此方案只适用于archlinux系回到原帖node build.js l64 1 ✘ node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module '/home/i7/yong-master/config/build.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v17.3.0 |
|
7楼#
发布于:2022-02-27 08:40
Scfy:只编译Qt插件的话只需要gcc nodejs pkgconf这三个包就可以了。如果需要完全编译的话再加一个gettext包,此方案只适用于archlinux系回到原帖~/yong-master/config node build.js -C im/qt5-im 1 ✘ node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module '/home/i7/yong-master/config/build.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v17.3.0 |
|