* [Buildroot] [PATCH v2 1/1] package/kodi: Fix egl/gles compilation with mesa3d and disabled X.org
@ 2015-07-02 18:52 Bernd Kuhls
2015-07-02 19:58 ` Yann E. MORIN
2015-07-04 10:43 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2015-07-02 18:52 UTC (permalink / raw)
To: buildroot
In this case -DMESA_EGL_NO_X11_HEADERS is needed during compilation.
Fixes this build error
make[1]: Entering directory `/home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/cores/dvdplayer'
CPP xbmc/cores/dvdplayer/DVDPlayerVideo.o
In file included from /home/fli4l/br8_kodi/output/host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/EGL/egl.h:36:0,
from /home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/windowing/egl/WinSystemEGL.h:28,
from /home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/windowing/WindowingFactory.h:39,
from DVDPlayerVideo.cpp:23:
/home/fli4l/br8_kodi/output/host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/EGL/eglplatform.h:118:22: fatal error: X11/Xlib.h: No such file or directory
#include <X11/Xlib.h>
^
using this defconfig
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: Rebased local repo against upstream
package/kodi/kodi.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 8712b12..28fece7 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -113,6 +113,7 @@ else
KODI_CONF_OPTS += --disable-gl --disable-rsxs --disable-sdl --disable-x11 --disable-xrandr
ifeq ($(BR2_PACKAGE_KODI_EGL_GLES),y)
KODI_DEPENDENCIES += libegl libgles
+KODI_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)"
KODI_CONF_OPTS += --enable-gles
else
KODI_CONF_OPTS += --disable-gles
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH v2 1/1] package/kodi: Fix egl/gles compilation with mesa3d and disabled X.org
2015-07-02 18:52 [Buildroot] [PATCH v2 1/1] package/kodi: Fix egl/gles compilation with mesa3d and disabled X.org Bernd Kuhls
@ 2015-07-02 19:58 ` Yann E. MORIN
2015-07-04 10:43 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2015-07-02 19:58 UTC (permalink / raw)
To: buildroot
Bernd, All,
On 2015-07-02 20:52 +0200, Bernd Kuhls spake thusly:
> In this case -DMESA_EGL_NO_X11_HEADERS is needed during compilation.
>
> Fixes this build error
>
> make[1]: Entering directory `/home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/cores/dvdplayer'
> CPP xbmc/cores/dvdplayer/DVDPlayerVideo.o
> In file included from /home/fli4l/br8_kodi/output/host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/EGL/egl.h:36:0,
> from /home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/windowing/egl/WinSystemEGL.h:28,
> from /home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/windowing/WindowingFactory.h:39,
> from DVDPlayerVideo.cpp:23:
> /home/fli4l/br8_kodi/output/host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/EGL/eglplatform.h:118:22: fatal error: X11/Xlib.h: No such file or directory
> #include <X11/Xlib.h>
> ^
> using this defconfig
>
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_MESA3D=y
> BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
> BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> BR2_PACKAGE_MESA3D_OPENGL_ES=y
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[yann.morin.1998 at free.fr: build-tested only, with this defconfig]
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> v2: Rebased local repo against upstream
>
> package/kodi/kodi.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
> index 8712b12..28fece7 100644
> --- a/package/kodi/kodi.mk
> +++ b/package/kodi/kodi.mk
> @@ -113,6 +113,7 @@ else
> KODI_CONF_OPTS += --disable-gl --disable-rsxs --disable-sdl --disable-x11 --disable-xrandr
> ifeq ($(BR2_PACKAGE_KODI_EGL_GLES),y)
> KODI_DEPENDENCIES += libegl libgles
> +KODI_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)"
> KODI_CONF_OPTS += --enable-gles
> else
> KODI_CONF_OPTS += --disable-gles
> --
> 1.7.10.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/kodi: Fix egl/gles compilation with mesa3d and disabled X.org
2015-07-02 18:52 [Buildroot] [PATCH v2 1/1] package/kodi: Fix egl/gles compilation with mesa3d and disabled X.org Bernd Kuhls
2015-07-02 19:58 ` Yann E. MORIN
@ 2015-07-04 10:43 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-07-04 10:43 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Thu, 2 Jul 2015 20:52:32 +0200, Bernd Kuhls wrote:
> In this case -DMESA_EGL_NO_X11_HEADERS is needed during compilation.
>
> Fixes this build error
>
> make[1]: Entering directory `/home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/cores/dvdplayer'
> CPP xbmc/cores/dvdplayer/DVDPlayerVideo.o
> In file included from /home/fli4l/br8_kodi/output/host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/EGL/egl.h:36:0,
> from /home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/windowing/egl/WinSystemEGL.h:28,
> from /home/fli4l/br8_kodi/output/build/kodi-14.2-Helix/xbmc/windowing/WindowingFactory.h:39,
> from DVDPlayerVideo.cpp:23:
> /home/fli4l/br8_kodi/output/host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/EGL/eglplatform.h:118:22: fatal error: X11/Xlib.h: No such file or directory
> #include <X11/Xlib.h>
> ^
> using this defconfig
>
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_MESA3D=y
> BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
> BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> BR2_PACKAGE_MESA3D_OPENGL_ES=y
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: Rebased local repo against upstream
Applied, thanks. However, it would be nicer if the Kodi build system
was using pkg-config by itself to find the libs/headers needed to use
EGL.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-04 10:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 18:52 [Buildroot] [PATCH v2 1/1] package/kodi: Fix egl/gles compilation with mesa3d and disabled X.org Bernd Kuhls
2015-07-02 19:58 ` Yann E. MORIN
2015-07-04 10:43 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox