mediastreamer: fix build with libX11 and sdl without x11 support
PATCH 1/1 mediastreamer: fix build with libX11 and sdl without x11 support
Fixes http://autobuild.buildroot.net/results/a8f2db4a40c0f53c0d25b2632fe87c2ce136f770
Mediastreamer assumes SDL has X11 support if SDL and libX11 are found, which is not necessarily true in BR.
--- package/mediastreamer/mediastreamer.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/mediastreamer/mediastreamer.mk +3 -2
@@ -48,9 +48,10 @@ else MEDIASTREAMER_CONF_OPT += --disable-sdl endif -ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) +# mediastreamer assumes SDL has X11 support if --enable-x11 (and X11 support +# is only used for SDL output) +ifeq ($(BR2_PACKAGE_SDL_X11),y) MEDIASTREAMER_CONF_OPT += --enable-x11 -MEDIASTREAMER_DEPENDENCIES += xlib_libX11 else MEDIASTREAMER_CONF_OPT += --disable-x11 endif
Signature · 1 line
1.7.10
PATCH 1/1 mediastreamer: fix build with libX11 and sdl without x11 support
Le Mon, 23 Jul 2012 11:49:19 +0200,
Peter Korsgaard <[email protected]> a ?crit :
package/mediastreamer/mediastreamer.mk else · line 57
Quoted 9 lines
package/mediastreamer/mediastreamer.mk +3
-2-ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) +# mediastreamer assumes SDL has X11 support if --enable-x11 (and X11 support +# is only used for SDL output) +ifeq ($(BR2_PACKAGE_SDL_X11),y) MEDIASTREAMER_CONF_OPT += --enable-x11 -MEDIASTREAMER_DEPENDENCIES += xlib_libX11 else MEDIASTREAMER_CONF_OPT += --disable-x11 endif
So this means that it is not possible to use mediastreamer on X11 without SDL?
I understand that when SDL support is enabled, it wants SDL to support X11. But when X11 is enabled, does it requires SDL ?
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 mediastreamer: fix build with libX11 and sdl without x11 support
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Le Mon, 23 Jul 2012 11:49:19 +0200, Thomas> Peter Korsgaard <[email protected]> a ?crit :
Quoted 9 lines
Quoted 9 lines
package/mediastreamer/mediastreamer.mk +3
-1-ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) +# mediastreamer assumes SDL has X11 support if --enable-x11 (and X11 support +# is only used for SDL output) +ifeq ($(BR2_PACKAGE_SDL_X11),y)
MEDIASTREAMER_CONF_OPT+= --enable-x11
-MEDIASTREAMER_DEPENDENCIES +=xlib_libX11
elseMEDIASTREAMER_CONF_OPT+= --disable-x11
endif
Thomas> So this means that it is not possible to use mediastreamer on X11 Thomas> without SDL?
Indeed. The Xlib support is only used for the SDL videoouput:
grep -rls HAVE_X11_XLIB_H mediastreamer-2.8.2
mediastreamer-2.8.2/configure
mediastreamer-2.8.2/mediastreamer-config.h.inmediastreamer-2.8.2/src/videoout.cmediastreamer-2.8.2/mediastreamer-config.hmediastreamer-2.8.2/tests/test_x11window.c
Where videoout.c is:
grep -B1 -A1 videoout mediastreamer-2.8.2/src/Makefile.am if BUILD_SDL libmediastreamer_la_SOURCES+=videoout.c
endif
Thomas> I understand that when SDL support is enabled, it wants SDL to support Thomas> X11. But when X11 is enabled, does it requires SDL ?
It does (and ffmpeg). The option should probably have been called --enable-sdl-x11 instead.
Signature · 1 line
Bye, Peter Korsgaard
Thomas Petazzoni
AppliedPATCH 1/1 mediastreamer: fix build with libX11 and sdl without x11 support
In reply to Peter KorsgaardLe Mon, 23 Jul 2012 11:49:19 +0200,
Peter Korsgaard <[email protected]> a ?crit :
Quoted 6 lines
Fixes http://autobuild.buildroot.net/results/a8f2db4a40c0f53c0d25b2632fe87c2ce136f770
Mediastreamer assumes SDL has X11 support if SDL and libX11 are found, which is not necessarily true in BR.
Signed-off-by Peter Korsgaard <[email protected]>
Applied, thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com