1. 程式人生 > >ffmpeg:libavfilter/vf_elbg.c:169: error: undefined reference to 'avpriv_init_elbg'

ffmpeg:libavfilter/vf_elbg.c:169: error: undefined reference to 'avpriv_init_elbg'

ffmpeg編譯過程中遇到的一個報錯,具體資訊如下:

-e [info] [*] link ffmpeg
--------------------
libavfilter/vf_elbg.c:169: error: undefined reference to 'avpriv_init_elbg'
libavfilter/vf_elbg.c:172: error: undefined reference to 'avpriv_do_elbg'
libavfilter/af_atempo.c:631: error: undefined reference to 'av_rdft_calc'
libavfilter/af_atempo.c:932: error: undefined reference to 'av_rdft_calc'
libavfilter/af_atempo.c:841: error: undefined reference to 'av_rdft_calc'
libavfilter/af_atempo.c:873: error: undefined reference to 'av_rdft_calc'
libavfilter/af_atempo.c:229: error: undefined reference to 'av_rdft_end'
libavfilter/af_atempo.c:232: error: undefined reference to 'av_rdft_end'
libavfilter/af_atempo.c:286: error: undefined reference to 'av_rdft_end'
libavfilter/af_atempo.c:289: error: undefined reference to 'av_rdft_end'
libavfilter/af_atempo.c:292: error: undefined reference to 'av_rdft_init'
libavfilter/af_atempo.c:298: error: undefined reference to 'av_rdft_init'
libavfilter/vf_fftfilt.c:99: error: undefined reference to 'av_rdft_init'
libavfilter/vf_fftfilt.c:118: error: undefined reference to 'av_rdft_init'
collect2: error: ld returned 1 exit status

解決:刪除ffmpeg所有相關的輸出目錄,重新編譯報錯消失。原因可能是我使用其他的ffmpeg版本進行編譯時,生成的中間檔案對原有的專案有影響。