ubuntu下新安装的qtcreator无法打开?编译好的qt程序缺少qtcore库文件?
ubuntu下新安装的qtcreator无法打开?编译好的qt程序缺少qtcore库文件?
试试添加qt和qtcreator到环境变量。
sudo vi /etc/profile
新增
export QTDIR=你的qt根目录
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTCREATOR=你的qtcretor根目录
export PATH=$QTCREATOR/bin:$PATH
export LD_LIBRARY_PATH=$QTCREATOR/lib/Qt/lib:$LD_LIBRARY_PATH