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

记录一下ubuntu中安装QT时遇到的问题。

学习ITOP4412中——资料给的QT5.3.1安装运行没有问题,然后想更新最新的QT5.6.2。

离线下载qt-opensource-linux-x64-5.6.2.run,ubuntu完成安装。

主要问题:

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

百度了一下将Qt5.6.2中的platforms文件夹移到Qt5.6.2/Tools/QtCreator/bin中,仍然无法运行。


解决问题:

于是从提示的/platforms中的xcb程序函数库入手,即/platforms/libqxcb.so


ldd查看libqxcb.so的依赖库:

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

发现其中的libEGL.so.1——not found

于是find / -name "libEGL.so.1*“ 发现并没有安装这个so


于是尝试安装apt-get install -f libegl1-mesa 

失败出现:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing


更新 apt-get updata
重新 安装apt-get install -f libegl1-mesa 
安装成功
重新find / -name "libEGL.so.1*"
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
查找到了新安装的libEGL.so.1
于是尝试重新运行qtcreator
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
之前遇到的问题解决,成功运行QT creator
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "