[Buildroot] [PATCH 1/2] package/x11r7/libepoxy: Fix OpenGL / EGL dependencies

Bernd Kuhls bernd.kuhls at t-online.de
Sat May 2 16:33:30 UTC 2015


Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
@public.gmane.org> wrote in news:20150502165439.149f55a2 at free-

> Dear Bernd Kuhls,
> On Sat,  2 May 2015 16:07:09 +0200, Bernd Kuhls wrote:
>> -     depends on BR2_PACKAGE_MESA3D
>> +     depends on BR2_PACKAGE_HAS_LIBEGL
>     || HAS_LIBGL ?

libepoxy contains code to check for the presence of libgl:

as an optional dependency

checking for EGL... yes
checking for X11... yes
checking for GL... no

But EGL is a hard dependency as proven by the autobuild error I am trying 
to fix.

>> +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
>> +          -I$(STAGING_DIR)/usr/include/IL \
>> +          -I$(STAGING_DIR)/usr/include/interface/vcos/pthreads \
>> +          -I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux"
>> +endif
> Shouldn't we instead be using pkg-config here?

Yes, good idea. I will backport this patch:

Even with this new patch configure fails when EGL is missing:

checking for EGL... no
configure: error: Package requirements (egl) were not met:

Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'egl' found

Regards, Bernd

More information about the buildroot mailing list