From 828932d95c9c261d8e8ab6310c9a210464c546a9 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 16 May 2020 11:10:45 -0700 Subject: [PATCH] Fix EGL detection on RPi --- config.tests/EGL/EGL.pro | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.tests/EGL/EGL.pro b/config.tests/EGL/EGL.pro index 933fcecc..9dc0f354 100644 --- a/config.tests/EGL/EGL.pro +++ b/config.tests/EGL/EGL.pro @@ -1,4 +1,13 @@ SOURCES = main.cpp CONFIG += link_pkgconfig + +# This adds /opt/vc/include to the include path which +# pulls in the BRCM GLES and EGL libraries. If we don't +# add this, we'll get the system's headers which expose +# functionality the runtime GL implementation won't have. +packagesExist(mmal) { + PKGCONFIG += mmal +} + PKGCONFIG += sdl2 egl \ No newline at end of file