We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

4 posts • Page 1 of 1
NTVisitor
Posts: 15
Joined: Thu Apr 03, 2025 1:25 pm

Compiling Qt6 Missing EGL/eglext_brcm.h

Thu Apr 03, 2025 1:51 pm

Hello all,
**tldr**
Where can I get EGL/eglext_brcm.h?

**Background**
My ultimate aim is to create a cross compile environment for qt aimed at r pi 4. So Qt 6.4.2 and wayland. To do this I need to compile qt 6.4.2 with wayland plugin with driver for brcm for both host (x86) and target (r pi 4). (forgive me if I am teaching my grandmother to suck eggs here.)

**Set-up**

Code: Select all

git clone [email protected]:qt/qt5.git
Initialise repository

Code: Select all

./init-repository -f --module-subset=qtbase,qtwayland,qtdeclarative,qtimageformats,qtlanguageserver,qtshadertools,qtsvg
git checkout 6.4.2
Configure

Code: Select all

cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$QTBUILDROOT/qt-host/ -DBUILD_qtwayland=ON -DQT_FEATURE_eglfs_brcm=ON
then build, upon which I get the following error

Code: Select all

from /home/tommy/projects/rPi4_OS/crossCompile/qt6/qt5ReproQt6CodeAndBuild/qt-hostbuild/qtwayland/src/plugins/hardwareintegration/client/brcm-egl/QWaylandBrcmEglClientBufferPlugin_autogen/EWIEGA46WW/moc_qwaylandbrcmeglwindow.cpp:9,
 from /home/tommy/projects/rPi4_OS/crossCompile/qt6/qt5ReproQt6CodeAndBuild/qt-hostbuild/qtwayland/src/plugins/hardwareintegration/client/brcm-egl/QWaylandBrcmEglClientBufferPlugin_autogen/mocs_compilation.cpp:2:
/home/tommy/projects/rPi4_OS/crossCompile/qt6/qt5ReproQt6CodeAndBuild/qt-hostbuild/qtwayland/src/plugins/hardwareintegration/client/brcm-egl/QWaylandBrcmEglClientBufferPlugin_autogen/EWIEGA46WW/../../../../../../../../../qt5/qtwayland/src/plugins/hardwareintegration/client/brcm-egl/qwaylandbrcmeglintegration.h:14:10: fatal error: EGL/eglext_brcm.h: No such file or directory
 14 | #include <EGL/eglext_brcm.h>
 | ^~~~~~~~~~~~~~~~~~~
compilation terminated.
[5985/6455] Building CXX object qtwayland/src/compositor/CMakeFiles/WaylandCompositor.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
I can't find this file anywhere on my pi or internet, nor can I seem to be able to locate a package that contains it. Does anyone have any idea where it is?

NTVisitor
Posts: 15
Joined: Thu Apr 03, 2025 1:25 pm

Rpi 4 EGL/eglext_brcm.h

Fri Apr 04, 2025 7:29 am

Hi all,

I am compiling qt6 with wayland support and missing this file. Does anyone know where I could find this file EGL/eglext_brcm.h? I have tried several EGL dev packages. Web searched etc but to no avail. Any pointer gratefully received!

dividuum
Posts: 414
Joined: Sun Jun 16, 2013 1:18 pm

Re: Rpi 4 EGL/eglext_brcm.h

Fri Apr 04, 2025 5:04 pm

eglext_brcm.h sounds a lot like it was part of the old proprietary broadcom GL driver. That has since been superseded by Mesa. Not sure how the QT6 compile process works but I'm surprised it ends up looking for that file. Is there an option to force it to use Mesa instead?
info-beamer hosted - A user and programmer friendly digital signage platform for the Pi: https://info-beamer.com/hosted

NTVisitor
Posts: 15
Joined: Thu Apr 03, 2025 1:25 pm

Re: Compiling Qt6 Missing EGL/eglext_brcm.h

Mon Apr 07, 2025 7:25 am

hi dividuum, Thanks I will take a look. I am not up together with things like Mesa so even you saying look for that config option is help. The Qt config documentation is minimal!

4 posts • Page 1 of 1

Return to "Graphics programming"

AltStyle によって変換されたページ (->オリジナル) /