Commit graph

342 commits

Author SHA1 Message Date
Tim-Philipp Müller
1e1ff4ece5 autotools: use -fno-strict-aliasing where supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
2018-02-05 08:47:18 +01:00
Ting-Wei Lan
27d8c8c456 configure: Replace -Bsymbolic-functions with -Bsymbolic
The documentation of libav says -Bsymbolic may be needed when building a
shared library which links statically to libav.

Fixes linking error on FreeBSD:

gst-libav/gst-libs/ext/.libs/libavcodec.a(simple_idct10.o):
 relocation R_X86_64_PC32 against `ff_pw_1023' can not be used when making a
 shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

https://bugzilla.gnome.org/show_bug.cgi?id=791783
2018-01-22 12:02:30 +00:00
U. Artie Eoff
7a951369c7 libav: use LIBAV_CPPFLAGS for -I include paths
Autotools automatically appends user CPPFLAGS after target
CPPFLAGS.  Also, it puts all CPPFLAGS before CFLAGS in final
generated gcc compile command.  The internal ffmpeg include
paths need to come before any other external include paths
to ensure we don't accidentally pickup external ffmpeg
headers first (i.e. from user CPPFLAGS include paths).  Thus,
move the internal LIBAV include paths to LIBAV_CPPFLAGS so
that they come before any user defined CPPFLAGS.

This allows ffmpeg and gst-ffmpeg to coexist on users system.

https://bugzilla.gnome.org/show_bug.cgi?id=789379
2018-01-13 12:18:54 +00:00
Nicolas Dufresne
7b0a5ad309 plugin: Explicitly link to BZ2, LZMA and LZ
While all this information is in the .la files, libtool seems to get
confused with ordering in presence of static system libraries. This could
cause missing symbol error at link time. Adding these depenencies explicitly
workaround the issue.
2017-05-20 15:27:52 +02:00
Jan Schmidt
ac9fc8031e Pass $CC as AS, unless $AS is provided. Add gas-preprocessor
Add gas-preprocessor.pl as a git submodule, and put it in the
path so that it is available if libav wants it.

Switch back to providing $CC as $AS by default, but
respect an external $AS setting so that it can be
overridden in cerbero

https://bugzilla.gnome.org/show_bug.cgi?id=694416
2017-05-20 20:08:09 +10:00
Nicolas Dufresne
a65562fe9c Remove plugin specific static build option
Static and dynamic plugins now have the same interface. The standard
--enable-static/--enable-shared toggle are sufficient.
2017-05-16 14:43:11 -04:00
Nicolas Dufresne
1038ae2327 Generate .la for internal libav libraries
This should help libtool in getting the internal linking right.
Effectively, libtool can sometime get the link order wrong when
presented with a mix of .la and -l arguments. These .la file are
also required by the android build system and were previously
created by cerbero.
2017-05-12 12:34:09 -04:00
Nicolas Dufresne
0b48f0e3fd Use a portable method to link against internal FFMPEG
In the last iteration, we kept the original method to link the shared
plugin and edited the .a and .la files so satisfy what cerbero needed.
Unfortunately, that required adding .a file into the archive which is
not allowed with iOS ar command for universal builds.

This patch uses standard method to link a static library. One of the
benefit is that it removes some libtool warning about portability.
For the static case, we implement an install hook that installs
FFMPEG internal .a files in the plugin directory (so it does not get
confused with a possible system FFMPEG. This makes the static plugin
usable without depending on cerbero recipe.
2017-05-11 10:08:14 -04:00
Sebastian Dröge
57c7a1fae2 Back to development 2017-05-04 18:59:14 +03:00
Sebastian Dröge
011dc043c8 Release 1.12.0 2017-05-04 15:39:47 +03:00
Sebastian Dröge
4b1c9ef6ac Release 1.11.91 2017-04-27 17:35:41 +03:00
Jan Schmidt
02fc07cfa9 Revert "configure: Set the assembler used for libav to $CC"
This reverts commit 1a265f029a.

It also makes it impossible to pass something other than $CC
as the assembler. People should adjust the passed AS variable
if they need something different.
2017-04-21 20:54:20 +10:00
Edward Hervey
b32076dc34 configure: Remove usage of memalign_hack in ffmpeg
It was removed in the last release
2017-04-14 14:55:52 +02:00
Sebastian Dröge
aff7ab6fdf Release 1.11.90 2017-04-07 16:34:46 +03:00
Sebastian Dröge
eef810318a Back to development 2017-02-24 15:37:46 +02:00
Sebastian Dröge
d3cb08dded Release 1.11.2 2017-02-24 15:07:59 +02:00
Sebastian Dröge
7944485aee configure: Require building against at least ffmpeg 3.0
See also https://bugzilla.gnome.org/show_bug.cgi?id=778283
2017-02-08 16:10:52 +02:00
Sebastian Dröge
fca6cd0460 Back to development 2017-01-12 16:32:56 +02:00
Sebastian Dröge
c39e08dfb5 Release 1.11.1 2017-01-12 16:11:31 +02:00
Tim-Philipp Müller
beb11a99ba Really remove generated .spec file 2016-12-16 17:33:44 +00:00
Michael Olbrich
83ff353ff9 configure: fix target_os when cross-compiling for arm
For arm 'host_os' is '*-gnueabi' or '*-gnueabihf' so sed needs to cut of
more. Otherwise configuring ffmpeg will fail with "Unknown OS 'linuxeabi'."
or something like that.

https://bugzilla.gnome.org/show_bug.cgi?id=774215
2016-11-10 17:30:16 +02:00
Sebastian Dröge
d634d9fac3 Back to development 2016-11-01 18:53:15 +02:00
Sebastian Dröge
50ffd5a805 Release 1.10.0 2016-11-01 18:10:45 +02:00
Sebastian Dröge
e64c140d1c configure: Fix shell syntax error
Assignments must not have spaces around the '='
2016-10-24 10:30:05 +03:00
Sebastian Dröge
4a9a7d61e5 Release 1.9.90 2016-09-30 13:03:42 +03:00
Sebastian Dröge
036da8b33c configure: Depend on gstreamer 1.9.2.1 2016-09-14 11:31:07 +02:00
Thibault Saunier
f6c31d1cb6 build: Do not link plugin against lzma and bz2 if using system install
And bump version to 1.9.2
2016-09-05 12:44:37 -03:00
Sebastian Dröge
b6c5ea582a Back to development 2016-09-01 12:31:21 +03:00
Sebastian Dröge
fca6c1bdb0 Release 1.9.2 2016-09-01 12:31:10 +03:00
Josep Torra
410b0e3842 build: silence error about pthread for 'make check' in osx
Fixes "clang: error: argument unused during compilation: '-pthread'"
2016-08-26 21:47:04 +02:00
Sebastian Dröge
490e98913d configure: Explicitly disable CrystalHD decoder
Otherwise it will pick it up when the system has the relevant headers,
and then linking produces an unusable plugin later as we don't ensure
that the plugin also links against the crystalhd library.

https://bugzilla.gnome.org/show_bug.cgi?id=769809
2016-08-16 21:11:35 +03:00
Sebastian Dröge
c098043a40 Back to development 2016-07-06 13:51:12 +03:00
Sebastian Dröge
351f65cc35 Release 1.9.1 2016-07-06 13:26:10 +03:00
Sebastian Dröge
ee5e2bcd6b libav: Disable various other hardware related codecs 2016-07-01 09:29:03 +02:00
Edward Hervey
840de21f05 configure: Disable VAAPI support
We have native plugins (gst-vaapi) for that
2016-07-01 09:25:14 +02:00
Edward Hervey
c8a6a30d43 configure: Disable {audio|video}toolbox support (osx/ios)
We already have native plugins for those
2016-07-01 09:16:41 +02:00
Sebastian Dröge
ae3a80eec7 avdeinterlace: Register all filters and only disable all except for yadif during compilation
Otherwise avdeinterlace won't find any filters, and we only use yadif in
there.

https://bugzilla.gnome.org/show_bug.cgi?id=765319
2016-04-20 15:27:45 +03:00
Sebastian Dröge
c441eddd56 Back to development 2016-03-24 13:33:33 +02:00
Sebastian Dröge
2d362cc920 Release 1.8.0 2016-03-24 12:55:15 +02:00
Egor Zaharov
6ca5f88dde configure: Restore CPPFLAGS after the last check
The next checks can also set CPPFLAGS.

https://bugzilla.gnome.org/show_bug.cgi?id=763940
2016-03-21 10:32:14 +02:00
Sebastian Dröge
7a8828f68a Release 1.7.91 2016-03-15 12:23:48 +02:00
Sebastian Dröge
6655aabebc Release 1.7.90 2016-03-01 18:51:22 +02:00
Sebastian Dröge
154a0430fb Back to development 2016-02-19 12:38:37 +02:00
Sebastian Dröge
6c4878b6ab Release 1.7.2 2016-02-19 12:00:24 +02:00
Sebastian Dröge
9dd7bcc486 libav: Ensure to link with -lavfilter 2016-01-21 11:41:45 +02:00
Andreas Cadhalpun
ddec3a2c78 avdeinterlace: Port non-deprecated AVFilter API
https://bugzilla.gnome.org/show_bug.cgi?id=757498
2016-01-16 11:11:44 +01:00
Sebastian Dröge
dbb6beba92 Back to development 2015-12-24 15:29:11 +01:00
Sebastian Dröge
0993ec8fa5 Release 1.7.1 2015-12-24 14:49:39 +01:00
Sebastian Dröge
d2397bec17 configure: Use -Bsymbolic-functions if available
While this is more useful for libraries, some of our plugins with multiple
files and some internal API can also benefit from this.
2015-12-21 12:34:11 +01:00
Reynaldo H. Verdejo Pinochet
d9dec6893a Require libav provided by FFmpeg at build-time
Libav-incompatible changes were introduced to support
FFmpeg and we can no longer properly support Libav.

FFmpeg micro versions for libav* start at 100 (this was
done to differentiate from Libav builds). We use this
to bail at configure time if the system libav* libraries
are not provided by FFmpeg.

https://bugzilla.gnome.org/show_bug.cgi?id=758183
2015-12-03 11:47:52 -08:00