[FFmpeg-trac] #2784(build system:new): MacOS: building minimal, audio-only version fails with linker error
FFmpeg
trac at avcodec.org
Sun Jul 14 20:56:45 CEST 2013
#2784: MacOS: building minimal, audio-only version fails with linker error
-------------------------------------+-------------------------------------
Reporter: milgner | Owner:
Type: defect | Status: new
Priority: normal | Component: build
Version: git-master | system
Keywords: osx | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by jamal):
> {{{av_find_input_format}}} is defined in libavformat/format.c which is
compiled unconditionally so your problem is difficult to understand.
In this build, libavfilter/avcodec.o and libavfilter/lavfutils.o are
compiled because of these lines in libavfilter's Makefile:
{{{
OBJS-$(CONFIG_AVCODEC) += avcodec.o
OBJS-$(CONFIG_AVFORMAT) += lavfutils.o
}}}
But when linking, neither avcoded or avformat are included in the FFLIBS
variable because they are only added when certain filters are built, and
all filters were disabled here.
Something like
{{{
FFLIBS-$(CONFIG_AVCODEC) += avcodec
FFLIBS-$(CONFIG_AVFORMAT) += avformat
}}}
fixes this, and i think a patch doing this was submitted some time ago but
was never committed for some reason.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2784#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list