Install and configure QT 5 in Ubuntu 13.04

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.