From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] mplayer: needs zlib
Date: Tue, 13 Oct 2015 22:57:08 +0200 [thread overview]
Message-ID: <20151013225708.3aa5e0aa@free-electrons.com> (raw)
In-Reply-To: <1444730313-34190-1-git-send-email-Vincent.Riera@imgtec.com>
Dear Vicente Olivert Riera,
I'm adding Bernd in Cc, since he has done numerous contributions to the
mplayer package. Also adding Gustavo, who did some mplayer packaging IIRC.
On Tue, 13 Oct 2015 10:58:33 +0100, Vicente Olivert Riera wrote:
> Otherwise it will fail to compile with an error message like this one:
>
> libavcodec/pngdec.c:35:18: fatal error: zlib.h: No such file or
> directory
> #include <zlib.h>
> ^
> compilation terminated.
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> package/mplayer/Config.in | 1 +
> package/mplayer/mplayer.mk | 2 +-
> 2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/package/mplayer/Config.in b/package/mplayer/Config.in
> index 7a8b03f..80ad7f1 100644
> --- a/package/mplayer/Config.in
> +++ b/package/mplayer/Config.in
> @@ -6,6 +6,7 @@ config BR2_PACKAGE_MPLAYER_ARCH_SUPPORTS
> || BR2_microblaze || BR2_nios2)
> # Broken support for <ARMv5
> depends on !BR2_ARM_CPU_ARMV4
> + select BR2_PACKAGE_ZLIB
>
> config BR2_PACKAGE_MPLAYER
> bool "mplayer"
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index d896b35..0f5ced5 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -7,7 +7,7 @@
> MPLAYER_VERSION = 1.2
> MPLAYER_SOURCE = MPlayer-$(MPLAYER_VERSION).tar.xz
> MPLAYER_SITE = http://www.mplayerhq.hu/MPlayer/releases
> -MPLAYER_DEPENDENCIES = host-pkgconf
> +MPLAYER_DEPENDENCIES = host-pkgconf zlib
> MPLAYER_LICENSE = GPLv2
> MPLAYER_LICENSE_FILES = LICENSE Copyright
> MPLAYER_CFLAGS = $(TARGET_CFLAGS)
While this solution is simple, I am not sure if this is the right one.
It is in fact perfectly possible to build mplayer without zlib, by
doing:
+MPLAYER_CONF_OPTS += --disable-decoder=apng --disable-encoder=apng --disable-decoder=tdsc
So in fact, zlib is only needed for two decoders/encoders in the ffmpeg
code. However, it is not really clear to me how to handle this
properly: there is one configure script at the top-level directory, and
then another one in the ffmpeg/ directory. And it is really the ffmpeg
encoders/decoders that have this zlib requirement (and probably
others?).
So, simple solution is to make zlib mandatory (which is reasonable:
zlib is small, and probably already part of most systems). However, I
wonder if there are not some other dependencies for certain
encoders/decoders.
Bernd, Gustavo, do you have some suggestions ?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-10-13 20:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 9:58 [Buildroot] [PATCH] mplayer: needs zlib Vicente Olivert Riera
2015-10-13 20:57 ` Thomas Petazzoni [this message]
2015-10-14 13:56 ` Gustavo Zacarias
2015-10-14 14:07 ` Vicente Olivert Riera
2015-10-14 14:09 ` Gustavo Zacarias
2015-10-14 14:16 ` Vicente Olivert Riera
2015-10-13 20:59 ` Yann E. MORIN
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=20151013225708.3aa5e0aa@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--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