-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.6.2
-
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