I'm encountering an issue when running an application on my Yocto-based system, and I'm getting the error message: Failed to start Flutter renderer: No GL implementation is available. Additionally, when I check the existence of the 'gtk+-3.0' package using pkg-config, it shows that the 'gl' package is not found in the search path and suggests adding the directory containing 'gl.pc' to the PKG_CONFIG_PATH environment variable.
root@apalis-imx8-07013820:/usr/lib/pkgconfig# pkg-config --exists --print-errors 'gtk+-3.0' Package gl was not found in the pkg-config search path. Perhaps you should add the directory containing `gl.pc' to the PKG_CONFIG_PATH environment variable Package 'gl', required by 'epoxy', not found I have already added the 'mesa' package to my local.conf, but it seems that 'gl.pc' is not present in the '/usr/lib/pkgconfig' directory. When I open the 'epoxy.pc' file, it shows the following content:
prefix=/usr libdir=${prefix}/lib includedir=${prefix}/include epoxy_has_glx=1 epoxy_has_egl=1 epoxy_has_wgl=0 Name: epoxy Description: GL dispatch library Version: 1.5.10 Requires.private: x11, egl, gl egl Libs: -L${libdir} -lepoxy Libs.private: -ldl Cflags: -I${includedir} I would appreciate any guidance on how to properly install OpenGL or resolve the No GL implementation is available"error in Yocto. Additionally, I'd like to know how to ensure that 'gl.pc' is available in the '/usr/lib/pkgconfig' directory. Thank you for your help!
Tried to install OpenGL in Yocto. Expected success, got "No GL implementation" error.