赞
踩
1.可以到官网地址:https://download.qt.io/official_releases/online_installers/ 下载 qt-unified-linux-x64-online.run 安装文件。
2.修改文件权限为可执行权限,chmod +x qt-unified-linux-x64-online.run
3.然后运行 ./qt-unified-linux-x64-online.run
4. 输入Qt账号,没有注册一个.
5.然后按照提示,一步一步安装 .(注意:QT需要磁盘至少有27G的空间)
进入到安装目录的 QtCreator的 bin 目录里,然后执行./qtcreator。
如果报一下错:Could not load the Qt platform plugin “xcb“ in ““ even though it was found .,,,,,
可以执行在 .bashrc文件里添加 export QT_DEBUG_PLUGINS=1 ,然后source .bashrc.
再次启动qtcreator, 如果还是报libxcb-cursor. so. 0: cannot open shared object file: No such file
or directory
则需要安装 sudo apt install libxcb-cursor0 。
然后就可以正常启动qtcreator了。
选择创建Create Project” --> “Application(Qt)” --> “Qt Widget Application
创建完成后,点击执行按钮。
如果报错GL/gl.h: No such file or directory, 则需要安装opengl库,
sudo apt-get install libglu1-mesa-dev
然后再次运行即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。