All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
@ 2018-04-01  7:03 Bernd Kuhls
  2018-04-01  7:03 ` [Buildroot] [PATCH 2/4] package/kodi: remove OpenGL ES support Bernd Kuhls
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  7:03 UTC (permalink / raw)
  To: buildroot

Using the libamcodec package (-DENABLE_AML=ON) is not enough:

-- Could NOT find OpenGLES (missing:  OPENGLES_gl_LIBRARY OPENGLES_egl_LIBRARY OPENGLES_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  modules/FindEGL.cmake:30 (find_package_handle_standard_args)
  scripts/common/Macros.cmake:354 (find_package)
  CMakeLists.txt:208 (core_require_dep)

Libreelec provides pre-compiled OpenGL ES libraries for AML which are
not provided by buildroot:
https://github.com/LibreELEC/LibreELEC.tv/tree/master/packages/graphics/opengl-meson

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/kodi/kodi.mk | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 9d3b65ae91..5af9fe180d 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -72,6 +72,7 @@ KODI_CONF_OPTS += \
 	-DLIBDVDCSS_URL=$(DL_DIR)/$(KODI_LIBDVDCSS_VERSION).tar.gz \
 	-DLIBDVDNAV_URL=$(DL_DIR)/$(KODI_LIBDVDNAV_VERSION).tar.gz \
 	-DLIBDVDREAD_URL=$(DL_DIR)/$(KODI_LIBDVDREAD_VERSION).tar.gz \
+	-DENABLE_AML=OFF \
 	-DENABLE_IMX=OFF
 
 ifeq ($(BR2_ENABLE_LOCALE),)
@@ -186,12 +187,6 @@ else
 # "linux" platforms. The "rpbi" platform has a different set of
 # options, defined in project/cmake/scripts/rbpi/
 KODI_CONF_OPTS += -DENABLE_LDGOLD=OFF
-ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)
-KODI_CONF_OPTS += -DENABLE_AML=ON
-KODI_DEPENDENCIES += libamcodec
-else
-KODI_CONF_OPTS += -DENABLE_AML=OFF
-endif
 endif
 
 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 2/4] package/kodi: remove OpenGL ES support
  2018-04-01  7:03 [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support Bernd Kuhls
@ 2018-04-01  7:03 ` Bernd Kuhls
  2018-04-01  7:03 ` [Buildroot] [PATCH 3/4] package/kodi: Rework windowing support options Bernd Kuhls
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  7:03 UTC (permalink / raw)
  To: buildroot

To prepare the bump to the next Kodi version 18.0-Leia we remove the
current OpenGL ES support options. Kodi 18.0 will bring a major
overhaul of the supported windowing platforms, x11-based gles support
was removed, see upstream PR 12196.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/kodi/Config.in | 13 +++----------
 package/kodi/kodi.mk   | 10 ----------
 2 files changed, 3 insertions(+), 20 deletions(-)

diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index 071c03d640..fefed70e0d 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -15,21 +15,14 @@ comment "kodi needs python w/ .py modules, a uClibc or glibc toolchain w/ C++, t
 		|| !BR2_PACKAGE_PYTHON \
 		|| BR2_PACKAGE_PYTHON_PYC_ONLY
 
-config BR2_PACKAGE_KODI_EGL_GLES
-	bool
-	default y
-	depends on BR2_PACKAGE_HAS_LIBEGL
-	depends on BR2_PACKAGE_HAS_LIBGLES
-	depends on !BR2_PACKAGE_KODI_GL_EGL # prefer GL if available
-
 config BR2_PACKAGE_KODI_GL_EGL
 	bool
 	default y
 	depends on BR2_PACKAGE_HAS_LIBEGL
 	depends on BR2_PACKAGE_HAS_LIBGL
 
-comment "kodi needs an OpenGL EGL with either an openGL or an OpenGL ES backend"
-	depends on !BR2_PACKAGE_KODI_GL_EGL && !BR2_PACKAGE_KODI_EGL_GLES
+comment "kodi needs an OpenGL EGL backend with OpenGL support"
+	depends on !BR2_PACKAGE_KODI_GL_EGL
 
 menuconfig BR2_PACKAGE_KODI
 	bool "kodi"
@@ -38,7 +31,7 @@ menuconfig BR2_PACKAGE_KODI
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_TOOLCHAIN_USES_MUSL
-	depends on BR2_PACKAGE_KODI_EGL_GLES || BR2_PACKAGE_KODI_GL_EGL
+	depends on BR2_PACKAGE_KODI_GL_EGL
 	depends on BR2_USE_WCHAR
 	depends on !BR2_STATIC_LIBS # python and others
 	depends on BR2_PACKAGE_KODI_ARCH_SUPPORTS
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 5af9fe180d..03be32acf2 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -249,16 +249,6 @@ else
 KODI_CONF_OPTS += -DENABLE_OPENGL=OFF -DENABLE_X11=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_KODI_EGL_GLES),y)
-KODI_DEPENDENCIES += libegl libgles
-KODI_CONF_OPTS += \
-	-DENABLE_OPENGLES=ON
-KODI_C_FLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags --libs egl`
-KODI_CXX_FLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags --libs egl`
-else
-KODI_CONF_OPTS += -DENABLE_OPENGLES=OFF
-endif
-
 ifeq ($(BR2_PACKAGE_KODI_LIBMICROHTTPD),y)
 KODI_CONF_OPTS += -DENABLE_MICROHTTPD=ON
 KODI_DEPENDENCIES += libmicrohttpd
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 3/4] package/kodi: Rework windowing support options
  2018-04-01  7:03 [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support Bernd Kuhls
  2018-04-01  7:03 ` [Buildroot] [PATCH 2/4] package/kodi: remove OpenGL ES support Bernd Kuhls
