QT4.8.1安装教程

2017-01-12 19:15:02来源:CSDN作者:u011011827人点击

参考

Ubuntu下QT的安装教程
Ubuntu下安装Qt全部过程

环境:

linux@ubuntu:~$ cat /proc/versionLinux version 3.5.0-23-generic (buildd@akateko) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013

前提:

sudo apt-get install build-essential//提示该软件包已经安装,常用的编译工具所以包里面的工具make和g++就已经安装好了

失败经验

在http://wiki.qt.io/Install_Qt_5_on_Ubuntu上,根据教程

wget http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-linux-x64-5.7.0.run//不成功,一直没有应答

在https://www.zhihu.com/question/27387909上,根据教程

sudo apt-get install qt5-default qtcreator//不成功然后sudo apt-get install qtcreator //成功安装
有建议去官网下载离线安装包,已经申请,还无回应.然后我我去百度云下了一个,地址为http://pan.baidu.com/s/1qYq9exu还没有装

成功经验

---------------------------------------------------------------------------------------前面已经用命令sudo apt-get install build-essential安装好了g++和make工具这一系列步骤在/usr/local/Trolltech/Qt-4.8.1/bin下安装命令---------------------------------------------------------------------------------------1/下载源码包qt-everywhere-opensource-src-4.8.1.tar.gz    源码包的地址为http://download.csdn.net/detail/dcmilan/4391529,该包被作者分成了十二份,地址为第一部分的下载地址2/sudo apt-get install libX11-dev libXext-dev libXtst-dev 3/解压4/./configure//十几分钟5/make//两个小时6/sudo make install //几分钟---------------------------------------------------------------------------------------配置/etc/profile---------------------------------------------------------------------------------------打开/etc/profile,在末行添加export QTDIR=/usr/local/Trolltech/Qt-4.8.1   export PATH=$QTDIR/bin:$PATH   export MANPATH=$QTDIR/man:$MANPATH   export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH  ---------------------------------------------------------------------------------------重启/etc/profile---------------------------------------------------------------------------------------source /etc/profile---------------------------------------------------------------------------------------安装qtcreator---------------------------------------------------------------------------------------sudo apt-get install qtcreator---------------------------------------------------------------------------------------然后应该是配置qtcreator,但是我没配置,然后写了一个demo,能够运行,不知道为什么---------------------------------------------------------------------------------------

备注,命令行安装的qtcreator版本信息

linux@ubuntu:~/workDir/Hi3520D_SDK_V1.0.3.2/mpp/sample$ qtcreator -versionQt Creator 2.4.1 based on Qt 4.8.1  AnalyzerBase 2.4.1 Code Analyzer Base Plugin  Bazaar 2.4.1 Bazaar integration.  BinEditor 2.4.1 Binary editor component.  Bookmarks 2.4.1 Bookmarks in text editors.  CMakeProjectManager 2.4.1 CMake support  CVS 2.4.1 CVS integration.  ClassView 2.4.1 Class View component.  CodePaster 2.4.1 Codepaster plugin for pushing/fetching diff from server  Core 2.4.1 The core plugin for the Qt IDE.  CppEditor 2.4.1 C/C++ editor component.  CppTools 2.4.1 Tools for analyzing C/C++ code.  Debugger 2.4.1 Debugger integration.  Designer 2.4.1 Qt Designer integration.  FakeVim 2.4.1 VI-style keyboard navigation.  Find 2.4.1 Provides the find widget and the hooks for find implementations.  GLSLEditor 2.4.1 Editor for GLSL.  GenericProjectManager 2.4.1 Generic support  HelloWorld 2.4.1 Hello World sample plugin.  Help 2.4.1 Help system.  ImageViewer 2.4.1 Image Viewer component.  Locator 2.4.1 Provides the Locator widget and the hooks for Locator filter implementations.  Macros 2.4.1 Macros in text editors.  Madde 2.4.1 Support for MADDE-based platforms, including Fremantle and MeeGo 1.2 Harmattan.  Mercurial 2.4.1 Mercurial integration.  Perforce 2.4.1 Perforce integration.  ProjectExplorer 2.4.1 ProjectExplorer framework that can be extended with different kind of project types.  QmlDesigner 2.4.1 Visual Designer for QML files.  QmlJSEditor 2.4.1 Editor for QML and JavaScript.  QmlJSInspector 2.4.1 Debugger for QML files  QmlJSTools 2.4.1 Tools for analyzing Qml/JS code.  QmlProfiler 2.4.1 Qml Profiler Plugin  QmlProjectManager 2.4.1 Qt Quick support  Qt4ProjectManager 2.4.1 Provides project type for Qt 4 pro files and tools.  QtSupport 2.4.1 Provides support code for build systems.  RemoteLinux 2.4.1 Support for deployment to and execution on a remote Linux host.  ResourceEditor 2.4.1 Editor for qrc files.  ScmGit 2.4.1 Git integration.  Subversion 2.4.1 Subversion integration.  TaskList 2.4.1 Use .tasks-files to populate the Issues view.  TextEditor 2.4.1 Text editor framework and the implementation of the basic text editor.  UpdateInfo 2.4.1 Displays Update-Infos for Qt Installer Framework-based Updaters.  VCSBase 2.4.1 Version Control System Base Plugin  Valgrind 2.4.1 Valgrind Plugin  Welcome 2.4.1 Default Welcome Screen Plugin(C) 2011 Nokia Corporation

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台