reference:Compiling, installing, and configuring QT http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html Linux
- Download qt
This is 4.7.0 version qt-everywhere-opensource-src-4.7.0.tar.gz
- Copy and Unzip
Here I installed VMware Linux above, so Windows and Linux direct file sharing, recommended to use Samba,samba my previous notes are introduced, here is unknown to talk about.
Copy it to the directory below.
Decompression: Tar zxvf xxxxxx
- Configure and compile
Switch to the following directory and enter the command line:./configure
After the above configure, we need to compile it.
Make. It takes about 2 hours.
After make, we also need to install: Execute command make install
- Configuring Environment variables
This step is easy for beginners to forget, if this step is not implemented, will appear similar to: XXXX Shared library qtlib...so .... No such errors were found.
After configuration, there is another operation is to make the configuration effective, generally with source/etc/profile
But this method does not know how, every time to open a terminal or restart the computer will need to execute source/etc/profile.
So, we need to write the above command into the ~/.BASHRC, so that we don't have the problem just now.
Reference Document: http://blog.csdn.net/zzobin/article/details/7652309Linux under QT installation
- Validating and establishing shortcuts
Type the command: qmake-v
?
Here's how to create a shortcut:
Ln-s/usr/local/xxxxx/root/desktop If it's a user, it might be:/home/yourname/desktop
- Installing the QT---IDE is also qt_creator
A complete QT consists of two parts, one for the QT library and one for the IDE.
Installation process: http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html
1) First Download qt_creator
Website:http://download.csdn.net/detail/yanzi1225627/4435814qt-creator-linux-x86-opensource-2.5.0
2) Configure Samba services
Reference:http://www.cnblogs.com/whiteyun/archive/2011/05/27/2059670.htmlLinux Samba Detailed installation
This is probably the case:
3) Copy Installation
Copy the file to the desktop or other place under/opt/linuxsir, and modify the file attributes, then execute, which is the. bin file that can be executed directly.
After installation, as shown:
Installation and configuration of QT under Linux