且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“无法加载平台插件"xcb", "在未安装qt的Linux上启动qt5应用程序时

更新时间:2022-06-02 21:08:44

使用ldd(man ldd)显示共享库依赖项.在libqxcb.so上运行

Use ldd (man ldd) to show shared library dependencies. Running this on libqxcb.so

.../platforms$ ldd libqxcb.so

表明xcb除了libQt5Core.so.5和libQt5Gui.so.5(以及许多其他系统库)之外,还依赖于libQt5DBus.so.5.将libQt5DBus.so.5添加到共享库的集合中,就可以继续了.

shows that xcb depends on libQt5DBus.so.5 in addition to libQt5Core.so.5 and libQt5Gui.so.5 (and many other system libs). Add libQt5DBus.so.5 to your collection of shared libs and you should be ready to move on.