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

Failed to cross compile Qt 5.6.2 on RPi 2/3 (fatal error: bcm_host.h: No such file or directory)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.6.2
    • Build System
    • None

      I build QT 5.6.2 for the Raspberry Pi 2/3 with the latest Raspbian image "2016-05-27-raspbian-jessie.img" by using this tutorial: https://wiki.qt.io/RaspberryPi2EGLFS

      The compilation failed with the error message:

      qeglfsbrcmintegration.cpp:35:22: fatal error: bcm_host.h: No such file or directory
      #include <bcm_host.h>
      

      On the side https://forum.qt.io/topic/62264/failed-to-cross-compile-qt-5-6-on-rpi-2-fatal-error-bcm_host-h-no-such-file-or-directory there is a solution for this issue.

      It is necessary to add the following lines to "qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf"

      +INCLUDEPATH  += $$[QT_SYSROOT]/opt/vc/include
      +INCLUDEPATH  += $$[QT_SYSROOT]/opt/vc/include/interface/vcos
      +INCLUDEPATH  += $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads
      +INCLUDEPATH  += $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux
      

      After these changes to compilation succeeded.

      Maybe this bug is similar to #3 in QTBUG-40538

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

            lagocs Laszlo Agocs
            albrechtl albrechtl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes