Linux 发布Qt程序的问题

shy_wing 2018-11-09 05:47:40
在一台Ubuntu的机子上发布Qt程序的时候,遇到的问题,我检查了很多遍,已经把所有的依赖库都拷贝了。

错误提示是“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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

已放弃 (核心已转储)”

我是打包成deb的包,下面是我的目录结构里面的内容,出错的截图

bin目录

lib目录

platforms目录
...全文
272 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaocherry1128 2019-03-25
  • 打赏
  • 举报
回复
linuxdeplayqt这个打包之后可以在别的电脑安装使用吗?方便指导我一下吗?
shy_wing 2018-11-16
  • 打赏
  • 举报
回复
引用 1 楼 n21n01 的回复:
Qt的plugins没有拷贝过去

我用linuxdeployqt打包可以了,
n21n01 2018-11-13
  • 打赏
  • 举报
回复
Qt的plugins没有拷贝过去

16,199

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