Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Cross compiling QT 5.5 or 5.6 for Raspberry Pi2 with EGLFS failing

Cross compiling QT 5.5 or 5.6 for Raspberry Pi2 with EGLFS failing

Scheduled Pinned Locked Moved Solved QtonPi
4 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mr_modoM Offline
    mr_modoM Offline
    mr_modo
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vish
      wrote on last edited by vish
      #2

      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.

      Development is possible at any level.

      1 Reply Last reply
      0
      • mr_modoM Offline
        mr_modoM Offline
        mr_modo
        wrote on last edited by
        #3

        Yes, my summary after config matches the description on the wiki.

        1 Reply Last reply
        0
        • mr_modoM Offline
          mr_modoM Offline
          mr_modo
          wrote on last edited by SGaist
          #4

          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/2

          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]

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved