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

mkspec for the device linux-rasp-pi-g++ has issues with qpa platform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.4.0
    • 5.2.0, 5.2.1, 5.3.1
    • QPA: EGLFS
    • None
    • cross compile and native compile of the raspberry pi.
    • 848d29cca3afa92f1ae729a1c882e8e3e56fb3e3

    Description

      This is the 1st bug that I have ever reported on qt. so if there is any more info I will get back asap.

      when cross compiling or native compiling for the device linux-rasp-pi-g++ some things are set that maybe should not be set.

      1) I wonder why the default platform is getting set to wayland as there is no distros for the pi that I know of that us wayland out of the box

      QT_QPA_DEFAULT_PLATFORM = wayland
      maybe this should be changed to eglfs

      2) there is not a distro out there that I know of that uses debian squeeze as there base. contains(DISTRO, squeeze) maybe this can stay but I would also like to see it set for jessie and wheezy as they are the most used OS for the pi out there.

      3) there are no options for the DISTRO wheezy or jessie.
      this makes it so when one is compiling for the pi it is not adding the include paths for
      $$[QT_SYSROOT]/opt/vc/include \
      $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \
      $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux

      and eglfs platform plugin fails to find these on the compile.

      4) this is more of a request but maybe there should be more info on this on the wiki. I am willing to write about it but I am new here and would like some guidance.

      My configure of qtbase

      ./configure -opengl es2 -qpa eglfs -dbus -no-xcb -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/home/joseph/raspberry/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -nomake tests -prefix /opt/qt5.2.1-rpi -no-pch -skip qttools -no-compile-examples

      The Error
      mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp:50:22: fatal error: bcm_host.h: No such file or directory

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            mrbearpiman Joseph Mills
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes