执行app qt库找不到 设置环境变量
安装了qt 执行app提示缺少库 指定库路径 临时解决办法/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by *)/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found/usr/lib/x86_64...
·
安装了qt 执行app提示缺少库 指定库路径 临时解决办法
/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by *)
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.12' not found
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found
创建脚本添加环境变量 (QT安装路径和库路径)
#!/bin/sh
export QTDIR=/home/sw/Qt5.12.3/5.12.3/gcc_64
#export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
export set LD_LIBRARY_PATH=$QTDIR:$QTDIR/lib/:$QT_QPA_PLATFORM_PLUGIN_PATH:$QT_QPA_FONTDIR:$LD_LIBRARY_PATH
./your.app &
给权限脚本和app
sudo chmod 777 ./*
执行脚本
sudo ./test.sh
更多推荐
已为社区贡献2条内容
所有评论(0)