Solved Cross compiling QT 5.5 or 5.6 for Raspberry Pi2 with EGLFS failing
-
Hi,
I have been following the instructions from: http://wiki.qt.io/RaspberryPi2EGLFS
But I end up with the following error:
qeglfsbrcmintegration.cpp:35:22: fatal error: bcm_host.h: No such file or directory
#include <bcm_host.h>Various suggestions from Stackoverflow did not resolve the issue. My host system is Ubuntu 14.04 and I am using the latest Raspbian image as my base on the Pi 2
Was anybody able to work around this?
Thanks
-
Hi,
Did u checked summer file ? is it matching : http://wiki.qt.io/RaspberryPi2EGLFS ? I am also trying same, Compiling and install was not problem but i could not run the example after deplying qt into raspberry. -
Yes, my summary after config matches the description on the wiki.
-
Update:
I found a valuable tip here:
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/2But it had 2 mistakes regarding the path for Raspberry Pi 2 (instead of Raspberry Pi) and the includes need $$ instead of $.
So in summary you need to add the following into: 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
At least that got my past the compile error.
[edit: added space between doubled $ signs to show the difference. Must be removed in .pro file SGaist]