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

Jonathan Alland wowfunhappy at gmail.com
Mon Aug 12 01:16:04 EEST 2019


Hello!

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.

I am using the following options:

./configure --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzmq --enable-version3 --pkg-config-flags=--static --enable-nonfree --enable-libfdk-aac --extra-ldflags=-L/opt/local/lib

The compilation fails at libavcodec/audiotoolboxenc.o. The last few lines are:

CC	libavcodec/audiotoolboxenc.o
warning: unknown warning option: -Werror=partial-availability
warning: unknown warning option: -Wempty-body
warning: unknown warning option: -Wno-unused-const-variable
warning: unknown warning option: -Wno-bool-operation
libavcodec/audiotoolboxenc.c:70:20: error: use of undeclared identifier
      'kAudioFormatMPEG4AAC_ELD'
            return kAudioFormatMPEG4AAC_ELD;
                   ^
libavcodec/audiotoolboxenc.c:154:8: warning: 'cold' attribute ignored
static av_cold int get_channel_label(int channel)
       ^
./libavutil/attributes.h:82:36: note: instantiated from:
#    define av_cold __attribute__((cold))
                                   ^
libavcodec/audiotoolboxenc.c:234:8: warning: 'cold' attribute ignored
static av_cold int ffat_init_encoder(AVCodecContext *avctx)
       ^
./libavutil/attributes.h:82:36: note: instantiated from:
#    define av_cold __attribute__((cold))
                                   ^
libavcodec/audiotoolboxenc.c:567:8: warning: 'cold' attribute ignored
static av_cold void ffat_encode_flush(AVCodecContext *avctx)
       ^
./libavutil/attributes.h:82:36: note: instantiated from:
#    define av_cold __attribute__((cold))
                                   ^
libavcodec/audiotoolboxenc.c:575:8: warning: 'cold' attribute ignored
static av_cold int ffat_close_encoder(AVCodecContext *avctx)
       ^
./libavutil/attributes.h:82:36: note: instantiated from:
#    define av_cold __attribute__((cold))
                                   ^
5 diagnostics generated.
make: *** [libavcodec/audiotoolboxenc.o] Error 1

Complete console output can be found at https://gist.github.com/Wowfunhappy/e62bcf1c108edbf557198bb95c47491c

Please let me know if there's anything I can try. If Snow Leopard is just too old to work, please let me know that too! Thank you!


More information about the ffmpeg-user mailing list