@ 2018-04-01  7:03 ` Bernd Kuhls
  2018-04-01  7:03 ` [Buildroot] [PATCH 4/4] package/kodi: Add Raspberry Pi to " Bernd Kuhls
  2018-04-01  7:17 ` [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support daggs
  3 siblings, 0 replies; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  7:03 UTC (permalink / raw)
  To: buildroot

To prepare the bump to the next Kodi version 18.0-Leia we rework the
options to control the windowing platform Kodi is built for. An
automatic choice will no longer be suitable after addition of support
for wayland and gbm, the former also providing a choice to use either
OpenGL or OpenGL ES.

This patch introduces a new choice option by converting the current
X11-based OpenGL support to the new scheme. Other windowing platforms
will be added by subsequent patches.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/kodi/Config.in | 41 +++++++++++++++++++++++++++--------------
 package/kodi/kodi.mk   | 19 +++++++++++--------
 2 files changed, 38 insertions(+), 22 deletions(-)

diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index fefed70e0d..649896df4e 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -15,14 +15,19 @@ comment "kodi needs python w/ .py modules, a uClibc or glibc toolchain w/ C++, t
 		|| !BR2_PACKAGE_PYTHON \
 		|| BR2_PACKAGE_PYTHON_PYC_ONLY
 
-config BR2_PACKAGE_KODI_GL_EGL
+config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
+	bool
+
+config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
 	bool
 	default y
 	depends on BR2_PACKAGE_HAS_LIBEGL
 	depends on BR2_PACKAGE_HAS_LIBGL
+	depends on BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
 
 comment "kodi needs an OpenGL EGL backend with OpenGL support"
-	depends on !BR2_PACKAGE_KODI_GL_EGL
+	depends on !BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
 
 menuconfig BR2_PACKAGE_KODI
 	bool "kodi"
@@ -31,10 +36,10 @@ menuconfig BR2_PACKAGE_KODI
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_TOOLCHAIN_USES_MUSL
-	depends on BR2_PACKAGE_KODI_GL_EGL
 	depends on BR2_USE_WCHAR
 	depends on !BR2_STATIC_LIBS # python and others
 	depends on BR2_PACKAGE_KODI_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
 	depends on BR2_PACKAGE_PYTHON
 	depends on !BR2_PACKAGE_PYTHON_PYC_ONLY
 	select BR2_NEEDS_HOST_JAVA
@@ -51,7 +56,6 @@ menuconfig BR2_PACKAGE_KODI
 	select BR2_PACKAGE_LIBCROSSGUID
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_LIBFRIBIDI
-	select BR2_PACKAGE_LIBGLU if BR2_PACKAGE_KODI_GL_EGL
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_LIBPLIST
 	select BR2_PACKAGE_LIBSAMPLERATE
@@ -73,8 +77,6 @@ menuconfig BR2_PACKAGE_KODI
 	select BR2_PACKAGE_SQLITE
 	select BR2_PACKAGE_TAGLIB
 	select BR2_PACKAGE_TINYXML
-	select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_KODI_GL_EGL
-	select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_KODI_GL_EGL
 	select BR2_PACKAGE_YAJL
 	select BR2_PACKAGE_ZLIB
 	select BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY if BR2_TOOLCHAIN_USES_GLIBC # runtime UTF conversion support
@@ -183,6 +185,19 @@ config BR2_PACKAGE_KODI_NONFREE
 	  Enable components with non-free licenses. This option
 	  currently only controls support for RAR archives.
 
+choice
+	prompt "platform"
+	default BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
+
+config BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
+	bool "X11/OpenGL"
+	depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
+	select BR2_PACKAGE_LIBDRM
+	select BR2_PACKAGE_LIBGLU
+	select BR2_PACKAGE_XLIB_LIBXRANDR
+
+endchoice
+
 config BR2_PACKAGE_KODI_PULSEAUDIO
 	bool "pulseaudio"
 	# Pulseaudio support in kodi needs glib support in Pulseaudio,
@@ -232,25 +247,23 @@ config BR2_PACKAGE_KODI_LIBUSB
 
 config BR2_PACKAGE_KODI_LIBVA
 	bool "va"
-	depends on BR2_PACKAGE_KODI_GL_EGL
-	depends on BR2_PACKAGE_XORG7
+	depends on BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
 	select BR2_PACKAGE_LIBVA
 	help
 	  Enable libva support.
 
-comment "libva support needs X.org with an openGL backend"
-	depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_KODI_GL_EGL
+comment "libva support needs platform 'X11/OpenGL'"
+	depends on !BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
 
 config BR2_PACKAGE_KODI_LIBVDPAU
 	bool "vdpau"
-	depends on BR2_PACKAGE_KODI_GL_EGL
-	depends on BR2_PACKAGE_XORG7
+	depends on BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
 	select BR2_PACKAGE_LIBVDPAU
 	help
 	  Enable libvdpau support.
 
-comment "libvdpau support needs X.org with an openGL backend"
-	depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_KODI_GL_EGL
+comment "libvdpau support needs platform 'X11/OpenGL'"
+	depends on !BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
 
 config BR2_PACKAGE_KODI_UPNP
 	bool "upnp"
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 03be32acf2..d7c11f22ae 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -162,6 +162,17 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 KODI_CXX_FLAGS += -latomic
 endif
 
+ifeq ($(BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL),y)
+KODI_DEPENDENCIES += libegl libglu libgl xlib_libX11 xlib_libXext \
+	xlib_libXrandr libdrm
+KODI_CONF_OPTS += \
+	-DENABLE_OPENGL=ON \
+	-DENABLE_OPENGLES=OFF \
+	-DENABLE_X11=ON
+else
+KODI_CONF_OPTS += -DENABLE_OPENGL=OFF -DENABLE_X11=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_KODI_MYSQL),y)
 KODI_CONF_OPTS += -DENABLE_MYSQLCLIENT=ON
 KODI_DEPENDENCIES += mysql
@@ -241,14 +252,6 @@ else
 KODI_CONF_OPTS += -DENABLE_ALSA=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_KODI_GL_EGL),y)
-KODI_DEPENDENCIES += libegl libglu libgl xlib_libX11 xlib_libXext \
-	xlib_libXrandr libdrm
-KODI_CONF_OPTS += -DENABLE_OPENGL=ON -DENABLE_X11=ON -DENABLE_OPENGLES=OFF
-else
-KODI_CONF_OPTS += -DENABLE_OPENGL=OFF -DENABLE_X11=OFF
-endif
-
 ifeq ($(BR2_PACKAGE_KODI_LIBMICROHTTPD),y)
 KODI_CONF_OPTS += -DENABLE_MICROHTTPD=ON
 KODI_DEPENDENCIES += libmicrohttpd
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 4/4] package/kodi: Add Raspberry Pi to windowing support options
  2018-04-01  7:03 [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support Bernd Kuhls
  2018-04-01  7:03 ` [Buildroot] [PATCH 2/4] package/kodi: remove OpenGL ES support Bernd Kuhls
  2018-04-01  7:03 ` [Buildroot] [PATCH 3/4] package/kodi: Rework windowing support options Bernd Kuhls
@ 2018-04-01  7:03 ` Bernd Kuhls
  2018-04-01  7:17 ` [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support daggs
  3 siblings, 0 replies; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  7:03 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/kodi/Config.in | 13 +++++++++++++
 package/kodi/kodi.mk   | 28 +++++++++++++---------------
 2 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index 649896df4e..257d1cd37a 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -18,6 +18,15 @@ comment "kodi needs python w/ .py modules, a uClibc or glibc toolchain w/ C++, t
 config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
 	bool
 
+config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
+	bool
+	default y
+	# List of valid CPUs can be found here:
+	# https://github.com/xbmc/xbmc/blob/Krypton/project/cmake/scripts/rbpi/ArchSetup.cmake#L12
+	depends on BR2_arm1176jzf_s || BR2_cortex_a7 || BR2_cortex_a53
+	depends on BR2_PACKAGE_RPI_USERLAND
+	select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
+
 config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
 	bool
 	default y
@@ -189,6 +198,10 @@ choice
 	prompt "platform"
 	default BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
 
+config BR2_PACKAGE_KODI_PLATFORM_RBPI
+	bool "Raspberry Pi"
+	depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
+
 config BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
 	bool "X11/OpenGL"
 	depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index d7c11f22ae..4e634049de 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -79,9 +79,7 @@ ifeq ($(BR2_ENABLE_LOCALE),)
 KODI_DEPENDENCIES += libiconv
 endif
 
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-KODI_CONF_OPTS += -DCORE_SYSTEM_NAME=rbpi
-KODI_DEPENDENCIES += rpi-userland
+ifeq ($(BR2_PACKAGE_KODI_PLATFORM_RBPI),y)
 # These CPU-specific options are only used on rbpi:
 # https://github.com/xbmc/xbmc/blob/Krypton/project/cmake/scripts/rbpi/ArchSetup.cmake#L13
 ifeq ($(BR2_arm1176jzf_s)$(BR2_cortex_a7)$(BR2_cortex_a53),y)
@@ -162,6 +160,18 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 KODI_CXX_FLAGS += -latomic
 endif
 
+ifeq ($(BR2_PACKAGE_KODI_PLATFORM_RBPI),y)
+KODI_CONF_OPTS += -DCORE_SYSTEM_NAME=rbpi -DENABLE_OPENGLES=ON
+KODI_DEPENDENCIES += rpi-userland
+else
+# Kodi considers "rpbi" and "linux" as two separate platforms. The
+# below options, defined in
+# project/cmake/scripts/linux/ArchSetup.cmake are only valid for the
+# "linux" platforms. The "rpbi" platform has a different set of
+# options, defined in project/cmake/scripts/rbpi/
+KODI_CONF_OPTS += -DENABLE_LDGOLD=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL),y)
 KODI_DEPENDENCIES += libegl libglu libgl xlib_libX11 xlib_libXext \
 	xlib_libXrandr libdrm
@@ -188,18 +198,6 @@ else
 KODI_CONF_OPTS += -DENABLE_NONFREE=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-KODI_CONF_OPTS += -DCORE_SYSTEM_NAME=rbpi
-KODI_DEPENDENCIES += rpi-userland
-else
-# Kodi considers "rpbi" and "linux" as two separate platforms. The
-# below options, defined in
-# project/cmake/scripts/linux/ArchSetup.cmake are only valid for the
-# "linux" platforms. The "rpbi" platform has a different set of
-# options, defined in project/cmake/scripts/rbpi/
-KODI_CONF_OPTS += -DENABLE_LDGOLD=OFF
-endif
-
 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 KODI_CONF_OPTS += -DENABLE_UDEV=ON
 KODI_DEPENDENCIES += udev
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:03 [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support Bernd Kuhls
                   ` (2 preceding siblings ...)
  2018-04-01  7:03 ` [Buildroot] [PATCH 4/4] package/kodi: Add Raspberry Pi to " Bernd Kuhls
@ 2018-04-01  7:17 ` daggs
  2018-04-01  7:25   ` daggs
  2018-04-01  7:30   ` Bernd Kuhls
  3 siblings, 2 replies; 21+ messages in thread
