Ошибка при сборке FFmpeg.
macOS High Sierra 10.13.6 FFmpeg 4.2
Параметры конфигурации:
configure --enable-gpl --enable-version3 --enable-nonfree --enable-gray --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-gmp --enable-ladspa --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcelt --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libjack --enable-libklvanc --enable-libkvazaar --enable-liblensfun --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencv --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-librtmp --enable-libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtensorflow --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxavs2 --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-libxcb-shape --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-decklink --enable-libmysofa --enable-openal --enable-opencl --enable-opengl --enable-openssl --enable-pocketsphinx --enable-vapoursynth --pkg-config-flags=--static
Вывод:
Undefined symbols for architecture x86_64:
"_cmd_ln_free_r", referenced from:
_asr_uninit in libavfilter.a(af_asr.o)
"_cmd_ln_parse_r", referenced from:
_asr_init in libavfilter.a(af_asr.o)
"_ps_args", referenced from:
_asr_init in libavfilter.a(af_asr.o)
"_ps_default_search_args", referenced from:
_asr_init in libavfilter.a(af_asr.o)
"_ps_end_utt", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_free", referenced from:
_asr_uninit in libavfilter.a(af_asr.o)
"_ps_get_hyp", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_get_in_speech", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_init", referenced from:
_asr_init in libavfilter.a(af_asr.o)
(maybe you meant: _ff_ps_init_fixed, _ff_ps_init )
"_ps_process_raw", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_start_utt", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
_config_input in libavfilter.a(af_asr.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: [ffmpeg_g] Error 1 (ignored)
Полный вывод доступен здесь: https://github.com/sclsj/ffmpeg-error
Редактировать: после добавления -lpocketsphinx к аргументу в make -n я уменьшил количество ошибок:
Undefined symbols for architecture x86_64:
"_cmd_ln_free_r", referenced from:
_asr_uninit in libavfilter.a(af_asr.o)
"_cmd_ln_parse_r", referenced from:
_asr_init in libavfilter.a(af_asr.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)