From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v15 27/27] package/freeswitch: enable video support
Date: Sun, 17 Apr 2016 22:21:26 +0200 [thread overview]
Message-ID: <20160417222126.5dee1159@free-electrons.com> (raw)
In-Reply-To: <1460906689-29900-28-git-send-email-bernd.kuhls@t-online.de>
Hello,
On Sun, 17 Apr 2016 17:24:49 +0200, Bernd Kuhls wrote:
> -config BR2_PACKAGE_FREESWITCH
> +menuconfig BR2_PACKAGE_FREESWITCH
Why? This seems unrelated to the change.
> +if BR2_PACKAGE_FREESWITCH
> +
> +config BR2_PACKAGE_FREESWITCH_MODULE_VIDEO
> + bool "Video support"
> + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # libyuv (in-tree)
> + select BR2_PACKAGE_FFMPEG
> + select BR2_PACKAGE_FFMPEG_AVRESAMPLE
> + select BR2_PACKAGE_FFMPEG_SWSCALE
> +
> +comment "Video support needs a toolchain w/ gcc >= 4.8"
> + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
> +
> +endif
Why are you adding this option, while all other options are enabled
automatically?
What about just:
select BR2_PACKAGE_FFMPEG_AVRESAMPLE if BR2_PACKAGE_FFMPEG
select BR2_PACKAGE_FFMPEG_SWSCALE if BR2_PACKAGE_FFMPEG
And then, in the .mk file:
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8)$(BR2_PACKAGE_FFMPEG),yy)
...
endif
> +ifeq ($(BR2_PACKAGE_FREESWITCH_MODULE_VIDEO),y)
> +FREESWITCH_LICENSE += BSD-3c (libvpx, libyuv)
I didn't notice until now, but we'll have issue with comma separation
when appending things this way. You should have a look at
package/qt/qt.mk to see how it was solved.
> +FREESWITCH_LICENSE_FILES += libs/libvpx/LICENSE libs/libyuv/LICENSE
> +FREESWITCH_CONF_OPTS += --enable-libvpx --enable-libyuv
> +FREESWITCH_DEPENDENCIES += host-yasm ffmpeg
> +FREESWITCH_ENABLED_MODULES += applications/mod_av
> +FREESWITCH_ENABLED_MODULES += applications/mod_fsv
> +
> +# freeswitch uses its own copy of libvpx since 1.6.7
> +# the implementation of libvpx into the freeswitch build system is not
> +# cross-compile friendly so we compile libvpx ourselves by copying
> +# most of packages/libvpx/libvpx.mk here, added by some --disable-
> +# options from freeswitch-1.6.7/Makefile.am, line 536
> +define FREESWITCH_CROSS_COMPILE_LIBVPX
> + (cd $(@D)/libs/libvpx && \
> + $(TARGET_CONFIGURE_OPTS) \
> + $(TARGET_CONFIGURE_ARGS) \
> + LD="$(TARGET_CC)" \
> + CROSS=$(GNU_TARGET_NAME) \
> + ./configure \
> + --target=generic-gnu \
> + --enable-pic \
> + --prefix=/usr \
> + --disable-docs \
> + --disable-examples \
> + --disable-install-bins \
> + --disable-install-srcs \
> + --disable-unit-tests \
> + --extra-cflags="-fvisibility=hidden" \
> + )
> + $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) -C $(@D)/libs/libvpx
> +endef
This is really horrible. Could you instead fix the libvpx integration
to make it work? Report the problem upstream so that it get fixed? Use
the external version of libvpx?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-04-17 20:21 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-17 15:24 [Buildroot] [PATCH v15 00/27] package/freeswitch: new package Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 01/27] " Bernd Kuhls
2016-04-17 20:18 ` Thomas Petazzoni
2016-04-17 15:24 ` [Buildroot] [PATCH v15 02/27] package/freeswitch: enable optional modules Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 03/27] package/freeswitch: add optional dependency to libedit Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 04/27] package/freeswitch: enable mod_enum Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 05/27] package/freeswitch: add optional dependency to libpng Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 06/27] package/freeswitch: add optional dependency to unixodbc Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 07/27] package/freeswitch: add optional dependency to freetype Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 08/27] package/freeswitch: enable mod_yaml Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 09/27] package/freeswitch: enable mod_lua Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 10/27] package/freeswitch: enable mod_bv Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 11/27] package/freeswitch: enable mod_codec2 Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 12/27] package/freeswitch: add optional dependency to libg7221 Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 13/27] package/freeswitch: enable mod_ilbc Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 14/27] package/freeswitch: enable mod_isac Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 15/27] package/freeswitch: enable mod_opus Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 16/27] package/freeswitch: enable mod_portaudio Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 17/27] package/freeswitch: enable mod_silk Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 18/27] package/freeswitch: enable mod_sndfile Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 19/27] package/freeswitch: enable mod_alsa Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 20/27] package/freeswitch: enable mod_soundtouch Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 21/27] package/freeswitch: add optional dependency to xz Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 22/27] package/freeswitch: enable mod_memcache Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 23/27] package/freeswitch: enable mod_imagick Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 24/27] package/freeswitch: enable mod_cv Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 25/27] package/freeswitch: enable mod_shout Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 26/27] package/freeswitch: add optional dependency to openldap Bernd Kuhls
2016-04-17 15:24 ` [Buildroot] [PATCH v15 27/27] package/freeswitch: enable video support Bernd Kuhls
2016-04-17 20:21 ` Thomas Petazzoni [this message]
2016-04-17 20:18 ` [Buildroot] [PATCH v15 00/27] package/freeswitch: new package 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=20160417222126.5dee1159@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