“Failed to load platform plugin ”xcb“ ” while launching qt5 app on linux without qt installed
2016-01-18 17:09
585 查看
As was posted earlier, you need to make sure you install the platform plugins when you deploy your application. Depending on how you want to deploy things, there are two methods to tell your application where the platform plugins (e.g. platforms/plugins/libqxcb.so)
are at runtime which may work for you.
The first is to export the path to the directory through the QT_QPA_PLATFORM_PLUGIN_PATH variable.
or
The other option, which I prefer is to create a qt.conf file in the same directory as your executable. The contents of which would be:
More information regarding this can be found here and at
using qt.conf
用这个方法解决了 export QT_ ...
http://stackoverflow.com/questions/17106315/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without
are at runtime which may work for you.
The first is to export the path to the directory through the QT_QPA_PLATFORM_PLUGIN_PATH variable.
QT_QPA_PLATFORM_PLUGIN_PATH=path/to/plugins ./my_qt_app
or
export QT_QPA_PLATFORM_PLUGIN_PATH=path/to/plugins ./my_qt_app
The other option, which I prefer is to create a qt.conf file in the same directory as your executable. The contents of which would be:
[Paths] Plugins=/path/to/plugins
More information regarding this can be found here and at
using qt.conf
用这个方法解决了 export QT_ ...
http://stackoverflow.com/questions/17106315/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without
相关文章推荐
- Linux学习笔记:MySQL创建表
- centos下安装jdk环境
- Linux学习之rcp命令
- linux 查找目录或文件
- 卸载linux系统安装windows系统
- linux下文件夹压缩解压.tar , .gz , .tar.gz , .bz2 , .tar.bz2 , .bz , .tar.bz , .zip , .rar
- 模拟linux 双网卡双ip,实现multipath多路径连接存储
- vmware虚拟机上linux操作系统进行tty1~tty6切换方法和具体步骤
- centos 7 网卡配置详解
- 授权普通用户Linux crontab定时任务
- Linux 内核配置机制(make menuconfig、Kconfig、makefile)讲解
- Linux 内核配置机制(make menuconfig、Kconfig、makefile)讲解
- linux添加开机启动脚本
- Linux 内核配置机制(make menuconfig、Kconfig、makefile)讲解
- linux下last与lastb命令详解
- linux更改文件属性的三个命令(chmod,chgrp,chown)的使用
- CentOS-Samba服务
- linux特殊符号内置变量
- Linux学习之telnet命令
- 阿里云Centos端口转发