Cross compiling QT 5.5 or 5.6 for Raspberry Pi2 with EGLFS failing
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
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?
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.
But 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]