From: daggs @ 2018-04-01  7:17 UTC (permalink / raw)
  To: buildroot

Greetings Bernd,

> Sent: Sunday, April 01, 2018 at 10:03 AM
> From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> To: buildroot at buildroot.org
> Cc: "Maxime Hadjinlian" <maxime.hadjinlian@gmail.com>
> Subject: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Using the libamcodec package (-DENABLE_AML=ON) is not enough:
> 
> -- Could NOT find OpenGLES (missing:  OPENGLES_gl_LIBRARY OPENGLES_egl_LIBRARY OPENGLES_INCLUDE_DIR)
> CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
>   Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR)
> Call Stack (most recent call first):
>   /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
>   modules/FindEGL.cmake:30 (find_package_handle_standard_args)
>   scripts/common/Macros.cmake:354 (find_package)
>   CMakeLists.txt:208 (core_require_dep)
> 
> Libreelec provides pre-compiled OpenGL ES libraries for AML which are
> not provided by buildroot:
> https://github.com/LibreELEC/LibreELEC.tv/tree/master/packages/graphics/opengl-meson
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/kodi/kodi.mk | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
> index 9d3b65ae91..5af9fe180d 100644
> --- a/package/kodi/kodi.mk
> +++ b/package/kodi/kodi.mk
> @@ -72,6 +72,7 @@ KODI_CONF_OPTS += \
>  	-DLIBDVDCSS_URL=$(DL_DIR)/$(KODI_LIBDVDCSS_VERSION).tar.gz \
>  	-DLIBDVDNAV_URL=$(DL_DIR)/$(KODI_LIBDVDNAV_VERSION).tar.gz \
>  	-DLIBDVDREAD_URL=$(DL_DIR)/$(KODI_LIBDVDREAD_VERSION).tar.gz \
> +	-DENABLE_AML=OFF \
>  	-DENABLE_IMX=OFF
>  
>  ifeq ($(BR2_ENABLE_LOCALE),)
> @@ -186,12 +187,6 @@ else
>  # "linux" platforms. The "rpbi" platform has a different set of
>  # options, defined in project/cmake/scripts/rbpi/
>  KODI_CONF_OPTS += -DENABLE_LDGOLD=OFF
> -ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)
> -KODI_CONF_OPTS += -DENABLE_AML=ON
> -KODI_DEPENDENCIES += libamcodec
> -else
> -KODI_CONF_OPTS += -DENABLE_AML=OFF
> -endif
>  endif
>  
>  ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
> -- 
> 2.14.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

I'm trying to understand this change, does this means libamlogic is missing something or kodi doesn't supports gles anymore?
also, can you explain how Libreelec provided pre-compiled OpenGL ES libraries for AML are related to this? the link you've added points to a systemd script

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:17 ` [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support daggs
@ 2018-04-01  7:25   ` daggs
  2018-04-01  7:33     ` Bernd Kuhls
  2018-04-01  7:30   ` Bernd Kuhls
  1 sibling, 1 reply; 21+ messages in thread
From: daggs @ 2018-04-01  7:25 UTC (permalink / raw)
  To: buildroot

> Sent: Sunday, April 01, 2018 at 10:17 AM
> From: daggs <daggs@gmx.com>
> To: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> Cc: "Maxime Hadjinlian" <maxime.hadjinlian@gmail.com>, buildroot at buildroot.org
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Greetings Bernd,
> 
> > Sent: Sunday, April 01, 2018 at 10:03 AM
> > From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> > To: buildroot at buildroot.org
> > Cc: "Maxime Hadjinlian" <maxime.hadjinlian@gmail.com>
> > Subject: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
> >
> > Using the libamcodec package (-DENABLE_AML=ON) is not enough:
> > 
> > -- Could NOT find OpenGLES (missing:  OPENGLES_gl_LIBRARY OPENGLES_egl_LIBRARY OPENGLES_INCLUDE_DIR)
> > CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
> >   Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR)
> > Call Stack (most recent call first):
> >   /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
> >   modules/FindEGL.cmake:30 (find_package_handle_standard_args)
> >   scripts/common/Macros.cmake:354 (find_package)
> >   CMakeLists.txt:208 (core_require_dep)
> > 
> > Libreelec provides pre-compiled OpenGL ES libraries for AML which are
> > not provided by buildroot:
> > https://github.com/LibreELEC/LibreELEC.tv/tree/master/packages/graphics/opengl-meson
> > 
> > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> > ---
> >  package/kodi/kodi.mk | 7 +------
> >  1 file changed, 1 insertion(+), 6 deletions(-)
> > 
> > diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
> > index 9d3b65ae91..5af9fe180d 100644
> > --- a/package/kodi/kodi.mk
> > +++ b/package/kodi/kodi.mk
> > @@ -72,6 +72,7 @@ KODI_CONF_OPTS += \
> >  	-DLIBDVDCSS_URL=$(DL_DIR)/$(KODI_LIBDVDCSS_VERSION).tar.gz \
> >  	-DLIBDVDNAV_URL=$(DL_DIR)/$(KODI_LIBDVDNAV_VERSION).tar.gz \
> >  	-DLIBDVDREAD_URL=$(DL_DIR)/$(KODI_LIBDVDREAD_VERSION).tar.gz \
> > +	-DENABLE_AML=OFF \
> >  	-DENABLE_IMX=OFF
> >  
> >  ifeq ($(BR2_ENABLE_LOCALE),)
> > @@ -186,12 +187,6 @@ else
> >  # "linux" platforms. The "rpbi" platform has a different set of
> >  # options, defined in project/cmake/scripts/rbpi/
> >  KODI_CONF_OPTS += -DENABLE_LDGOLD=OFF
> > -ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)
> > -KODI_CONF_OPTS += -DENABLE_AML=ON
> > -KODI_DEPENDENCIES += libamcodec
> > -else
> > -KODI_CONF_OPTS += -DENABLE_AML=OFF
> > -endif
> >  endif
> >  
> >  ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
> > -- 
> > 2.14.2
> > 
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> 
> I'm trying to understand this change, does this means libamlogic is missing something or kodi doesn't supports gles anymore?
> also, can you explain how Libreelec provided pre-compiled OpenGL ES libraries for AML are related to this? the link you've added points to a systemd script
> 
> Dagg.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

ok, I understood the second part, the OpenGL ES libraries are part of buildroot, see odroid-mali which uses version r6p1.
do you mean that they need to be upgraded?

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:17 ` [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support daggs
  2018-04-01  7:25   ` daggs
@ 2018-04-01  7:30   ` Bernd Kuhls
  2018-04-01  7:59     ` daggs
  1 sibling, 1 reply; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  7:30 UTC (permalink / raw)
  To: buildroot

Hi daggs,

Am Sun, 01 Apr 2018 09:17:59 +0200 schrieb daggs:

> I'm trying to understand this change, does this means libamlogic is
> missing something or kodi doesn't supports gles anymore?

it means that buildroot does not provide the OpenGL ES libraries needed 
for amlogic support in Kodi.

> also, can you explain how Libreelec provided pre-compiled OpenGL ES
> libraries for AML are related to this? the link you've added points to a
> systemd script

Please have a look at https://github.com/LibreELEC/LibreELEC.tv/blob/
master/packages/graphics/opengl-meson/package.mk#L42, it states:

"opengl-meson: OpenGL ES pre-compiled libraries for Mali GPUs found in 
Amlogic Meson SoCs"

Atm these libraries are not provided by buildroot, so in the current 
state, buildroot can not build Kodi with amlogic support, this patch 
fixes the problem. If someone is interested in amlogic support in Kodi 
please send patches to provide the needed libraries.

Regards, Bernd

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:25   ` daggs
@ 2018-04-01  7:33     ` Bernd Kuhls
  2018-04-01  7:43       ` daggs
  0 siblings, 1 reply; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  7:33 UTC (permalink / raw)
  To: buildroot

Am Sun, 01 Apr 2018 09:25:57 +0200 schrieb daggs:

> ok, I understood the second part, the OpenGL ES libraries are part of
> buildroot, see odroid-mali which uses version r6p1.
> do you mean that they need to be upgraded?

Hi daggs,

how are amlogic and odroid connected to each other? Please forgive me if 
I am asking stupid questions, but I never used hardware like this for 
Kodi.

Regards, Bernd

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:33     ` Bernd Kuhls
@ 2018-04-01  7:43       ` daggs
  2018-04-01  7:55         ` Bernd Kuhls
  0 siblings, 1 reply; 21+ messages in thread
From: daggs @ 2018-04-01  7:43 UTC (permalink / raw)
  To: buildroot

Greetings Bernd,

> Sent: Sunday, April 01, 2018 at 10:33 AM
> From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Am Sun, 01 Apr 2018 09:25:57 +0200 schrieb daggs:
> 
> > ok, I understood the second part, the OpenGL ES libraries are part of
> > buildroot, see odroid-mali which uses version r6p1.
> > do you mean that they need to be upgraded?
> 
> Hi daggs,
> 
> how are amlogic and odroid connected to each other? Please forgive me if 
> I am asking stupid questions, but I never used hardware like this for 
> Kodi.
> 
> Regards, Bernd
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

odroidc2 boards use amlogic libs, infact I'm the maintainer of the libamlogic pkg and I've added the support to kodi.
if it isn't needed to get hw decoding for kodi, I see no point in having that pkg in buildroot.
afaik, it is needed, e,g, removing that pkg will result in no hw decoding support under kodi for the c2 boards (e.g. no x265) under kodi.

Dagg.

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:43       ` daggs
@ 2018-04-01  7:55         ` Bernd Kuhls
  2018-04-01  8:02           ` daggs
  2018-04-01  8:11           ` Thomas Petazzoni
  0 siblings, 2 replies; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  7:55 UTC (permalink / raw)
  To: buildroot

Am Sun, 01 Apr 2018 09:43:00 +0200 schrieb daggs:

> odroidc2 boards use amlogic libs, infact I'm the maintainer of the
> libamlogic pkg and I've added the support to kodi.

Hi daggs,

should the buildroot package libamcodec depend on odroid-mali?

Regards, Bernd

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:30   ` Bernd Kuhls
@ 2018-04-01  7:59     ` daggs
  0 siblings, 0 replies; 21+ messages in thread
From: daggs @ 2018-04-01  7:59 UTC (permalink / raw)
  To: buildroot

Greetings Bernd,

> Sent: Sunday, April 01, 2018 at 10:30 AM
> From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Hi daggs,
> 
> Am Sun, 01 Apr 2018 09:17:59 +0200 schrieb daggs:
> 
> > I'm trying to understand this change, does this means libamlogic is
> > missing something or kodi doesn't supports gles anymore?
> 
> it means that buildroot does not provide the OpenGL ES libraries needed 
> for amlogic support in Kodi.
> 
> > also, can you explain how Libreelec provided pre-compiled OpenGL ES
> > libraries for AML are related to this? the link you've added points to a
> > systemd script
> 
> Please have a look at https://github.com/LibreELEC/LibreELEC.tv/blob/
> master/packages/graphics/opengl-meson/package.mk#L42, it states:
> 
> "opengl-meson: OpenGL ES pre-compiled libraries for Mali GPUs found in 
> Amlogic Meson SoCs"
> 
> Atm these libraries are not provided by buildroot, so in the current 
> state, buildroot can not build Kodi with amlogic support, this patch 
> fixes the problem. If someone is interested in amlogic support in Kodi 
> please send patches to provide the needed libraries.
> 
> Regards, Bernd
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

