audacity-FFmpeg.o: In function `import_ffmpeg_decode_frame(_streamContext*,
bool)':
/home/gale/audacity/src/FFmpeg.cpp:364: undefined reference to `av_frame_alloc'
/home/gale/audacity/src/FFmpeg.cpp:414: undefined reference to `av_frame_free'
export/audacity-ExportFFmpeg.o: In function `encode_audio':
/home/gale/audacity/src/export/ExportFFmpeg.cpp:520: undefined reference to
`av_frame_alloc'
/home/gale/audacity/src/export/ExportFFmpeg.cpp:592: undefined reference to
`av_frame_free'
export/audacity-ExportFFmpegDialogs.o: In function
`ExportFFmpegOptions::FetchCodecList()':
/home/gale/audacity/src/export/ExportFFmpegDialogs.cpp:1281: undefined
reference to `av_codec_is_encoder'
I failed to reproduce the build failure. My guess is that the header files used
mismatch with the avcodec library that should be linked against. What FFmpeg
libraries do you have installed and where? Can you run these commands to shed
some light on it?
The relevant part of the build log is:
audacity-FFmpeg.o: In function `import_ ffmpeg_ decode_ frame(_ streamContext* , audacity/ src/FFmpeg. cpp:364: undefined reference to `av_frame_alloc' audacity/ src/FFmpeg. cpp:414: undefined reference to `av_frame_free' audacity- ExportFFmpeg. o: In function `encode_audio': audacity/ src/export/ ExportFFmpeg. cpp:520: undefined reference to audacity/ src/export/ ExportFFmpeg. cpp:592: undefined reference to audacity- ExportFFmpegDia logs.o: In function tions:: FetchCodecList( )': audacity/ src/export/ ExportFFmpegDia logs.cpp: 1281: undefined is_encoder'
bool)':
/home/gale/
/home/gale/
export/
/home/gale/
`av_frame_alloc'
/home/gale/
`av_frame_free'
export/
`ExportFFmpegOp
/home/gale/
reference to `av_codec_
I failed to reproduce the build failure. My guess is that the header files used
mismatch with the avcodec library that should be linked against. What FFmpeg
libraries do you have installed and where? Can you run these commands to shed
some light on it?
find /usr/ -name avcodec.h
find /usr/ /lib -name 'libavcodec*.so*'
grep -H av_codec_is_encoder $(find /usr/ -name avcodec.h)