Qt SDK 4.8 Installation Instructions
来源:互联网 发布:先科网络机顶盒刷机包 编辑:程序博客网 时间:2024/06/06 04:55
1. First determine your Ubuntu Linux operating system bit version by opening up a terminal and typing the following below and download the matching Qt SDK bit version for your operating system. For example, if you are on 32-bit Ubuntu Linux then download 32-bit Qt SDK, if you are on 64-bit Ubuntu Linux then download 64-bit Qt SDK.
- Type/Copy/Paste: file /sbin/init
- Note the bit version of your Ubuntu Linux operating system architecture it will display whether it is 32-bit or 64-bit.
- Select your Ubuntu Linux system architecture such as 32-bit or 64-bit version of the Qt SDK. Also you can add development libraries so that you are able to run Qt applications without compilications by following these steps.
- Note: When it comes to downloading the SDK, download the offline installation due to the fact it takes a long time to download unless you have a really fast download connection.
- You have two methods when it comes to downloading the Qt SDK the online installer method or the offline installer method. I prefer to just download the full SDK using the offline method. Because the classes that make up Qt SDK are so large it takes several hours on a slow connection to download the SDK. This may or may not be a turn off for some users who want to try out the Qt SDK.
- Suggestion: I would strongly recommend using the offline installer instead of the online installer unless you have a really fast connection.
- Type/Copy/Paste: sudo apt-get install synaptic
- Type/Copy/Paste: sudo apt-get update
- This command is used to update and to resynchronize the package index files from their sources via the Internet.
- Type/Copy/Paste: sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
- This command adds additional Qt development libraries to your Ubuntu Linux system allowing Qt programs to run smoothly on your system.
- This will change you into the Downloads directory on your system
5. Type/Copy/Paste: sudo -s chmod u+x QtSdk-offline-linux-x86_64-v1.2.1.run
- This will make the Qt SDK executable for all users on your system
6. Install the Qt SDK by issuing the following command
- Type/Copy/Paste: sudo -s ./QtSdk-offline-linux-x86_64-v1.2.1.run -style cleanlooks
- You must be root or have superuser privelages to install the Qt SDK
8. Change the permisions on the Qt SDK directory location to be available by all users by issuing the following command
- Type/Copy/Paste: sudo -s chmod -R 777 /opt/QtSDKThis will make the Qt SDK executable for all users on your system
9. Type/Copy/Paste: sudo -s chmod -R 777 /home/"your_user_name"/.config/Nokia
- This will prevent error messages when you start QtCreator, stating it can not write to the /home/"your_user_name"/.config/Nokia directory.
10. Once the Qt program is installed, open up a terminal and use a text editor such as nano or gedit to edit your /etc/profile.
- Type/Copy/Paste: sudo -s nano /etc/profile
- or
- Type/Copy/Paste: sudo -s gedit /etc/profile
Type/Copy/Paste:
- PATH=/opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin:$PATH
- export PATH
13. Save the /etc/profile file and exit
14. Reload the /etc/profile file by issuing the following command
- Type/Copy/Paste: . /etc/profile
- Make sure you enter a . and then a space in order to reload your /etc/profile file
Type/Copy/Paste: which qmake
- You should receive a response such as the one below
- /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake
Type/Copy/Paste: qmake -version
You should receive a response similar to this:
- 'QMake version 2.01a
- 'Using Qt version 4.8.1 in /opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib
16. This lets you know that you are able to compile Qt programs from the command line. Now you are all set to compile Qt programs on your Ubuntu Linux system. Once the Qt SDK is successfully installed on your system you might want to try compiling your first Qt program see this document for more informationHow to Create Your First Qt Program on Ubuntu Linux.
- Qt SDK 4.8 Installation Instructions
- Spacewalk Installation Instructions
- Installation Instructions for Linux Systems
- FreeBSD 9.0-RELEASE Installation Instructions
- Zend Guard Loader installation instructions
- "Real World OCaml" Installation Instructions
- JSS installation instructions for macOS
- Installation instructions for gdb & gdbserver on ARM7TDMI
- Installation instructions for the ThinkPad SL400
- NWPA Update Package Installation Instructions for
- Eclipse Download and Installation (for Python) Instructions
- Setup Instructions Using the PowerVR SDK
- Windows Installation Instructions for Subversion w/Trac 0.8.1
- Google Plugin for Eclipse 3.4 (Ganymede) Installation Instructions
- ODAC (11.2.0.3.0) Installation Instructions, Setup, and Notes (zz)
- Installation Instructions for Intel® Hardware Accelerated Execution Manager
- Android SDK installation
- Ubuntu SDK installation
- linux 之 snprintf函数用法
- 豆瓣读书网
- YUV player 集锦
- 【Windows 8系统中的多种语言的搞定方法】
- c 输出地址格式符%p
- Qt SDK 4.8 Installation Instructions
- HDU 1251 统计难题 - from lanshui_Yang
- 黑马程序员-7K面试之银行调度系统
- 将GDB中的输出定向到文件
- Block学习
- extjs学习
- Xml相关
- ubuntu 下的翻译软件 openyoudao 以及 txt文档中文显示乱码解决
- UNIX环境高级编程——线程同步之条件变量以及属性