mesa3d version bump, fix xbmc compile errors
cover mesa3d version bump, fix xbmc compile errors
Hi,
testing this defconfig
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_XBMC=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
several compile errors happened, this patch series should fix them. Please note that the compile errors also happen with mesa3d 10.0.4, the version is unrelated but removes the ugly BR2_PACKAGE_HOST_LIBXML2_PYTHON hack.
Regards, Bernd
Bernd Kuhls (8):
mesa3d: Bump version to 10.1.1
mesa3d: Depend on xorg meta package instead of xserver_xorg-server
mesa3d: compile fixes
xbmc: add nasm/yasm dependency
mesa3d: Remove dependency for the libxml2 module of host-python
xbmc: Fix ffmpeg cross compile
xbmc: Add -DMESA_EGL_NO_X11_HEADERS to cflags to fix compile without
X.org
xbmc: Fix TexturePacker compile
package/libxml2/Config.in | 3 - package/libxml2/libxml2-python2.patch | 27 - package/libxml2/libxml2.mk | 14 - package/mesa3d/Config.in | 23 +- package/mesa3d/mesa3d-0002-gbm-without-dri.patch | 31 + package/mesa3d/mesa3d-0003-shared-glapi.patch | 57 ++ package/mesa3d/mesa3d-0004-no_python_libxml2.patch | 699 ++++++++++++++++++++ package/mesa3d/mesa3d.mk | 9 +- package/xbmc/xbmc.mk | 8 + 9 files changed, 810 insertions(+), 61 deletions(-) delete mode 100644 package/libxml2/libxml2-python2.patch create mode 100644 package/mesa3d/mesa3d-0002-gbm-without-dri.patch create mode 100644 package/mesa3d/mesa3d-0003-shared-glapi.patch create mode 100644 package/mesa3d/mesa3d-0004-no_python_libxml2.patch
Signature · 1 line
1.7.10.4
PATCH 1/8 mesa3d: Bump version to 10.1.1
--- package/mesa3d/mesa3d.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/mesa3d/mesa3d.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -MESA3D_VERSION = 10.0.4 +MESA3D_VERSION = 10.1.1 MESA3D_SOURCE = MesaLib-$(MESA3D_VERSION).tar.bz2 MESA3D_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION) MESA3D_LICENSE = MIT, SGI, Khronos
Signature · 1 line
1.7.10.4
PATCH v2 2/8 mesa3d: Depend on xorg meta package instead of xserver_xorg-server
In reply to Bernd Kuhls---
v2: no changes
v1: I applied Thomas? comment about libglew also to mesa3d
http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/82060
"A dependency on BR2_PACKAGE_XORG7 looks more appropriate"
package/mesa3d/Config.in | 22 +++++++++++----------- package/mesa3d/mesa3d.mk | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-)
package/mesa3d/Config.in +11 -11
@@ -3,13 +3,13 @@ menuconfig BR2_PACKAGE_MESA3D select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_EXPAT select BR2_PACKAGE_HOST_LIBXML2_PYTHON - select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XSERVER_XORG_SERVER - select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XSERVER_XORG_SERVER - select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XSERVER_XORG_SERVER - select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XSERVER_XORG_SERVER - select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XSERVER_XORG_SERVER - select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XSERVER_XORG_SERVER - select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XSERVER_XORG_SERVER + select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XORG7 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_LARGEFILE depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
@@ -61,10 +61,10 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST This is a software opengl implementation using the Gallium3D infrastructure. -comment "DRI drivers needs an X.Org server and a toolchain w/ dynamic library" - depends on BR2_PREFER_STATIC_LIB || !BR2_PACKAGE_XSERVER_XORG_SERVER +comment "DRI drivers needs X.Org and a toolchain w/ dynamic library" + depends on BR2_PREFER_STATIC_LIB || !BR2_PACKAGE_XORG7 -if !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XSERVER_XORG_SERVER +if !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XORG7 comment "DRI drivers"
@@ -91,7 +91,7 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON help Legacy Radeon driver for R100 series GPUs. -endif # !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XSERVER_XORG_SERVER +endif # !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XORG7 if BR2_PACKAGE_MESA3D_DRIVER
package/mesa3d/mesa3d.mk +2 -2
@@ -23,7 +23,7 @@ MESA3D_DEPENDENCIES = \ host-xutil_makedepend \ libdrm -ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER),y) +ifeq ($(BR2_PACKAGE_XORG7),y) MESA3D_DEPENDENCIES += \ xproto_xf86driproto \ xproto_dri2proto \
@@ -93,7 +93,7 @@ ifeq ($(BR2_PACKAGE_WAYLAND),y) MESA3D_DEPENDENCIES += wayland MESA3D_EGL_PLATFORMS += wayland endif -ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER),y) +ifeq ($(BR2_PACKAGE_XORG7),y) MESA3D_EGL_PLATFORMS += x11 endif MESA3D_CONF_OPT += \
Signature · 1 line
1.7.10.4
PATCH 3/8 mesa3d: compile fixes
In reply to Bernd Kuhls--- package/mesa3d/mesa3d-0002-gbm-without-dri.patch | 31 ++++++++++++ package/mesa3d/mesa3d-0003-shared-glapi.patch | 57 ++++++++++++++++++++++ package/mesa3d/mesa3d.mk | 2 +- 3 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 package/mesa3d/mesa3d-0002-gbm-without-dri.patch create mode 100644 package/mesa3d/mesa3d-0003-shared-glapi.patch
package/mesa3d/mesa3d-0002-gbm-without-dri.patch new file +31 -0
@@ -0,0 +1,31 @@ +Fix build issue when gbm backend is built without dri support. + +re-use patch by Spenser +http://lists.busybox.net/pipermail/buildroot/2013-August/076839.html + +Signed-off-by: Spenser Gilliland <[email protected]> +Signed-off-by: Bernd Kuhls <[email protected]> + +diff -uNr Mesa-10.0.5.org/src/gbm/main/backend.c Mesa-10.0.5/src/gbm/main/backend.c +--- Mesa-10.0.5.org/src/gbm/main/backend.c 2013-12-17 00:19:27.000000000 +0100 ++++ Mesa-10.0.5/src/gbm/main/backend.c 2014-04-29 07:12:38.175264298 +0200 +@@ -36,7 +36,9 @@ + + #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) + ++#ifdef HAVE_DRI + extern const struct gbm_backend gbm_dri_backend; ++#endif + + struct backend_desc { + const char *name; +@@ -44,7 +46,9 @@ + }; + + static const struct backend_desc backends[] = { ++#ifdef HAVE_DRI + { "gbm_dri.so", &gbm_dri_backend }, ++#endif + { "gbm_gallium_drm.so", NULL }, + }; +
package/mesa3d/mesa3d-0003-shared-glapi.patch new file +57 -0
57 lines not on this page · raw message
package/mesa3d/mesa3d.mk +1 -1
@@ -63,13 +63,13 @@ MESA3D_CONF_OPT += \ --without-gallium-drivers else MESA3D_CONF_OPT += \ + --enable-shared-glapi \ --with-gallium-drivers=$(subst $(space),$(comma),$(MESA3D_GALLIUM_DRIVERS-y)) endif ifeq ($(MESA3D_DRI_DRIVERS-y),) MESA3D_CONF_OPT += \ --disable-dri \ - --disable-shared-glapi \ --without-dri-drivers else MESA3D_CONF_OPT += \
Signature · 1 line
1.7.10.4
PATCH 3/8 mesa3d: compile fixes
Bernd Kuhls <[email protected]> wrote in news:1398968277-9044-4-git-send-email-bernd.kuhls at t-online.de:
Quoted 3 lines
Signed-off-by: Bernd Kuhls
<[email protected]> ---package/mesa3d/mesa3d-0002-gbm-without-dri.patch | 31 ++++++++++++
Hi,
please do not apply the patch mentioned above due to
https://bugs.freedesktop.org/show_bug.cgi?id=78225#c1
I will update the mesa3d package to prevent the compile bug.
Regards, Bernd
PATCH 4/8 xbmc: add nasm/yasm dependency
In reply to Bernd Kuhls--- package/xbmc/xbmc.mk | 2 ++ 1 file changed, 2 insertions(+)
package/xbmc/xbmc.mk +2 -0
@@ -18,6 +18,8 @@ XBMC_DEPENDENCIES += boost bzip2 expat flac fontconfig freetype jasper jpeg \ libogg libplist libpng libsamplerate libungif libvorbis libxml2 lzo ncurses \ openssl pcre python readline sqlite taglib tiff tinyxml yajl zlib +XBMC_DEPENDENCIES += $(if $(BR2_i386),host-nasm) $(if $(BR2_x86_64),host-yasm) + XBMC_CONF_ENV = \ PYTHON_VERSION="$(PYTHON_VERSION_MAJOR)" \ PYTHON_LDFLAGS="-lpython$(PYTHON_VERSION_MAJOR) -lpthread -ldl -lutil -lm" \
Signature · 1 line
1.7.10.4
PATCH 5/8 mesa3d: Remove dependency for the libxml2 module of host-python
In reply to Bernd KuhlsRemove the ugly BR2_PACKAGE_HOST_LIBXML2_PYTHON hack as well as mesa3d was the only package using it.
--- package/libxml2/Config.in | 3 - package/libxml2/libxml2-python2.patch | 27 - package/libxml2/libxml2.mk | 14 - package/mesa3d/Config.in | 1 - package/mesa3d/mesa3d-0004-no_python_libxml2.patch | 699 ++++++++++++++++++++ package/mesa3d/mesa3d.mk | 1 - 6 files changed, 699 insertions(+), 46 deletions(-) delete mode 100644 package/libxml2/libxml2-python2.patch create mode 100644 package/mesa3d/mesa3d-0004-no_python_libxml2.patch
package/libxml2/Config.in +0 -3
@@ -4,6 +4,3 @@ config BR2_PACKAGE_LIBXML2 XML C Parser http://xmlsoft.org/ - -config BR2_PACKAGE_HOST_LIBXML2_PYTHON - bool
package/libxml2/libxml2-python2.patch deleted +0 -27
@@ -1,27 +0,0 @@ -Prefer python2 binary in case python points to python3 - -Signed-off-by: Bernd Kuhls <[email protected]> - -diff -uNr libxml2-2.9.1.org/configure.in libxml2-2.9.1/configure.in ---- libxml2-2.9.1.org/configure.in 2013-04-19 09:25:20.000000000 +0200 -+++ libxml2-2.9.1/configure.in 2014-04-12 14:16:26.579361068 +0200 -@@ -748,6 +748,11 @@ - PYTHON_TESTS= - pythondir= - if test "$with_python" != "no" ; then -+ if test -x "$with_python/bin/python2" -+ then -+ echo Found python2 in $with_python/bin/python2 -+ PYTHON="$with_python/bin/python2" -+ else - if test -x "$with_python/bin/python" - then - echo Found python in $with_python/bin/python -@@ -773,6 +778,7 @@ - fi - fi - fi -+ fi - if test "$PYTHON" != "" - then - PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
package/libxml2/libxml2.mk +0 -14
@@ -22,20 +22,6 @@ HOST_LIBXML2_DEPENDENCIES = host-pkgconf HOST_LIBXML2_CONF_OPT = --without-zlib --without-lzma -# mesa3d uses functions that are only available with debug -ifeq ($(BR2_PACKAGE_MESA3D),y) -HOST_LIBXML2_CONF_OPT += --with-debug -else -HOST_LIBXML2_CONF_OPT += --without-debug -endif - -ifeq ($(BR2_PACKAGE_HOST_LIBXML2_PYTHON),y) -HOST_LIBXML2_DEPENDENCIES += host-python -HOST_LIBXML2_CONF_OPT += --with-python=$(HOST_DIR)/usr -else -HOST_LIBXML2_CONF_OPT += --without-python -endif - ifeq ($(BR2_PACKAGE_ZLIB),y) LIBXML2_DEPENDENCIES += zlib LIBXML2_CONF_OPT += --with-zlib
package/mesa3d/Config.in +0 -1
@@ -2,7 +2,6 @@ menuconfig BR2_PACKAGE_MESA3D bool "Mesa 3D Graphics Library" select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_EXPAT - select BR2_PACKAGE_HOST_LIBXML2_PYTHON select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
package/mesa3d/mesa3d-0004-no_python_libxml2.patch new file +699 -0
699 lines not on this page · raw message
package/mesa3d/mesa3d.mk +0 -1
@@ -18,7 +18,6 @@ MESA3D_DEPENDENCIES = \ host-bison \ host-flex \ host-gettext \ - host-libxml2 \ host-python \ host-xutil_makedepend \ libdrm
Signature · 1 line
1.7.10.4
PATCH 5/8 mesa3d: Remove dependency for the libxml2 module of host-python
Bernd Kuhls <[email protected]> wrote in news:1398968277-9044-6-git-send-email-bernd.kuhls at t-online.de:
Quoted 2 lines
package/mesa3d/mesa3d-0004-no_python_libxml2.patch | 699++++++++++++++++++++
package/mesa3d/mesa3d.mk
Hi,
mesa3d 10.2-rc1 was released today which includes this patch. I already created a patch series making the huge patch mentioned above superflous. Xbmc, currently present in buildroot, and pending Xbmc Gotham release both compile against mesa3d 10.2-rc1.
Shall I wait for a 10.2 release or can I post my new patches right away?
Regards, Bernd
PATCH 6/8 xbmc: Fix ffmpeg cross compile
In reply to Bernd Kuhls--- package/xbmc/xbmc.mk | 1 + 1 file changed, 1 insertion(+)
package/xbmc/xbmc.mk +1 -0
@@ -29,6 +29,7 @@ XBMC_CONF_ENV = \ TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" XBMC_CONF_OPT += \ + --with-arch=$(BR2_ARCH) \ --disable-alsa \ --disable-crystalhd \ --disable-debug \
Signature · 1 line
1.7.10.4
PATCH 7/8 xbmc: Add -DMESA_EGL_NO_X11_HEADERS to cflags to fix compile without X.org
In reply to Bernd Kuhls--- package/xbmc/xbmc.mk | 3 +++ 1 file changed, 3 insertions(+)
package/xbmc/xbmc.mk +3 -0
@@ -63,6 +63,9 @@ ifeq ($(BR2_PACKAGE_DBUS),y) XBMC_DEPENDENCIES += dbus endif +XBMC_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)" \ + CXXFLAGS="$(TARGET_CXXFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)" + ifeq ($(BR2_PACKAGE_XBMC_LIBUSB),y) XBMC_DEPENDENCIES += libusb-compat XBMC_CONF_OPT += --enable-libusb
Signature · 1 line
1.7.10.4
PATCH 8/8 xbmc: Fix TexturePacker compile
In reply to Bernd Kuhls--- package/xbmc/xbmc.mk | 2 ++ 1 file changed, 2 insertions(+)
package/xbmc/xbmc.mk +2 -0
@@ -26,6 +26,8 @@ XBMC_CONF_ENV = \ PYTHON_CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)" \ PYTHON_SITE_PKG="$(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \ PYTHON_NOVERSIONCHECK="no-check" \ + use_texturepacker_native=yes \ + USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" \ TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" XBMC_CONF_OPT += \
Signature · 1 line
1.7.10.4
PATCH 8/8 xbmc: Fix TexturePacker compile
Hi Bernd, all,
Quoted 20 lines · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>--- package/xbmc/xbmc.mk | 2 ++ 1 file changed, 2 insertions(+)package/xbmc/xbmc.mk +2
-1@@ -26,6 +26,8 @@ XBMC_CONF_ENV = \ PYTHON_CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)" \ PYTHON_SITE_PKG="$(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \ PYTHON_NOVERSIONCHECK="no-check" \ + use_texturepacker_native=yes \ + USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" \ TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" XBMC_CONF_OPT += \ --
Quoted 1 line
1.7.10.4
What was your issue exactly ?
Quoted 5 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 8/8 xbmc: Fix TexturePacker compile
Maxime Hadjinlian
<[email protected]> wrote in news:CAGduivyfTiuETZKFUuk5CXzVePeDi7jSx_PUMgjtg1YFWsGFRA at mail.gmail.com:
Quoted 1 line
What was your issue exactly ?
Hi,
my patch fixes the compilation of TexturePacker for xbmc frodo/gotham.
use_texturepacker_native=yes
is needed because we abviously need a native-compiled binary, but the xbmc build system does enable this variable only for darwin, android and raspberry-pi targets.
USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr"
is also needed because USE_TEXTUREPACKER_NATIVE_ROOT="$TEXTUREPACKER_NATIVE_ROOT"
is only executed for raspberry-pi by xbmc/configure and only USE_TEXTUREPACKER_NATIVE_ROOT is used by tools/TexturePacker/Makefile.in.
To sum up, building for raspberry-pi and other archs works out-of-the-box, compiling for an Intel target, for example, fails:
In file included from SDL_anigif.cpp:23:0:
SDL_anigif.h:24:21: fatal error: SDL/SDL.h: No such file or directory compilation terminated.
XBMCTex.cpp:34:21: fatal error: SDL/SDL.h: No such file or directory
Regards, Bernd
PATCH 8/8 xbmc: Fix TexturePacker compile
Hi Bernd, all,
Quoted 23 lines · Bernd Kuhls
Maxime Hadjinlian
<[email protected]> wrote in news:CAGduivyfTiuETZKFUuk5CXzVePeDi7jSx_PUMgjtg1YFWsGFRA at mail.gmail.com:Quoted 1 line
What was your issue exactly ?
Hi,
my patch fixes the compilation of TexturePacker for xbmc frodo/gotham.
use_texturepacker_native=yes
is needed because we abviously need a native-compiled binary, but the xbmc build system does enable this variable only for darwin, android and raspberry-pi targets.
USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr"
is also needed because USE_TEXTUREPACKER_NATIVE_ROOT="$TEXTUREPACKER_NATIVE_ROOT"
is only executed for raspberry-pi by xbmc/configure and onlyUSE_TEXTUREPACKER_NATIVE_ROOTis used bytools/TexturePacker/Makefile.in.
Quoted 8 lines
To sum up, building for raspberry-pi and other archs works out-of-the-box, compiling for an Intel target, for example, fails:
In file included from SDL_anigif.cpp:23:0:
SDL_anigif.h:24:21: fatal error:SDL/SDL.h: No such file or directory compilation terminated.
XBMCTex.cpp:34:21: fatal error:SDL/SDL.h: No such file or directory
Thank you for the explanation, I only uses XBMC on an RPi, this explaining that :).
A shorter version of this could be part of your commit log ? I think this would be nice.
Quoted 6 lines
Regards, Bernd
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
cover mesa3d version bump, fix xbmc compile errors
In reply to Bernd KuhlsBernd Kuhls <[email protected]> wrote in news:1398968277-9044-1-git-send-email-bernd.kuhls at t-online.de:
Quoted 1 line
the version is unrelated
make that "the version _bump_ is unrelated"