由于环境变量配置问题,运行程序时出现如下报错
qt.qpa.plugin: Could not find the Qt platform plugin "linuxfb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
需配置环境变量:QT_QPA_PLATFORM_PLUGIN_PATH和tslib/lib路径
export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/tslib/lib
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins/
网上都说要配置QT_QPA_PLATFORM_PLUGIN_PATH,可是我发现如果export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/tslib/lib没有后面的:/usr/local/tslib/lib也会报这个错
不知道为什么