[FFmpeg-user] Build error with Intel based Mac

桃源老師 xanadu6291 at dream.jp
Sat Jun 1 14:42:48 EEST 2024


Hello, 

I encountered ffmpeg build error with Intel based Mac.  The error portion is the following:

libavcodec/videotoolbox.c:352:24: error: no member named 'temporal_id_nesting_flag' in 'struct HEVCSPS'; did you mean 'temporal_id_nesting'?
                  sps->temporal_id_nesting_flag << 2 |
                       ^~~~~~~~~~~~~~~~~~~~~~~~
                       temporal_id_nesting
libavcodec/videotoolbox.c:156:29: note: expanded from macro 'AV_W8'
#define AV_W8(p, v) *(p) = (v)
                            ^
libavcodec/hevc_ps.h:249:13: note: 'temporal_id_nesting' declared here
    uint8_t temporal_id_nesting;
            ^
1 error generated.
make: *** [libavcodec/videotoolbox.o] Error 1
make: *** Waiting for unfinished jobs....
rm libavfilter/metal/vf_yadif_videotoolbox.metal.air


I can't understand why this error occurs...please help me!!


I got this error while make.  configure was passed, but I paste configure option FYI.

./configure --prefix=${TARGET} --pkg-config-flags=--static \
--enable-gpl --enable-version3 --enable-nonfree \
--enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc \
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex \
--enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr \
--enable-libmodplug --enable-libopenjpeg --enable-libwebp \
--enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 \
--enable-libxvid --enable-libvpx --enable-libxavs \
--enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass \
--enable-libbluray --enable-libvidstab \
--enable-libsnappy --enable-libzmq --enable-libzvbi \
--enable-libzimg --enable-libaom --enable-libdav1d --enable-libmysofa \
--enable-librubberband --enable-libshine \
--enable-libvmaf --enable-libsvtav1 --enable-libxml2 \
--enable-libplacebo


Also, I export CFLAGS and LDFLAGS as follows:

export LDFLAGS="-L${TARGET}/lib -lc++ -Wl,-ld_classic,-rpath,/usr/local/lib"
export CFLAGS="-I${TARGET}/include -lstdc++"


More information about the ffmpeg-user mailing list