方法一:
sudo apt-get install qt4-dev-tools
sudo apt-get install qtcreator
方法二:
下载http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86-opensource-2010.01.bin,
chmod u+x qt-sdk-linux-x86-opensource-2010.01.bin
./qt-sdk-linux-x86-opensource-2010.01.bin
按步骤安装即可,
我这里安装到/usr/qtsdk-2010.01目录下,
然后,gedit ~/bashrc
在最后一行处加上
PATH=$PATH:/usr/qtsdk-2010.01/qt/bin
export PATH
即可。
这里既安装了qtsdk,又安装了qtcreator。
1、运行qtcreator可能会显示No valid Qt version set. Set one in Tools/Options之类的信息
“安装完毕之后,新建一个工程,发现如题所示的error,version有问题。在网上查了下,很多人都有碰到,但是都没有写明如何解决,其实,解决方法在Qt Creator的帮助文件里就有提到了:
Term
Meaning
Auto-detected Qt
|
The version of Qt installed on your system. This is the Qt version for theqmake command found in your PATH. |
Default Qt
|
The version of Qt configured in Tools -> Options -> Qt 4 -> Default Qt Version. This is the Qt version used by your new projects. It defaults to Auto-detected Qt. |
Project Qt
|
The version of Qt configured in Build&Run -> Build Settings -> Build Configurations. This is the Qt version that is actually used by a particular project. It defaults to Default Qt. |
Shadow Build
|
Shadow building means building a project in a separate directory, the build directory. The build directory is different from the source directory. One of the benefits of shadow building is that it keeps your source directory clean. Shadow building is the best practice if you need many build configurations for a single set of source. |
|
2、也有可能遇上这样的错误信息:make : g++: 命令未找到
出现错误是因为没有安装g++编译器,运行以下命令来安装:
sudo apt-get install g++
应该就好了,如果还没好,再安装这个:
sudo apt-get install pentium-builder
分享到:
相关推荐
安装qt5.12.1中的mqtt的库,首先要先安装qt5.12.1,保证qmake 能用在运行脚本
ubuntu20.04安装QT 一、 安装cmake 二、 安装gcc和g++ 三、 下载QT 四、 安装QT 五、 故障解决
ubuntu下安装Qt全程详细图解-新手版.pdf
在Ubuntu环境下安装qt+opencv并配置环境。 由于上传大小有限制,故需要先下载文档,文档中有网盘分享地址。 可供下载。
ubuntu10.10建立QT开发环境图文详解 安装g++,ubuntu默认是不带g++的,如果不安装的话,后面是 无法进行桌面版的qt应用程序进行编译
ubuntu下QT安装方法 ubuntu下QT安装方法 ubuntu下QT安装方法 ubuntu下QT安装方法
ubuntu下安装QT依赖 sudo apt-get install libqt3-dev不行
ubuntu 20.04 安装QT
QT linux
ubuntu安装qt步骤.doc
qt安装教材
主要介绍了ubuntu18.04 安装qt5.12.8及环境配置的教程,本文通过图文并茂的形式给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
Ubuntu14.04安装QT无法运行的解决方法,内含libdbus和libfreetype库。 直接解压到Qt/Tools/QtCreator/lib/Qt/lib/目录下即可使用。 详细使用方法请看https://www.jianshu.com/p/da6a0706fe07
Ubuntu安装配置Qt环境
以前在Redhat下安装安装QT开发界面非常麻烦,仅编译就花费4个小时左右,还要下载源代码。自从开始用Ubuntu系统以来,感觉相当的好,现将Ubuntu下如何安装QT做以介绍。
包含Tiny6410在Ubuntu下安装Qt所需的全部安装包 包括 (1)arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz(交叉编译环境) (2)qt-everywhere-opensource-src-4.8.5.tar.gz(Qt 的源码) (3)qt-creator-linux-x86_64-...
Ubuntu上Qt安装以及配置完整步骤(外加安装qtchart)-附件资源
1. 使用QT开发的简易串口程序 2. 使用socat 虚拟串口,可在linux系统下测试。
简单介绍如何在Ubuntu下进行Qt的静态编译,并用编译出来的静态库编译我们的程序
2、sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer qt4-dev-tools 包含了Qt Assistant及Qt Linguist等工具。 qt4-doc 是帮助文档,包含了Qt中各个类库的详细说明以及丰富的例子...