Qt5 For Mali Binaries

Native compilation of Qt5 to use X11 mali drivers (see Mali_binary_driver for the drivers installation instructions):

wget http://download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.tar.gz  tar -xzf qt-everywhere-opensource-src-5.1.0.tar.gz   cd qt-everywhere-opensource-src-5.1.0 ./configure -release -opensource -confirm-license -opengl es2 -no-eglfs -no-linuxfb -no-pch make make install

This will take hours to compile on Allwiner A10 device! You may want to run it overnight.

It may make sense to check the configure output before starting compilation. It may look like this (be sure that OpenGL ES 2.x is detected): Configure summary

Build type:   linux-g++ (arm, CPU features: neon) Platform notes:

- Also available for Linux: linux-kcc linux-icc linux-cxx Build options: Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend c++11 clock-gettime clock-monotonic concurrent cups dbus egl evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gstreamer gtk2 gtkstyle iconv icu inotify ipv6ifname large-config largefile libudev medium-config minimal-config mremap neon nis opengl opengles2 openssl pcre png pulseaudio qpa qpa reduce_exports reduce_relocations release rpath shared small-config system-freetype system-jpeg system-png system-zlib v8 v8snapshot xcb xcb-glx xcb-render xcb-xlib xinput2 xkbcommon-qt xlib xrender Build parts ............ libs tools examples Mode ................... release Using C++11 ............ yes Using PCH .............. no Target compiler supports: iWMMXt/Neon .......... no/yes

Qt modules and options: Qt D-Bus ............... yes (loading dbus-1 at runtime) Qt Concurrent .......... yes Qt GUI ................. yes Qt Widgets ............. yes JavaScriptCore JIT ..... yes (To be decided by JavaScriptCore) QML debugging .......... yes Use system proxies ..... no

Support enabled for: Accessibility .......... yes ALSA ................... yes CUPS ................... yes FontConfig ............. yes Iconv .................. yes ICU .................... yes Image formats: GIF .................. yes (plugin, using system library) JPEG ................. yes (plugin, using system library) PNG .................. yes (in QtGui, using system library) Glib ................... yes GStreamer .............. yes GTK theme .............. yes Large File ............. yes libudev ................ yes Networking: getaddrinfo .......... yes getifaddrs ........... yes IPv6 ifname .......... yes OpenSSL .............. yes (loading libraries at run-time) NIS .................... yes OpenGL ................. yes (OpenGL ES 2.x) OpenVG ................. no PCRE ................... yes (bundled copy) pkg-config ............. yes PulseAudio ............. yes QPA backends: DirectFB ............. no   EGLFS ................ no   KMS .................. no   LinuxFB .............. no   XCB .................. yes (system library) MIT-SHM ............ yes Xcursor ............ yes (loaded at runtime) Xfixes ............. yes (loaded at runtime) Xi ................. no     Xi2 ................ yes Xinerama ........... yes (loaded at runtime) Xrandr ............. yes (loaded at runtime) Xrender ............ yes XKB ................ no     XShape ............. yes XSync .............. yes XVideo ............. yes Session management ..... yes SQL drivers: DB2 .................. no   InterBase ............ no   MySQL ................ no   OCI .................. no   ODBC ................. yes (plugin) PostgreSQL ........... no   SQLite 2 ............. no   SQLite ............... yes (plugin, using bundled copy) TDS .................. no udev ................... yes xkbcommon .............. yes (bundled copy) zlib ................... yes (system library)

NOTE: libxkbcommon 0.2.0 (or higher) not found on the system, will use the bundled version from 3rd party directory.

Qt is now configured for building. Just run 'gmake'. Once everything is built, you must run 'gmake install'. Qt will be installed into /usr/local/Qt-5.1.0

Prior to reconfiguration, make sure you remove any leftovers from the previous build.

Now in order to test it, we can download and compile the Qt5 Cinematic Experience demo:

wget http://quitcoding.com/download/Qt5_CinematicExperience_rpi_1.0.tgz tar -xzf Qt5_CinematicExperience_rpi_1.0.tgz cd Qt5_CinematicExperience_rpi_1.0 export PATH=/usr/local/Qt-5.1.0/bin:$PATH qmake make DISPLAY=:0 ./Qt5_CinematicExperience --fullscreen

There are also many other Qt5 demos.