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:
?
?
Add:
?
1, before the QT understanding too general, no deep understanding of the essence. As a cross-platform development environment, QT can develop programs on many platforms, such as Windows, Linux, and so on, but it wants to run and have a dedicated compilation environment. This environment is mainly for the QT library.
libraries correspond to many versions, such as mingw,vs2008, VS2010, etc., which are different for the compiler.
For QT Creator try to choose the newest, the version no difference.
: http://www.qt.io/download-open-source/
2, that is, QT itself has a cross-platform, which system can be used, but must use a specific cross-compiling software to compile the QT program.
QT Creator is just a tool, write code, in fact, the source does not need to exist. At this time the program may not have the source code hints, but it is very convenient, just write code a platform, completely can be compiled on another platform.
This must be noted, in which platform to use the convenience, we can be on which platform to compile the program.
3, but there is an important aspect to note, after all, you are on Linux on the development of the program, we can be on the PC above the Linux to verify, and then run the program in arm. Here's the trouble with the place is that we need to
The following program is programmed under the Windows platform and then runs inside arm.
?
There's one more thing to be aware of is CYGWIN, a cross-platform development environment.
4, to the above website download qt offline package, about 650M, including source code and QT Creator. Download the corresponding version of the QT program according to your computer.
Installation and configuration of QT under Linux