欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

This application failed to start because it could not find or load the Qt platform plugin "xcb" in "

程序员文章站 2022-03-31 09:45:25
...

使用ldd demo命令查看应用程序的依赖时,可以找到‘xcb’的库,但是依然报:

This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".

This application failed to start because it could not find or load the Qt platform plugin "xcb" in "

参考解决方法:https://askubuntu.com/questions/308128/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without

我的解决方法,执行了该命令:

sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/

就可以了,但是真正的原理还不是特别清楚。