Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@sunsite.dk>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] mediastreamer: fix build with libX11 and sdl without x11 support
Date: Mon, 23 Jul 2012 12:01:25 +0200	[thread overview]
Message-ID: <87k3xupzii.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <20120723115637.36b5b8cc@skate> (Thomas Petazzoni's message of "Mon, 23 Jul 2012 11:56:37 +0200")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Le Mon, 23 Jul 2012 11:49:19 +0200,
 Thomas> Peter Korsgaard <jacmet@sunsite.dk> a ?crit :

 >> -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

 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.in
mediastreamer-2.8.2/src/videoout.c
mediastreamer-2.8.2/mediastreamer-config.h
mediastreamer-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.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2012-07-23 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-23  9:49 [Buildroot] [PATCH] mediastreamer: fix build with libX11 and sdl without x11 support Peter Korsgaard
2012-07-23  9:56 ` Thomas Petazzoni
2012-07-23 10:01   ` Peter Korsgaard [this message]
2012-07-24  7:28 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3xupzii.fsf@macbook.be.48ers.dk \
    --to=jacmet@sunsite.dk \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox