Error in audiotoolboxenc.o when compiling on OS X 10.6.8

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in audiotoolboxenc.o when compiling on OS X 10.6.8

Jonathan Alland
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!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error in audiotoolboxenc.o when compiling on OS X 10.6.8

Carl Eugen Hoyos-2
Am Mo., 12. Aug. 2019 um 00:16 Uhr schrieb Jonathan Alland
<[hidden email]>:

> 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 wonder what you need this binary for.

> 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;

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

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error in audiotoolboxenc.o when compiling on OS X 10.6.8

Moritz Barsnick
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 <[hidden email]>:
> > 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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error in audiotoolboxenc.o when compiling on OS X 10.6.8

Jonathan Alland
> 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 <[hidden email]> 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 <[hidden email]>:
>>> 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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".