[FFmpeg-user] Error in audiotoolboxenc.o when compiling on OS X 10.6.8

Jonathan Alland wowfunhappy at gmail.com
Mon Aug 12 16:08:44 EEST 2019

> I wonder what you need this binary for.

Nothing so important! I have a deep fondness for Snow Leopard, and I'm trying to see how much of the software I regularly use can be made to work. Static binaries are also just a strong preference.

> Use --disable-audiotoolbox (and possibly --disable-videotoolbox)

Thank you! I'm somewhat embarrassed I didn't figure that out myself. I might try that Macports patch later.

Fwiw, I didn't need to use --disable-videotoolbox. I did need to switch to gcc8, and disable html-docs and ffprobe (I put zero effort into getting ffprobe to work, as I never use it.)

The compilation went through, but it looks like the resulting binary still relies on several .dylib's (tested by moving to a fresh machine). I have been using MacPorts to install ffmpeg's dependencies. Do I need to go through and manually recompile all of them with --disable-shared and/or --enable-static? I will if I have to, but I'm not looking forward to it...

> On Aug 12, 2019, at 4:55 AM, Moritz Barsnick <barsnick at gmx.net> wrote:
> On Mon, Aug 12, 2019 at 00:25:14 +0200, Carl Eugen Hoyos wrote:
>> Am Mo., 12. Aug. 2019 um 00:16 Uhr schrieb Jonathan Alland <wowfunhappy at gmail.com>:
>>> I am trying to compile a build of ffmpeg on macOS X 10.6.8. My hope is to eventually get a
>>> statically linked binary which is also Snow Leopard compatible.
> [...]
>>> libavcodec/audiotoolboxenc.c:70:20: error: use of undeclared identifier
>>>      'kAudioFormatMPEG4AAC_ELD'
>>>            return kAudioFormatMPEG4AAC_ELD;
>> Use --disable-audiotoolbox (and possibly --disable-videotoolbox)
> MacPorts apparently had a patch for this:
> https://trac.macports.org/changeset/148793/
> https://trac.macports.org/browser/trunk/dports/multimedia/ffmpeg-devel/files/patch-libavcodec-audiotoolboxenc.c.diff?rev=148793
> but eventually they just disabled toolbox for OS X < 10.7:
> https://trac.macports.org/changeset/148816/
> Not sure which of the two is correct - just saying.
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list