the OpenGL ES libraries are part of buildroot, see odroid-mali which uses version r6p1.
do you mean that they need to be upgraded?

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:55         ` Bernd Kuhls
@ 2018-04-01  8:02           ` daggs
  2018-04-01  8:16             ` Bernd Kuhls
  2018-04-01  8:11           ` Thomas Petazzoni
  1 sibling, 1 reply; 21+ messages in thread
From: daggs @ 2018-04-01  8:02 UTC (permalink / raw)
  To: buildroot

Greetings Bernd,

> Sent: Sunday, April 01, 2018 at 10:55 AM
> From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Am Sun, 01 Apr 2018 09:43:00 +0200 schrieb daggs:
> 
> > odroidc2 boards use amlogic libs, infact I'm the maintainer of the
> > libamlogic pkg and I've added the support to kodi.
> 
> Hi daggs,
> 
> should the buildroot package libamcodec depend on odroid-mali?
> 
> Regards, Bernd
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

from what I understand, no.
I'll try to ask in the vendor's forums to get a clearer layout on the matter, I'd be happy if you can put this patch on hold until they answer me.
maybe it lib isn't needed and all what is needed is the mali lib.

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  7:55         ` Bernd Kuhls
  2018-04-01  8:02           ` daggs
@ 2018-04-01  8:11           ` Thomas Petazzoni
  2018-04-01  8:24             ` daggs
  1 sibling, 1 reply; 21+ messages in thread
From: Thomas Petazzoni @ 2018-04-01  8:11 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 01 Apr 2018 09:55:16 +0200, Bernd Kuhls wrote:
> Am Sun, 01 Apr 2018 09:43:00 +0200 schrieb daggs:
> 
> > odroidc2 boards use amlogic libs, infact I'm the maintainer of the
> > libamlogic pkg and I've added the support to kodi.  
> 
> Hi daggs,
> 
> should the buildroot package libamcodec depend on odroid-mali?

libamcodec is for the video decoding, odroid-mali is for the GPU. I
don't think there's a reason for libamcodec to depend on odroid-mali.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  8:02           ` daggs
@ 2018-04-01  8:16             ` Bernd Kuhls
  2018-04-01  8:27               ` daggs
  0 siblings, 1 reply; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01  8:16 UTC (permalink / raw)
  To: buildroot

Am Sun, 01 Apr 2018 10:02:57 +0200 schrieb daggs:

> Greetings Bernd,
> 
>> Sent: Sunday, April 01, 2018 at 10:55 AM From: "Bernd Kuhls"
>> <bernd.kuhls@t-online.de> To:
>> buildroot at uclibc.org Subject: Re:
>> [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>>
>> Am Sun, 01 Apr 2018 09:43:00 +0200 schrieb daggs:
>> 
>> > odroidc2 boards use amlogic libs, infact I'm the maintainer of the
>> > libamlogic pkg and I've added the support to kodi.
>> 
>> Hi daggs,
>> 
>> should the buildroot package libamcodec depend on odroid-mali?
>> 
> from what I understand, no.

Hi daggs,

so you think it is possible to use libamcodec support in Kodi with OpenGL 
ES provided by, let's say, mesa3d with the DRI swrast driver? And even if 
there is no direct dependency between the libamcodoc and odroid-mali 
packages what about extending the

	ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)

check in kodi.mk to

	ifeq ($(BR2_PACKAGE_LIBAMCODEC)$(BR2_PACKAGE_ODROID_MALI),yy)

to fix the build error?

Regards, Bernd

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  8:11           ` Thomas Petazzoni
@ 2018-04-01  8:24             ` daggs
  0 siblings, 0 replies; 21+ messages in thread
From: daggs @ 2018-04-01  8:24 UTC (permalink / raw)
  To: buildroot

Greetings Thomas,

> Sent: Sunday, April 01, 2018 at 11:11 AM
> From: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
> To: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> Cc: buildroot at uclibc.org, daggs <daggs@gmx.com>
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Hello,
> 
> On Sun, 01 Apr 2018 09:55:16 +0200, Bernd Kuhls wrote:
> > Am Sun, 01 Apr 2018 09:43:00 +0200 schrieb daggs:
> > 
> > > odroidc2 boards use amlogic libs, infact I'm the maintainer of the
> > > libamlogic pkg and I've added the support to kodi.  
> > 
> > Hi daggs,
> > 
> > should the buildroot package libamcodec depend on odroid-mali?
> 
> libamcodec is for the video decoding, odroid-mali is for the GPU. I
> don't think there's a reason for libamcodec to depend on odroid-mali.
> 
> Best regards,
> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 

afaics, there is no such dependency. I agree, there shouldn't be one.

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  8:16             ` Bernd Kuhls
@ 2018-04-01  8:27               ` daggs
  2018-04-01  8:45                 ` Thomas Petazzoni
  2018-04-01 11:41                 ` Bernd Kuhls
  0 siblings, 2 replies; 21+ messages in thread
From: daggs @ 2018-04-01  8:27 UTC (permalink / raw)
  To: buildroot

Greetings Bernd,

> Sent: Sunday, April 01, 2018 at 11:16 AM
> From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Am Sun, 01 Apr 2018 10:02:57 +0200 schrieb daggs:
> 
> > Greetings Bernd,
> > 
> >> Sent: Sunday, April 01, 2018 at 10:55 AM From: "Bernd Kuhls"
> >> <bernd.kuhls@t-online.de> To:
> >> buildroot at uclibc.org Subject: Re:
> >> [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
> >>
> >> Am Sun, 01 Apr 2018 09:43:00 +0200 schrieb daggs:
> >> 
> >> > odroidc2 boards use amlogic libs, infact I'm the maintainer of the
> >> > libamlogic pkg and I've added the support to kodi.
> >> 
> >> Hi daggs,
> >> 
> >> should the buildroot package libamcodec depend on odroid-mali?
> >> 
> > from what I understand, no.
> 
> Hi daggs,
> 
> so you think it is possible to use libamcodec support in Kodi with OpenGL 
> ES provided by, let's say, mesa3d with the DRI swrast driver? And even if 
> there is no direct dependency between the libamcodoc and odroid-mali 
> packages what about extending the
> 
> 	ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)
> 
> check in kodi.mk to
> 
> 	ifeq ($(BR2_PACKAGE_LIBAMCODEC)$(BR2_PACKAGE_ODROID_MALI),yy)
> 
> to fix the build error?
> 
> Regards, Bernd
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

as said by Thomas in another mail, there shouldn't be any dependency, what is the exact issue? compilation failure? what kodi version are you using?
the answers for the two questions above will give me a lead on where to start looking.

Thanks,

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  8:27               ` daggs
@ 2018-04-01  8:45                 ` Thomas Petazzoni
  2018-04-01 11:41                 ` Bernd Kuhls
  1 sibling, 0 replies; 21+ messages in thread
From: Thomas Petazzoni @ 2018-04-01  8:45 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 1 Apr 2018 10:27:22 +0200, daggs wrote:

> > so you think it is possible to use libamcodec support in Kodi with OpenGL 
> > ES provided by, let's say, mesa3d with the DRI swrast driver? And even if 
> > there is no direct dependency between the libamcodoc and odroid-mali 
> > packages what about extending the
> > 
> > 	ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)
> > 
> > check in kodi.mk to
> > 
> > 	ifeq ($(BR2_PACKAGE_LIBAMCODEC)$(BR2_PACKAGE_ODROID_MALI),yy)
> > 
> > to fix the build error?
> > 
> > Regards, Bernd
> > 
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> >   
> 
> as said by Thomas in another mail, there shouldn't be any dependency, what is the exact issue? compilation failure? what kodi version are you using?
> the answers for the two questions above will give me a lead on where to start looking.

Well, even though there is no dependency between libamcodec and
odroid-mali, it is possible that Kodi needs both to enable the AML
platform support.

But indeed, it would be easier if Bernd could provide a .config file
that allows to reproduce the build failure.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01  8:27               ` daggs
  2018-04-01  8:45                 ` Thomas Petazzoni
@ 2018-04-01 11:41                 ` Bernd Kuhls
  2018-04-01 12:20                   ` Arnout Vandecappelle
  2018-04-01 12:25                   ` daggs
  1 sibling, 2 replies; 21+ messages in thread
From: Bernd Kuhls @ 2018-04-01 11:41 UTC (permalink / raw)
  To: buildroot

Am Sun, 01 Apr 2018 10:27:22 +0200 schrieb daggs:

> as said by Thomas in another mail, there shouldn't be any dependency,
> what is the exact issue? compilation failure? what kodi version are you
> using?

Hi daggs,

the following builds were all made with unpatched buildroot master branch.

The only successful kodi build including libamcodec was made with odroid-
mali using this defconfig:

BR2_aarch64=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_ODROID_MALI=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_ONLY=y
BR2_PACKAGE_LIBAMCODEC=y

-- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
linux-gnu/sysroot/usr/lib/libGLESv2.so  
-- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
sysroot/usr/lib/libEGL.so (found version "r4p0") 
-- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
sysroot/usr/include/amcodec  

-- OPENGL enabled: No
-- OPENGLES enabled: Yes
-- X enabled: No
-- LIBDRM enabled: No
-- AML enabled: Yes

Then I tried two builds with mesa3d & libamcodec, one where mesa3d 
provides opengl, in the second build mesa3d provides opengles, both 
failed:

------------------------------------------------------------------

BR2_aarch64=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_ONLY=y
BR2_PACKAGE_LIBAMCODEC=y

-- Found OpenGl: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/lib/libGL.so  
-- Found X: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/lib/libX11.so (found version "1.6.5") 
-- Found LibDRM: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/lib/libdrm.so (found version "2.4.91") 
-- Found XRandR: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/lib/libXrandr.so (found version "1.5.1") 
-- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
-- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/include/amcodec  

-- OPENGL enabled: Yes
-- X enabled: Yes
-- LIBDRM enabled: Yes
-- XRANDR enabled: Yes
-- AML enabled: Yes

[ 94%] Building CXX object build/cores/VideoPlayer/videorenderers/
CMakeFiles/videorenderers.dir/RenderManager.cpp.o
/home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
VideoPlayer/VideoRenderers/RenderManager.cpp: In member function 'void 
CRenderManager::CreateRenderer()':
/home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
VideoPlayer/VideoRenderers/RenderManager.cpp:582:25: error: 
'CRendererAML' does not name a type
       m_pRenderer = new CRendererAML;
                         ^~~~~~~~~~~~
------------------------------------------------------------------

BR2_aarch64=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_ONLY=y
BR2_PACKAGE_LIBAMCODEC=y

-- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
linux-uclibc/sysroot/usr/lib/libGLESv2.so  
-- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
-- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
uclibc/sysroot/usr/include/amcodec  

-- OPENGL enabled: No
-- OPENGLES enabled: Yes
-- X enabled: No
-- LIBDRM enabled: No
-- AML enabled: Yes

/bin/grep: /usr/lib/libgbm.la: No such file or directory
/bin/sed: can't read /usr/lib/libgbm.la: No such file or directory
libtool:   error: '/usr/lib/libgbm.la' is not a valid libtool archive

------------------------------------------------------------------

Buildroot should not allow to use non-working combinations and here I 
think hardware-wise we should in some way connect libamcodec and odroid-
mail to be used by Kodi. Besides the build errors it makes no sense to 
have software rendering provided by mesa3d when you have vendor-provided 
opengl libs.

What do you think?

Regards, Bernd

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01 11:41                 ` Bernd Kuhls
@ 2018-04-01 12:20                   ` Arnout Vandecappelle
  2018-04-01 12:25                   ` daggs
  1 sibling, 0 replies; 21+ messages in thread
From: Arnout Vandecappelle @ 2018-04-01 12:20 UTC (permalink / raw)
  To: buildroot



On 01-04-18 13:41, Bernd Kuhls wrote:
> Am Sun, 01 Apr 2018 10:27:22 +0200 schrieb daggs:
> 
>> as said by Thomas in another mail, there shouldn't be any dependency,
>> what is the exact issue? compilation failure? what kodi version are you
>> using?
> 
> Hi daggs,
> 
> the following builds were all made with unpatched buildroot master branch.
> 
> The only successful kodi build including libamcodec was made with odroid-
> mali using this defconfig:
> 
> BR2_aarch64=y
> BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_ODROID_MALI=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_ONLY=y
> BR2_PACKAGE_LIBAMCODEC=y

 So, maybe the condition in kodi.mk should just change to:

-ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)
+ifeq ($(BR2_PACKAGE_LIBAMCODEC)$(BR2_PACKAGE_ODROID_MALI),yy)
 KODI_CONF_OPTS += -DENABLE_AML=ON
 KODI_DEPENDENCIES += libamcodec
 else
 KODI_CONF_OPTS += -DENABLE_AML=OFF
 endif

?

 I guess Kodi's AML just works with OPENGLES, not with OPENGL. So the condition
could maybe use BR2_PACKAGE_HAS_LIBGLES instead of BR2_PACKAGE_ODROID_MALI. But
as you say in the end of this mail, Kodi still fails to build with mesa swrast
and it doesn't make a lot of sense to combine swrast wit the binary mali driver.

> 
> -- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
> linux-gnu/sysroot/usr/lib/libGLESv2.so  
> -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
> sysroot/usr/lib/libEGL.so (found version "r4p0") 
> -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
> sysroot/usr/include/amcodec  
> 
> -- OPENGL enabled: No
> -- OPENGLES enabled: Yes
> -- X enabled: No
> -- LIBDRM enabled: No
> -- AML enabled: Yes
> 
> Then I tried two builds with mesa3d & libamcodec, one where mesa3d 
> provides opengl, in the second build mesa3d provides opengles, both 
> failed:
> 
> ------------------------------------------------------------------
> 
> BR2_aarch64=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_MESA3D=y
> BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
> BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> BR2_PACKAGE_XORG7=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_ONLY=y
> BR2_PACKAGE_LIBAMCODEC=y
> 
> -- Found OpenGl: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libGL.so  
> -- Found X: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libX11.so (found version "1.6.5") 
> -- Found LibDRM: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libdrm.so (found version "2.4.91") 
> -- Found XRandR: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libXrandr.so (found version "1.5.1") 
> -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
> -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/include/amcodec  
> 
> -- OPENGL enabled: Yes
> -- X enabled: Yes
> -- LIBDRM enabled: Yes
> -- XRANDR enabled: Yes
> -- AML enabled: Yes
> 
> [ 94%] Building CXX object build/cores/VideoPlayer/videorenderers/
> CMakeFiles/videorenderers.dir/RenderManager.cpp.o
> /home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
> VideoPlayer/VideoRenderers/RenderManager.cpp: In member function 'void 
> CRenderManager::CreateRenderer()':
> /home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
> VideoPlayer/VideoRenderers/RenderManager.cpp:582:25: error: 
> 'CRendererAML' does not name a type
>        m_pRenderer = new CRendererAML;
>                          ^~~~~~~~~~~~
> ------------------------------------------------------------------
> 
> BR2_aarch64=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_MESA3D=y
> BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
> BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> BR2_PACKAGE_MESA3D_OPENGL_ES=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_ONLY=y
> BR2_PACKAGE_LIBAMCODEC=y
> 
> -- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
> linux-uclibc/sysroot/usr/lib/libGLESv2.so  
> -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
> -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/include/amcodec  
> 
> -- OPENGL enabled: No
> -- OPENGLES enabled: Yes
> -- X enabled: No
> -- LIBDRM enabled: No
> -- AML enabled: Yes
> 
> /bin/grep: /usr/lib/libgbm.la: No such file or directory
> /bin/sed: can't read /usr/lib/libgbm.la: No such file or directory
> libtool:   error: '/usr/lib/libgbm.la' is not a valid libtool archive

 libgbm is enabled by BR2_PACKAGE_MESA3D_OPENGL_EGL, so it should be there. If
Kodi looks for it in /usr/lib, sounds like a bug in Kodi...

> ------------------------------------------------------------------
> 
> Buildroot should not allow to use non-working combinations and here I 
> think hardware-wise we should in some way connect libamcodec and odroid-
> mail to be used by Kodi. Besides the build errors it makes no sense to 
> have software rendering provided by mesa3d when you have vendor-provided 
> opengl libs.

 I agree with that.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01 11:41                 ` Bernd Kuhls
  2018-04-01 12:20                   ` Arnout Vandecappelle
@ 2018-04-01 12:25                   ` daggs
  2018-04-02  4:49                     ` daggs
  1 sibling, 1 reply; 21+ messages in thread
From: daggs @ 2018-04-01 12:25 UTC (permalink / raw)
  To: buildroot

Greetings Bernd,

> Sent: Sunday, April 01, 2018 at 2:41 PM
> From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Am Sun, 01 Apr 2018 10:27:22 +0200 schrieb daggs:
> 
> > as said by Thomas in another mail, there shouldn't be any dependency,
> > what is the exact issue? compilation failure? what kodi version are you
> > using?
> 
> Hi daggs,
> 
> the following builds were all made with unpatched buildroot master branch.
> 
> The only successful kodi build including libamcodec was made with odroid-
> mali using this defconfig:
> 
> BR2_aarch64=y
> BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_ODROID_MALI=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_ONLY=y
> BR2_PACKAGE_LIBAMCODEC=y
> 
> -- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
> linux-gnu/sysroot/usr/lib/libGLESv2.so  
> -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
> sysroot/usr/lib/libEGL.so (found version "r4p0") 
> -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
> sysroot/usr/include/amcodec  
> 
> -- OPENGL enabled: No
> -- OPENGLES enabled: Yes
> -- X enabled: No
> -- LIBDRM enabled: No
> -- AML enabled: Yes
> 
> Then I tried two builds with mesa3d & libamcodec, one where mesa3d 
> provides opengl, in the second build mesa3d provides opengles, both 
> failed:
> 
> ------------------------------------------------------------------
> 
> BR2_aarch64=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_MESA3D=y
> BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
> BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> BR2_PACKAGE_XORG7=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_ONLY=y
> BR2_PACKAGE_LIBAMCODEC=y
> 
> -- Found OpenGl: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libGL.so  
> -- Found X: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libX11.so (found version "1.6.5") 
> -- Found LibDRM: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libdrm.so (found version "2.4.91") 
> -- Found XRandR: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libXrandr.so (found version "1.5.1") 
> -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
> -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/include/amcodec  
> 
> -- OPENGL enabled: Yes
> -- X enabled: Yes
> -- LIBDRM enabled: Yes
> -- XRANDR enabled: Yes
> -- AML enabled: Yes
> 
> [ 94%] Building CXX object build/cores/VideoPlayer/videorenderers/
> CMakeFiles/videorenderers.dir/RenderManager.cpp.o
> /home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
> VideoPlayer/VideoRenderers/RenderManager.cpp: In member function 'void 
> CRenderManager::CreateRenderer()':
> /home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
> VideoPlayer/VideoRenderers/RenderManager.cpp:582:25: error: 
> 'CRendererAML' does not name a type
>        m_pRenderer = new CRendererAML;
>                          ^~~~~~~~~~~~
> ------------------------------------------------------------------
> 
> BR2_aarch64=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_KODI=y
> BR2_PACKAGE_MESA3D=y
> BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
> BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> BR2_PACKAGE_MESA3D_OPENGL_ES=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_ONLY=y
> BR2_PACKAGE_LIBAMCODEC=y
> 
> -- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
> linux-uclibc/sysroot/usr/lib/libGLESv2.so  
> -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
> -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> uclibc/sysroot/usr/include/amcodec  
> 
> -- OPENGL enabled: No
> -- OPENGLES enabled: Yes
> -- X enabled: No
> -- LIBDRM enabled: No
> -- AML enabled: Yes
> 
> /bin/grep: /usr/lib/libgbm.la: No such file or directory
> /bin/sed: can't read /usr/lib/libgbm.la: No such file or directory
> libtool:   error: '/usr/lib/libgbm.la' is not a valid libtool archive
> 
> ------------------------------------------------------------------
> 
> Buildroot should not allow to use non-working combinations and here I 
> think hardware-wise we should in some way connect libamcodec and odroid-
> mail to be used by Kodi. Besides the build errors it makes no sense to 
> have software rendering provided by mesa3d when you have vendor-provided 
> opengl libs.
> 
> What do you think?
> 
> Regards, Bernd
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

I have an idea that can address this issue but first I'd like to get confirmation from the vendor's support team especially since libreelec doesn't seems to libamlogic compiled, ok?

Dagg

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
  2018-04-01 12:25                   ` daggs
@ 2018-04-02  4:49                     ` daggs
  0 siblings, 0 replies; 21+ messages in thread
From: daggs @ 2018-04-02  4:49 UTC (permalink / raw)
  To: buildroot

Greetings Bernd,

