ubuntu下qtcreator启动失败原因探查
作者:互联网
ubuntu下启动qtcreator时出现
Cannot load library /opt/Qt5.13.0/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (/opt/Qt5.13.0/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5: version `Qt_5.13' not found (required by /opt/Qt5.13.0/5.13.0/gcc_64/lib/libQt5XcbQpa.so.5))错误时
注:如何没有打印出详细信息,则在~/.bashrc下加入export QT_DEBUG_PLUGINS=1
保存退出后source ~/.bashrc即可显示如上得详细信息。
如上所示,出现此错误的原因是version 'Qt_5.13' not found,所以我们只需要让我们的环境能找到该版本即可,如下:
设置共享库环境变量
LD_LIBRARY_PATH=/opt/Qt5.13.0/5.13.0/gcc_64/lib(改成你自己的目录)
然后export LD_LIBRARY_PATH
之后再启动qtcreator就OK啦
标签:opt,探查,Qt5.13,Qt,lib,5.13,qtcreator,ubuntu 来源: https://blog.csdn.net/qq_23863665/article/details/121661769