Qt 5 has been around for a while. The official website shows that qt5 has brought many new features, so I also want to try it. I have been using Windows 13.04 for a while. Now I want to configure Qt in Ubuntu for ARM development.
A significant new change in QT 5 is that the installation package is simplified and we no longer need to be like QT 4. X downloads the installation packages of QT library and QT creator separately, but integrates these packages into an installation package, which greatly facilitates developers!
I downloaded the offli version, the downloaded installation package name is qt-linux-opensource-5.0.2-x86-offline.run, click directly into the installation interface!
There is nothing to say about installation. Just click Next!
After selecting the installation path, I will default it and it will not be changed
I have selected all components for installation.
Agree to the GPL Protocol
Install it. I run it in a virtual machine. It's quite slow.
After installation, it can be compiled in QT creator.ProgramBut I will see the inexplicable "No such file or directory", which cannot be solved. Baidu seems to have installed less OpenGL libraries:
Sudo apt-Get install Mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
After the above components are installed, You can compile them normally! Compiled the calculator example. Haha
However, you still cannot compile the QT program on the terminal. I believe many people prefer the vi + qmake Programming Method on the terminal, instead of QT creator?
In this case, you need to configure the environment variable, add the QT directory to the environment variable, and then run the command line qmake.