![08aa3889231ba35dd736e3ee64410df7.png](https://i-blog.csdnimg.cn/blog_migrate/98b5b9f72e65c1852b22d8b74a46192a.jpeg)
安装
sudo apt-get install build-essential
sudo apt-get install qtcreator
sudo apt-get install qt5-default
安装帮助文档和example
sudo apt-get install qt5-doc
sudo apt-get install qt5-doc-html qtbase5-doc-html
sudo apt-get install qtbase5-examples
卸载
sudo apt-get remove qt5-default
只是卸载qtcreator
sudo apt-get remove qtcreator
卸载qtcreator和它的依赖库
sudo apt-get remove --auto-remove qtcreator
清空
清空qtcreator
sudo apt-get purge qtcreator
清空qtcreator以及它的依赖
sudo apt-get purge --auto-remove qtcreator
设置环境变量
执行nano ~/.bashrc 添加如下内容:
QTDIR=/opt/Qt/5.15.2/gcc_64
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH LD_LIBRARY_PATH
ctrl + o write to file
ctrol + x quite
linux下qt找不到 GL库问题解决
如果没有安装GL
执行下面命令解决:
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev