title: How to cross-compile a Qt Quick application for the Raspberry Pi?
body: <p>I successfully cross-compiled "standard" Qt applications (<code>QT += core gui</code>) for a Raspberry Pi, but I'm having trouble to do the same with Qt Quick (<code>QT += quick</code>).</p>
  
  <p>I installed a <a href="http://wiki.qt.io/RaspberryPi_Beginners_Guide" rel="nofollow noreferrer">cross-compiling tool-chain</a> and successfully <a href="https://stackoverflow.com/questions/13626726/an-error-building-qt-libraries-for-the-raspberry-pi/33254355#33254355">compiled Qt with it</a>, and my Qt GUI applications can now run on the Raspberry Pi. </p>
  
  <p>Now I tried to run one of the Qt Quick examples on the Raspberry Pi, without success. I open the example from Welcome/Examples, I can successfully build and run them on my PC with Debian, but if I try to build it for the Raspberry Pi (by adding the same kit I used for the regular Qt applications), it doesn't even compile. It gives the following error:</p>
  
  <pre><code>:-1: error: Unknown module(s) in QT: quick
  </code></pre>
  
  <p>This seems to indicate that Qt Quick is not part of my Qt build.</p>
  
  <p>I checked again how the cross-compiler is configured:</p>
  
  <pre><code>Building on:   linux-g++ (x86_64, CPU features: mmx sse sse2)
  Building for:  devices/linux-rasp-pi-g++ (arm, CPU features: none detected)
  Platform notes:
  
              - Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
  
  Build options:
    Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus egl eglfs eglfs_brcm enable_new_dtags evdev eventfd freetype full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-pkg-config opengl opengles2 pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config system-zlib threadsafe-cloexec 
    Build parts ............  libs
    Mode ................... release
    Using sanitizer(s)...... none
    Using C++ standard ..... c++11
    Using gold linker....... no
    Using new DTAGS ........ yes
    Using PCH .............. yes
    Target compiler supports:
      Neon ................. no
  
  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 ................... no
    CUPS ................... no
    Evdev .................. yes
    FontConfig ............. no
    FreeType ............... yes (bundled copy)
    Glib ................... no
    GStreamer .............. no
    GTK theme .............. no
    HarfBuzz ............... yes (bundled copy)
    Iconv .................. yes
    ICU .................... no
    Image formats: 
      GIF .................. yes (plugin, using bundled copy)
      JPEG ................. yes (plugin, using bundled copy)
      PNG .................. yes (in QtGui, using bundled copy)
    libinput................ no
    Logging backends: 
      journald ............... no
      syslog   ............... no
    mtdev .................. no
    Networking: 
      getaddrinfo .......... yes
      getifaddrs ........... yes
      IPv6 ifname .......... yes
      libproxy.............. no
      OpenSSL .............. no
    NIS .................... yes
    OpenGL / OpenVG: 
      EGL .................. yes
      OpenGL ............... yes (OpenGL ES 2.0+)
      OpenVG ............... no
    PCRE ................... yes (bundled copy)
    pkg-config ............. no 
    PulseAudio ............. no
    QPA backends: 
      DirectFB ............. no
      EGLFS ................ yes
        EGLFS i.MX6....... . no
        EGLFS KMS .......... no
        EGLFS Mali ......... no
        EGLFS Raspberry Pi . yes
        EGLFS X11 .......... no
      LinuxFB .............. yes
      Mir client............ no
      XCB .................. no
    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
    tslib .................. no
    udev ................... no
    xkbcommon-x11........... no
    xkbcommon-evdev......... no
    zlib ................... yes (system library)
  </code></pre>
  
  <p>Qt Quick doesn't even appear in the list of options. Does this mean that the cross-compiler doesn't support it? The option "QML debugging" makes me think that it should be, because what else should be using QML if not Qt Quick.</p>
  
  <p>OpenGL 2.0 is active, so that shouldn't be the problem.</p>