遇见linux端运行qt程序报错, Could not find the Qt platform plugin “xcb“ in ““ This application failed to st

简介

.zshrc 里面进行设置

export QT_QPA_PLATFORM_PLUGIN_PATH=/mnt/hdd1/software/qt5_12_0/5.12.0/gcc_64/plugins/platforms

其中路径为自己设定的路径

Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/14979119.html