Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58644

Unable to cross compile for Raspberry Pi 2 - missing config information in test during configure step

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.8.0
    • Build System
    • None
    • Ubuntu 14.04 in Parallels VM, cross compiling for Raspberry Pi 2

    Description

      I built Qt 5.8.0 for the Raspberry Pi:

      ./configure -commercial -confirm-license -release -static -opengl es2 -optimized-qmake -no-pch -make libs -make tools -reduce-exports -sysroot <sysroot> -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=<toolchain_location> -prefix <sysroot> -I <sysroot>/usr/include/arm-linux-gnueabihf -L <sysroot>/usr/lib/arm-linux-gnueabihf -qt-zlib -qt-libjpeg -qt-libpng -no-xcb -qt-xkbcommon -qt-pcre -qt-harfbuzz -skip wayland
      

      The response I get includes:

      QPA backends:
        DirectFB ............................... no
        EGLFS .................................. yes
        EGLFS details:
          EGLFS i.Mx6 .......................... no
          EGLFS i.Mx6 Wayland .................. no
          EGLFS EGLDevice ...................... yes
          EGLFS GBM ............................ yes
          EGLFS Mali ........................... no
          EGLFS Rasberry Pi .................... no
          EGL on X11 ........................... yes
        LinuxFB ................................ yes
        Mir client ............................. no
      

      The problem lies with the line, EGLFS Rasberry Pi (which is also a typo). Further inspection demonstrates that the configure test cannot find the Broadcom VideoCore (bcm_host) header file and library. This is fixed by adding the following to qtbase/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro:

      	CONFIG += egl
      

      After I made this change, compilation was successful.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              mikepitop Mike Roberts
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes