问题描述
- 使用FFmpeg一直出错,求解决
-
之前找不到文件,那些东西都处理完了以后就一直报这些错
Undefined symbols for architecture x86_64:
"_av_frame_get_best_effort_timestamp", referenced from:
-[KxMovieDecoder handleVideoFrame] in KxMovieDecoder.o
-[KxMovieDecoder handleAudioFrame] in KxMovieDecoder.o
"_av_frame_get_pkt_duration", referenced from:
-[KxMovieDecoder handleVideoFrame] in KxMovieDecoder.o
-[KxMovieDecoder handleAudioFrame] in KxMovieDecoder.o
"_swr_alloc_set_opts", referenced from:
-[KxMovieDecoder openAudioStream:] in KxMovieDecoder.o
"_swr_convert", referenced from:
-[KxMovieDecoder handleAudioFrame] in KxMovieDecoder.o
"_swr_free", referenced from:
-[KxMovieDecoder openAudioStream:] in KxMovieDecoder.o
-[KxMovieDecoder closeAudioStream] in KxMovieDecoder.o
"_swr_init", referenced from:
-[KxMovieDecoder openAudioStream:] in KxMovieDecoder.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案
用的是64位编译器吗?ffmpeg库是32位编译的,不匹配。
参考undefined reference
时间: 2024-09-21 09:08:32