> Sent: Sunday, April 01, 2018 at 3:25 PM
> From: daggs <daggs@gmx.com>
> To: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> Cc: buildroot at uclibc.org
> Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
>
> Greetings Bernd,
> 
> > Sent: Sunday, April 01, 2018 at 2:41 PM
> > From: "Bernd Kuhls" <bernd.kuhls@t-online.de>
> > To: buildroot at uclibc.org
> > Subject: Re: [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support
> >
> > Am Sun, 01 Apr 2018 10:27:22 +0200 schrieb daggs:
> > 
> > > as said by Thomas in another mail, there shouldn't be any dependency,
> > > what is the exact issue? compilation failure? what kodi version are you
> > > using?
> > 
> > Hi daggs,
> > 
> > the following builds were all made with unpatched buildroot master branch.
> > 
> > The only successful kodi build including libamcodec was made with odroid-
> > mali using this defconfig:
> > 
> > BR2_aarch64=y
> > BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
> > BR2_TOOLCHAIN_BUILDROOT_CXX=y
> > BR2_PACKAGE_KODI=y
> > BR2_PACKAGE_ODROID_MALI=y
> > BR2_PACKAGE_PYTHON=y
> > BR2_PACKAGE_PYTHON_PY_ONLY=y
> > BR2_PACKAGE_LIBAMCODEC=y
> > 
> > -- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
> > linux-gnu/sysroot/usr/lib/libGLESv2.so  
> > -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
> > sysroot/usr/lib/libEGL.so (found version "r4p0") 
> > -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-gnu/
> > sysroot/usr/include/amcodec  
> > 
> > -- OPENGL enabled: No
> > -- OPENGLES enabled: Yes
> > -- X enabled: No
> > -- LIBDRM enabled: No
> > -- AML enabled: Yes
> > 
> > Then I tried two builds with mesa3d & libamcodec, one where mesa3d 
> > provides opengl, in the second build mesa3d provides opengles, both 
> > failed:
> > 
> > ------------------------------------------------------------------
> > 
> > BR2_aarch64=y
> > BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> > BR2_TOOLCHAIN_BUILDROOT_CXX=y
> > BR2_PACKAGE_KODI=y
> > BR2_PACKAGE_MESA3D=y
> > BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
> > BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> > BR2_PACKAGE_XORG7=y
> > BR2_PACKAGE_PYTHON=y
> > BR2_PACKAGE_PYTHON_PY_ONLY=y
> > BR2_PACKAGE_LIBAMCODEC=y
> > 
> > -- Found OpenGl: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/lib/libGL.so  
> > -- Found X: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/lib/libX11.so (found version "1.6.5") 
> > -- Found LibDRM: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/lib/libdrm.so (found version "2.4.91") 
> > -- Found XRandR: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/lib/libXrandr.so (found version "1.5.1") 
> > -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
> > -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/include/amcodec  
> > 
> > -- OPENGL enabled: Yes
> > -- X enabled: Yes
> > -- LIBDRM enabled: Yes
> > -- XRANDR enabled: Yes
> > -- AML enabled: Yes
> > 
> > [ 94%] Building CXX object build/cores/VideoPlayer/videorenderers/
> > CMakeFiles/videorenderers.dir/RenderManager.cpp.o
> > /home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
> > VideoPlayer/VideoRenderers/RenderManager.cpp: In member function 'void 
> > CRenderManager::CreateRenderer()':
> > /home/bernd/buildroot/br2/output/build/kodi-17.6-Krypton/xbmc/cores/
> > VideoPlayer/VideoRenderers/RenderManager.cpp:582:25: error: 
> > 'CRendererAML' does not name a type
> >        m_pRenderer = new CRendererAML;
> >                          ^~~~~~~~~~~~
> > ------------------------------------------------------------------
> > 
> > BR2_aarch64=y
> > BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> > BR2_TOOLCHAIN_BUILDROOT_CXX=y
> > BR2_PACKAGE_KODI=y
> > BR2_PACKAGE_MESA3D=y
> > BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
> > BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> > BR2_PACKAGE_MESA3D_OPENGL_ES=y
> > BR2_PACKAGE_PYTHON=y
> > BR2_PACKAGE_PYTHON_PY_ONLY=y
> > BR2_PACKAGE_LIBAMCODEC=y
> > 
> > -- Found OpenGLES: /home/buildroot/br2/output/host/aarch64-buildroot-
> > linux-uclibc/sysroot/usr/lib/libGLESv2.so  
> > -- Found EGL: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/lib/libEGL.so (found version "18.0.0") 
> > -- Found AML: /home/buildroot/br2/output/host/aarch64-buildroot-linux-
> > uclibc/sysroot/usr/include/amcodec  
> > 
> > -- OPENGL enabled: No
> > -- OPENGLES enabled: Yes
> > -- X enabled: No
> > -- LIBDRM enabled: No
> > -- AML enabled: Yes
> > 
> > /bin/grep: /usr/lib/libgbm.la: No such file or directory
> > /bin/sed: can't read /usr/lib/libgbm.la: No such file or directory
> > libtool:   error: '/usr/lib/libgbm.la' is not a valid libtool archive
> > 
> > ------------------------------------------------------------------
> > 
> > Buildroot should not allow to use non-working combinations and here I 
> > think hardware-wise we should in some way connect libamcodec and odroid-
> > mail to be used by Kodi. Besides the build errors it makes no sense to 
> > have software rendering provided by mesa3d when you have vendor-provided 
> > opengl libs.
> > 
> > What do you think?
> > 
> > Regards, Bernd
> > 
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> > 
> 
> I have an idea that can address this issue but first I'd like to get confirmation from the vendor's support team especially since libreelec doesn't seems to libamlogic compiled, ok?
> 
> Dagg

I have the answer, I'll submit a patch after your latest changes will be committed to the repo.

Dagg.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2018-04-02  4:49 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-01  7:03 [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support Bernd Kuhls
2018-04-01  7:03 ` [Buildroot] [PATCH 2/4] package/kodi: remove OpenGL ES support Bernd Kuhls
2018-04-01  7:03 ` [Buildroot] [PATCH 3/4] package/kodi: Rework windowing support options Bernd Kuhls
2018-04-01  7:03 ` [Buildroot] [PATCH 4/4] package/kodi: Add Raspberry Pi to " Bernd Kuhls
2018-04-01  7:17 ` [Buildroot] [PATCH 1/4] package/kodi: remove libamcodec support daggs
2018-04-01  7:25   ` daggs
2018-04-01  7:33     ` Bernd Kuhls
2018-04-01  7:43       ` daggs
2018-04-01  7:55         ` Bernd Kuhls
2018-04-01  8:02           ` daggs
2018-04-01  8:16             ` Bernd Kuhls
2018-04-01  8:27               ` daggs
2018-04-01  8:45                 ` Thomas Petazzoni
2018-04-01 11:41                 ` Bernd Kuhls
2018-04-01 12:20                   ` Arnout Vandecappelle
2018-04-01 12:25                   ` daggs
2018-04-02  4:49                     ` daggs
2018-04-01  8:11           ` Thomas Petazzoni
2018-04-01  8:24             ` daggs
2018-04-01  7:30   ` Bernd Kuhls
2018-04-01  7:59     ` daggs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.