Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cannot get configure script to detect "EGLFS Rasberry Pi"
Forum Update on Monday, May 27th 2025

Cannot get configure script to detect "EGLFS Rasberry Pi"

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 4 Posters 3.8k Views
  • 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.
  • D Offline
    D Offline
    Diracsbracket
    wrote on 6 Feb 2019, 09:05 last edited by
    #1

    Hi,
    I am trying to build Qt 5.12.1 natively on my Pi3B+ running the latest Raspbian Lite version, following the configure parameters of this guide:

    PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
    /home/pi/qt-everywhere-src-5.12.1/configure \
    -v \
    -opengl es2 -eglfs \
    -no-gtk \
    -opensource -confirm-license -release \
    -reduce-exports \
    -force-pkg-config \
    -nomake examples -no-compile-examples \
    -skip qtwayland \
    -skip qtwebengine \
    -skip qtscript \
    -no-feature-geoservices_mapboxgl \
    -qt-pcre \
    -no-pch \
    -ssl \
    -evdev \
    -system-freetype \
    -fontconfig \
    -glib \
    -prefix /opt/Qt5.12 \
    -qpa eglfs \
    QMAKE_CFLAGS="-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8" \
    QMAKE_CXXFLAGS="-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8" \
    QMAKE_LIBS_EGL="-lbrcmEGL -lbrcmGLESv2" QMAKE_LIBS_OPENVG="-lbrcmEGL -lbrcmOpenVG -lbrcmGLESv2" \
    QMAKE_LIBDIR_OPENGL_ES2=/opt/vc/lib QMAKE_INCDIR_OPENGL_ES2="/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux" \
    QMAKE_LIBDIR_EGL=/opt/vc/lib QMAKE_INCDIR_EGL="/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux" \
    QMAKE_LIBDIR_OPENVG=/opt/vc/lib QMAKE_INCDIR_OPENVG="/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux" \
    -DEGLFS_DEVICE_INTEGRATION=eglfs_brcm
    

    The Broadcom libraries are at installed:

    /opt/vc/lib/libbrcmGLESv2.so
    /opt/vc/lib/libbrcmWFC.so
    /opt/vc/lib/libbrcmEGL.so
    /opt/vc/lib/libbrcmOpenVG.so
    

    Yet, the configure script always returns:

    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
        EGLFS OpenWFD ........................ no
        EGLFS i.Mx6 .......................... no
        EGLFS i.Mx6 Wayland .................. no
        EGLFS RCAR ........................... no
        EGLFS EGLDevice ...................... yes
        EGLFS GBM ............................ no
        EGLFS VSP2 ........................... no
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... no <-- NOT DETECTED
        EGLFS X11 ............................ yes
      LinuxFB ................................ yes
    

    The parameters passed to the configure script seem to make sense, so why does it not work?

    C 1 Reply Last reply 6 Feb 2019, 10:15
    0
    • C chadr
      6 Feb 2019, 10:15

      @Diracsbracket Just add "-L /opt/vc/lib" to your configure command line.
      When I build the qt5.12.0 on Raspbian, it was successful but qt5.12.0 wasn't.

      So, I have added the " -L /opt/vc/lib" in configure command line and it was ok.

      D Offline
      D Offline
      Diracsbracket
      wrote on 6 Feb 2019, 12:22 last edited by Diracsbracket 2 Jun 2019, 12:24
      #3

      @chadr
      Thanks! I had to add -I /opt/vc/include as well.

      At first, the verbose output of the configure step only showed:

      Trying source 0 (type inline) of library bcm_host ... None of [libbcm_host.so libbcm_host.a] found in [] and global paths. => source produced no result.

      So, by looking at the qtbase/src/gui/configure.json file, it became clear that the error came from the egl-brcm test defined therein:

      "egl-brcm": {
                  "label": "Broadcom EGL (Raspberry Pi)",
                  "type": "compile",
                  "test": {
                      "include": [ "EGL/egl.h", "bcm_host.h" ],
                      "main": "vc_dispmanx_display_open(0);"
                  },
                  "use": "egl bcm_host"
              },
      

      Since I checked that I had all the headers and the library files, the solution of adding the -L and -I arguments to the configure script make much sense now.

      Thanks again!

      1 Reply Last reply
      1
      • D Diracsbracket
        6 Feb 2019, 09:05

        Hi,
        I am trying to build Qt 5.12.1 natively on my Pi3B+ running the latest Raspbian Lite version, following the configure parameters of this guide:

        PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
        /home/pi/qt-everywhere-src-5.12.1/configure \
        -v \
        -opengl es2 -eglfs \
        -no-gtk \
        -opensource -confirm-license -release \
        -reduce-exports \
        -force-pkg-config \
        -nomake examples -no-compile-examples \
        -skip qtwayland \
        -skip qtwebengine \
        -skip qtscript \
        -no-feature-geoservices_mapboxgl \
        -qt-pcre \
        -no-pch \
        -ssl \
        -evdev \
        -system-freetype \
        -fontconfig \
        -glib \
        -prefix /opt/Qt5.12 \
        -qpa eglfs \
        QMAKE_CFLAGS="-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8" \
        QMAKE_CXXFLAGS="-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8" \
        QMAKE_LIBS_EGL="-lbrcmEGL -lbrcmGLESv2" QMAKE_LIBS_OPENVG="-lbrcmEGL -lbrcmOpenVG -lbrcmGLESv2" \
        QMAKE_LIBDIR_OPENGL_ES2=/opt/vc/lib QMAKE_INCDIR_OPENGL_ES2="/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux" \
        QMAKE_LIBDIR_EGL=/opt/vc/lib QMAKE_INCDIR_EGL="/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux" \
        QMAKE_LIBDIR_OPENVG=/opt/vc/lib QMAKE_INCDIR_OPENVG="/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux" \
        -DEGLFS_DEVICE_INTEGRATION=eglfs_brcm
        

        The Broadcom libraries are at installed:

        /opt/vc/lib/libbrcmGLESv2.so
        /opt/vc/lib/libbrcmWFC.so
        /opt/vc/lib/libbrcmEGL.so
        /opt/vc/lib/libbrcmOpenVG.so
        

        Yet, the configure script always returns:

        QPA backends:
          DirectFB ............................... no
          EGLFS .................................. yes
          EGLFS details:
            EGLFS OpenWFD ........................ no
            EGLFS i.Mx6 .......................... no
            EGLFS i.Mx6 Wayland .................. no
            EGLFS RCAR ........................... no
            EGLFS EGLDevice ...................... yes
            EGLFS GBM ............................ no
            EGLFS VSP2 ........................... no
            EGLFS Mali ........................... no
            EGLFS Raspberry Pi ................... no <-- NOT DETECTED
            EGLFS X11 ............................ yes
          LinuxFB ................................ yes
        

        The parameters passed to the configure script seem to make sense, so why does it not work?

        C Offline
        C Offline
        chadr
        wrote on 6 Feb 2019, 10:15 last edited by
        #2

        @Diracsbracket Just add "-L /opt/vc/lib" to your configure command line.
        When I build the qt5.12.0 on Raspbian, it was successful but qt5.12.0 wasn't.

        So, I have added the " -L /opt/vc/lib" in configure command line and it was ok.

        D 1 Reply Last reply 6 Feb 2019, 12:22
        2
        • C chadr
          6 Feb 2019, 10:15

          @Diracsbracket Just add "-L /opt/vc/lib" to your configure command line.
          When I build the qt5.12.0 on Raspbian, it was successful but qt5.12.0 wasn't.

          So, I have added the " -L /opt/vc/lib" in configure command line and it was ok.

          D Offline
          D Offline
          Diracsbracket
          wrote on 6 Feb 2019, 12:22 last edited by Diracsbracket 2 Jun 2019, 12:24
          #3

          @chadr
          Thanks! I had to add -I /opt/vc/include as well.

          At first, the verbose output of the configure step only showed:

          Trying source 0 (type inline) of library bcm_host ... None of [libbcm_host.so libbcm_host.a] found in [] and global paths. => source produced no result.

          So, by looking at the qtbase/src/gui/configure.json file, it became clear that the error came from the egl-brcm test defined therein:

          "egl-brcm": {
                      "label": "Broadcom EGL (Raspberry Pi)",
                      "type": "compile",
                      "test": {
                          "include": [ "EGL/egl.h", "bcm_host.h" ],
                          "main": "vc_dispmanx_display_open(0);"
                      },
                      "use": "egl bcm_host"
                  },
          

          Since I checked that I had all the headers and the library files, the solution of adding the -L and -I arguments to the configure script make much sense now.

          Thanks again!

          1 Reply Last reply
          1
          • G Offline
            G Offline
            Giulio Dalla Vecchia
            wrote on 14 Feb 2019, 08:51 last edited by
            #4

            Hello everyone!
            I'm trying to cross-compile QT 5.12.1 to Rasperry PI 3, but I have a big issue. I'm following this guide https://wiki.qt.io/RaspberryPi2EGLFS but the configure script return:

            QPA backends:
            DirectFB ............................... no
            EGLFS .................................. yes
            EGLFS details:
            EGLFS OpenWFD ........................ no
            EGLFS i.Mx6 .......................... no
            EGLFS i.Mx6 Wayland .................. no
            EGLFS RCAR ........................... no
            EGLFS EGLDevice ...................... yes
            EGLFS GBM ............................ no
            EGLFS VSP2 ........................... no
            EGLFS Mali ........................... no
            EGLFS Raspberry Pi ................... no <-- NOT DETECTED
            EGLFS X11 ............................ yes
            LinuxFB ................................ yen

            I tried also to modified the library name into qtbase/mspeck/devices/raspi/ as suggest Javier Bonilla in this tutorial https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/ but without any result.

            "Note: In new Raspbian stretch versions, EGL libraries have different names than those assumed in Qt configuration files, so edit the ./qtbase/mkspecs/devices/linux-rasp-pi3-g++/qmake.conf file and substitute all references to -lEGL and -LGLESv2 for -lbrcmEGL and -lbrcmGLESv2, respectively. The linux-rasp-pi3-g++ folder applies to Raspberry Pi 3 version, if you have a different board version check the list of compatible devices which can be found in ./qtbase/mkspecs/devices. For further information have a look at Qt supported devices."

            This is the config.log about opengl test:

            looking for library opengl_es2
            Trying source 0 (type pkgConfig) of library opengl_es2 ...

            • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors glesv2
            • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --modversion glesv2

            13.0.6

            • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-L glesv2

            -L/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf

            • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-l glesv2

            -lGLESv2

            • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --cflags glesv2
              header entry 'config.qtbase_gui.libraries.opengl_es2.headers.0' passed condition.
              GLES2/gl2.h not found in [] and global paths.
              => source produced no result.
              Trying source 1 (type makeSpec) of library opengl_es2 ...
              Library path =/opt/vc/lib is invalid.
              Library path =/opt/vc/lib is invalid.
              None of [libGLESv2.so libGLESv2.a] found in [=/opt/vc/lib] and global paths.
              => source produced no result.
              test config.qtbase_gui.libraries.opengl_es2 FAILED

            Thanks a lot for any advice!

            A 1 Reply Last reply 17 Oct 2019, 05:22
            0
            • G Giulio Dalla Vecchia
              14 Feb 2019, 08:51

              Hello everyone!
              I'm trying to cross-compile QT 5.12.1 to Rasperry PI 3, but I have a big issue. I'm following this guide https://wiki.qt.io/RaspberryPi2EGLFS but the configure script return:

              QPA backends:
              DirectFB ............................... no
              EGLFS .................................. yes
              EGLFS details:
              EGLFS OpenWFD ........................ no
              EGLFS i.Mx6 .......................... no
              EGLFS i.Mx6 Wayland .................. no
              EGLFS RCAR ........................... no
              EGLFS EGLDevice ...................... yes
              EGLFS GBM ............................ no
              EGLFS VSP2 ........................... no
              EGLFS Mali ........................... no
              EGLFS Raspberry Pi ................... no <-- NOT DETECTED
              EGLFS X11 ............................ yes
              LinuxFB ................................ yen

              I tried also to modified the library name into qtbase/mspeck/devices/raspi/ as suggest Javier Bonilla in this tutorial https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/ but without any result.

              "Note: In new Raspbian stretch versions, EGL libraries have different names than those assumed in Qt configuration files, so edit the ./qtbase/mkspecs/devices/linux-rasp-pi3-g++/qmake.conf file and substitute all references to -lEGL and -LGLESv2 for -lbrcmEGL and -lbrcmGLESv2, respectively. The linux-rasp-pi3-g++ folder applies to Raspberry Pi 3 version, if you have a different board version check the list of compatible devices which can be found in ./qtbase/mkspecs/devices. For further information have a look at Qt supported devices."

              This is the config.log about opengl test:

              looking for library opengl_es2
              Trying source 0 (type pkgConfig) of library opengl_es2 ...

              • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors glesv2
              • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --modversion glesv2

              13.0.6

              • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-L glesv2

              -L/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf

              • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-l glesv2

              -lGLESv2

              • PKG_CONFIG_SYSROOT_DIR=/home/rasp/raspi/sysroot PKG_CONFIG_LIBDIR=/home/rasp/raspi/sysroot/usr/lib/pkgconfig:/home/rasp/raspi/sysroot/usr/share/pkgconfig:/home/rasp/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --cflags glesv2
                header entry 'config.qtbase_gui.libraries.opengl_es2.headers.0' passed condition.
                GLES2/gl2.h not found in [] and global paths.
                => source produced no result.
                Trying source 1 (type makeSpec) of library opengl_es2 ...
                Library path =/opt/vc/lib is invalid.
                Library path =/opt/vc/lib is invalid.
                None of [libGLESv2.so libGLESv2.a] found in [=/opt/vc/lib] and global paths.
                => source produced no result.
                test config.qtbase_gui.libraries.opengl_es2 FAILED

              Thanks a lot for any advice!

              A Offline
              A Offline
              Asha
              wrote on 17 Oct 2019, 05:22 last edited by
              #5

              @Giulio-Dalla-Vecchia said in Cannot get configure script to detect "EGLFS Rasberry Pi":

              .

              Hi,

              Have you got the solution for this?

              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