Friday, November 14, 2014

Qt 5.3.2 Beaglebone Binaries

Overview

If you saw my Qt 5.2 Binaries post, this will look very familiar....

Prerequisites

For this build, I wanted to try to enable support for everything. I got close, but didn't want to put forth the extra effort for the packages that were not obvious to install. You can mix and match the following installs, depending on your needs.
> sudo apt-get install libicu-dev
> sudo apt-get install libcups2-dev
> sudo apt-get install libudev-dev
> sudo apt-get install libmtdev-dev
> sudo apt-get install libegl1-mesa-dev
> sudo apt-get install libopenvg1-mesa-dev

KMS seems to be already installed (libdrm-dev), but the configuration script cannot find it. Also, some more research is needed before GLX can be enabled. The Debian package search tool is an awesome resource for finding files in packages.

Configuration

Here is the command line I used to generate the make files:
> ./configure -v -opensource -confirm-license -prefix /usr/local/qt-5.3.2 -qt-xcb

The cross compile feature changed slightly from 5.2, but 5.3 detects the local environment fairly well, so you no longer need to pass "-device" into the configuration script.

The Qt configuration script takes about 20 minutes to run on a rev. C Beaglebone Black. It first builds a native version of qmake, which takes about 15 minutes, then it tests for available modules.

Here is the configuration summary:
Configure summary

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

- Also available for Linux: linux-kcc linux-icc linux-cxx

qmake vars .......... styles += mac fusion windows QT_LIBS_DBUS = -ldbus-1 QT_CFLAGS_DBUS = -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include QT_HOST_CFLAGS_DBUS = -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include QT_CFLAGS_GLIB = -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include QT_LIBS_GLIB = -pthread -lgthread-2.0 -lrt -lglib-2.0 QT_CFLAGS_QGTKSTYLE = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 QT_LIBS_QGTKSTYLE = -lgobject-2.0 -lglib-2.0 QT_CFLAGS_QGTK2 = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 QT_LIBS_QGTK2 = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 QT_CFLAGS_PULSEAUDIO = -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include QT_LIBS_PULSEAUDIO = -lpulse-mainloop-glib -lpulse -lglib-2.0 QMAKE_CFLAGS_FONTCONFIG = -I/usr/include/freetype2 QMAKE_LIBS_FONTCONFIG = -lfontconfig -lfreetype QMAKE_INCDIR_LIBUDEV = QMAKE_LIBS_LIBUDEV = -ludev QMAKE_X11_PREFIX = /usr QMAKE_XKB_CONFIG_ROOT = /usr/share/X11/xkb QMAKE_INCDIR_EGL = /usr/include/libdrm QMAKE_LIBS_EGL = -lEGL QMAKE_CFLAGS_EGL = QMAKE_CFLAGS_XCB = QMAKE_LIBS_XCB = -lxcb QMAKE_CFLAGS_DIRECTFB = -D_REENTRANT -I/usr/include/directfb QMAKE_LIBS_DIRECTFB = -ldirectfb -lfusion -ldirect -lpthread sql-drivers = sql-plugins = sqlite
qmake switches .........

Build options:
Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cups dbus directfb egl egl_x11 eglfs evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gtk2 gtkstyle iconv icu inotify ipv6ifname large-config largefile libudev linuxfb medium-config minimal-config mremap mtdev nis no-harfbuzz opengl openssl openvg pcre png posix_fallocate precompile_header pulseaudio qpa qpa reduce_exports release rpath shared small-config system-freetype system-jpeg system-png system-zlib xcb xcb-plugin xcb-qt xcb-sm xcb-xlib xinput2 xkbcommon-qt xlib xrender
Build parts ............ libs tools examples
Mode ................... release
Using C++11 ............ yes
Using PCH .............. yes
Target compiler supports:
iWMMXt/Neon .......... no/auto

Qt modules and options:
Qt D-Bus ............... yes (loading dbus-1 at runtime)
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
Large File ............. yes
QML debugging .......... yes
Use system proxies ..... no

Support enabled for:
Accessibility .......... yes
ALSA ................... yes
CUPS ................... yes
Evdev .................. yes
FontConfig ............. yes
FreeType ............... yes (system library)
Glib ................... yes
GTK theme .............. yes
HarfBuzz ............... no
Iconv .................. yes
ICU .................... yes
Image formats:
GIF .................. yes (plugin, using bundled copy)
JPEG ................. yes (plugin, using system library)
PNG .................. yes (in QtGui, using system library)
journald ............... no
mtdev .................. yes (system library)
Networking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
OpenSSL .............. yes (loading libraries at run-time)
NIS .................... yes
OpenGL / OpenVG:
EGL .................. yes
OpenGL ............... desktop
OpenVG ............... yes-auto
PCRE ................... yes (bundled copy)
pkg-config ............. yes
PulseAudio ............. yes
QPA backends:
DirectFB ............. yes
EGLFS ................ yes
KMS .................. no
LinuxFB .............. yes
XCB .................. yes (bundled copy)
EGL on X ........... yes
GLX ................ no
MIT-SHM ............ yes
Xcb-Xlib ........... 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 ................ yes
XShape ............. yes
XSync .............. yes
XVideo ............. yes
Session management ..... yes
SQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ no
OCI .................. no
ODBC ................. no
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... yes (plugin, using bundled copy)
TDS .................. no
udev ................... yes
xkbcommon .............. yes (bundled copy, XKB config root: /usr/share/X11/xkb)
zlib ................... yes (system library)

NOTE: libxkbcommon and libxkbcommon-x11 0.4.1 or higher not found on the system, will use the bundled version from 3rd party directory.
NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1. Configure with '-qreal float' to create a build that is binary compatible with 5.1.
Info: creating super cache file /media/sda2/qt5.3.2/bbb_all/.qmake.super

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

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



Before calling make, ensure that you have enough free space. The qt source folder starts at 920 Mb and will grow to 1.9 Gb during the compile (building only the libs requires 1.5 Gb and building libs and tools only requires 1.7 Gb). An additional 180 Mb is needed if a 'make install' is performed. I did a shadow build on a USB Flash drive (run /path/to/configure from an empty folder), as I was cutting it close on the internal eMMC. It took the BBB 12 hours to compile the libs only, 16 hours to compile the libs and tools, and 21 hours to compile libs, tools, and examples.

For convenience, I've included three zipped archives of the binaries for this build. The unlabeled build contains libs, tools, and examples. The others should be self explanatory. Once expanded, the libs package uses 94 Mb, the libs and tools package uses 104 Mb, and the full package uses 180 Mb

MD5SUM:
6dc968164bc532bea18b550f46660c3d  qt-5.3.2-no-examples.tar.xz(22 Mb)
ae7f9b7c8d0134e7c253500a64a9b9d7  qt-5.3.2-libs.tar.xz (18 Mb)
a735f85d028e1627fbfd031c58434ea5  qt-5.3.2.tar.xz (40 Mb)


Extract to /usr/local ('tar -xf file.tar.xz'), as the tarball contains the qt-5.3.2 folder in it.

4 comments:

  1. thanks for sharing.
    I'm using your binaries in beaglebone.
    but when I run applications which uses (for example: ../qt-5.3.2/examples/multimedia/audiodecoder) I recieve:

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.qudiodecode"
    Service missing error

    Please help me..What shoud I do? :( :( :(

    ReplyDelete
    Replies
    1. I'm not sure how to fix that problem, try running "ldd" on the application name, for example "ldd ../qt-5.3.2/examples/multimedia/audiodecoder". See if any libraries are missing. Also, there are 3 different audio plugins available. Ensure that your hardware has a PulseAudio driver.

      Delete
  2. thanks for sharing :)
    I am trying to build qt (5.3, 5.5 with egls) for roberts debian images but with no success, it is driving me crazy :)!
    How I can import these binaries in designer on host computer?
    best regards

    ReplyDelete