qt程序插件报错plugin xcb

xulei@xulei-PC:/opt/apps/xltest/files$ ./xltrayThis application failed to start because it could not find or load the Qt platform plugin "xcb"in "".Available platform plugins are: dde-kwin-xcb, dxcb, eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.
摘要由CSDN通过智能技术生成
xulei@xulei-PC:/opt/apps/xltest/files$ ./xltray
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: dde-kwin-xcb, dxcb, eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.

Reinstalling the application may fix this problem.


启动qt界面程序报错。这是什么原因呢,按照提示重新安装程序可以解决问题?当然不会的,这个是系统环境问题。

ldd 查看 xltray并不缺少依赖库,其实不用ldd也知道不缺少依赖库,因为缺少依赖库的话会报找不到对应的共享库文件。elf缺少依赖库的报错如下:

error while loading shared libraries: libxltest.so.1: cannot open shared object file: No such file or directory

    我们从提示上看出是“load the Qt platform plugin "xcb” 出的问题,那么意味着是Qt平台插件相关的错误。

    Qt平台下的编程中包含了插件模式,使得程序的扩展性非常好,但是插件的动态加载的检查也比较严格,出现错误的可能性也大大增加,无法加载的原因有多种:

  1.     找不到文件,编译的插件共享库库没有放在正确的rpath目录下;
  2.     插件库运行还依赖其他库,如果系统没有
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值