Ubuntu under compilation Qt5

Source: Internet
Author: User
Tags error handling

Compile Step reference: http://doc.qt.io/qt-5/linux.html

We use source code and compiled directory separation to compile, so as to avoid the compilation of the host system and the target system independence. Reference: Qt Configure Options | Qt 5.5

Compile options:

.. /.. /qt-everywhere-opensource-src-5.4.1/configure-prefix ~/qt5.4.1debug-debug-opensource-confirm-license-nomake Tests-egl-no-eglfs-no-linuxfb-opengl Es2

-EGL-NO-EGLFS-NO-LINUXFB and-opengl are added to match the target board Es2

The purpose of the-EGL is to detach the program from the X11 running EGL on the host, consistent with the target version. dependent libraries are libegl1-mesa-dev. After you install this library,-EGLFS-LINUXFB is also configured to compile by default, and the host is not available, so you need to remove the-NO-EGLFS-NO-LINUXFB on the host.

The-opengl es2 target runs on Es2, so the host also uses Es2. Dependent Library Libgles2-mesa-deb

In order to support the fonts under the System Library directory, the Fontconfig option is required, and if not, install the corresponding library file.

Common options are included:

./configure--help See what each option means

./CONFIGURE-V view the detailed procedures for the configuration to see the specific cause of the failure

Common error Handling: http://www.linuxidc.com/Linux/2011-04/34307.htm

The next step is to compile the target board's QT library. Target board for Raspberry Pi Pi2

Http://www.cnblogs.com/zhangjiankun/p/4937435.html

Ubuntu under compilation Qt5

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.