[FFmpeg-devel] [Compiled Failed] Trying to compile FFmpeg with mysofa and it failed at af_sofalizer.c:164:32

Andrey Semashev andrey.semashev at gmail.com
Tue Aug 27 22:17:16 EEST 2019


On 12/29/18 10:15 PM, James Almer wrote:
> On 12/29/2018 8:09 AM, Paul B Mahol wrote:
>> On 12/29/18, Ysy <shengyang998 at foxmail.com> wrote:
>>> I was trying to compile FFmpeg with `--enable-libmysofa`, and it failed with
>>> this message below:
>>>
>>> src/libavfilter/af_sofalizer.c:164:32: error: implicit declaration of
>>> function 'mysofa_neighborhood_init_withstepdefine' is invalid in C99
>>>        [-Werror,-Wimplicit-function-declaration]
>>>          s->sofa.neighborhood =
>>> mysofa_neighborhood_init_withstepdefine(s->sofa.hrtf,
>>>                                 ^
>>> src/libavfilter/af_sofalizer.c:164:32: warning: this function declaration is
>>> not a prototype [-Wstrict-prototypes]
>>> src/libavfilter/af_sofalizer.c:164:30: warning: incompatible integer to
>>> pointer conversion assigning to 'struct MYSOFA_NEIGHBORHOOD *' from 'int'
>>>        [-Wint-conversion]
>>>          s->sofa.neighborhood =
>>> mysofa_neighborhood_init_withstepdefine(s->sofa.hrtf,
>>>                               ^
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> 2 warnings and 1 error generated.
>>>
>>> Device:
>>> macOS Mojave (10.14.2)
>>> Apple LLVM version 10.0.0 (clang-1000.11.45.5)
>>> Target: x86_64-apple-darwin18.2.0
>>> Thread model: posix
>>>
>>> The code was committed 6 days ago with comment `stop using easy API` in
>>> master branch.
>>>
>>> I’ve noticed that this function (`mysofa_neighborhood_init_withstepdefine `)
>>> is really not yet exist on this project. Maybe it is not completed yet?
>>>
>>> Thank you for watching this.
>>
>> Update libmysofa lib.
> 
> What's the first version that works? The configure check should be
> updated to bail out if it's too old.

Is there a resolution? What is the min version of libmysofa?

I'm failing to compile ffmpeg 4.2 on Ubuntu 19.04 because of this.


More information about the ffmpeg-devel mailing list