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