Ubuntu 16.04 X86_X64 系统
一. 下载Qt5
下载地址:Qt5.5.1
- 64位下载地址 qt-opensource-linux-x64-5.5.1.run
- 32位下载地址 qt-opensource-linux-x86-5.5.1.run
二. 安装Qt5
chmod +x qt-opensource-linux-x64-5.5.1.run
./qt-opensource-linux-x64-5.5.1.run
直接next即可安装完成。
ldconfig 配置
sudo sh -c "echo "/home/ke/softwares/Qt5.5.1/5.5/gcc_64/lib">> /etc/ld.so.conf"
sudo sh -c "echo "/home/ke/softwares/Qt5.5.1/Tools/QtCreator/lib/qtcreator" >> /etc/ld.so.conf"
刷新权限
sudo ldconfig
PATH环境变量设置
添加下列内容到~/.bashrc
/home/ke/softwares/Qt5.5.1/Tools/QtCreator/bin
Question
打开Qtcreator,报错如下
error while loading shared libraries: libgstapp-0.10.so.0: cannot open shared或打不开帮助模块
解决方式
sudo apt-get install libgstreamer0.10-0
sudo apt-get install libgstreamer-plugins-base0.10-0