[英]FFmpeg libavcodec.a Xcode linker issues - Undefined symbols for architecture arm64
我使用這個腳本為iOS構建FFmpeg: https : //github.com/kewlbear/FFmpeg-iOS-build-script
我為所有架構構建,然后我再次為arm64構建(作為我想要的拱門),我甚至使用其他構建腳本來構建適用於iOS的FFmpeg。 但是,我一直遇到同樣的問題:
Undefined symbols for architecture arm64:
"_VTDecompressionSessionCreate", referenced from:
_av_videotoolbox_default_init2 in libavcodec.a(videotoolbox.o)
"_VTDecompressionSessionDecodeFrame", referenced from:
_videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
"_VTDecompressionSessionInvalidate", referenced from:
_av_videotoolbox_default_free in libavcodec.a(videotoolbox.o)
"_VTDecompressionSessionWaitForAsynchronousFrames", referenced from:
_videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
我試過了
請注意,所有鏈接器錯誤都來自同一個靜態庫(libavcodec.a)。 這讓我相信我錯過了鏈接器專門針對這些符號所需的其他庫。 我添加了FFmpeg構建中提到的所有庫 - 請參見下圖:
任何幫助表示贊賞。 謝謝!
成功構建並消除顯示的鏈接器錯誤所需的框架是VideoToolbox.framework
我通過在構建階段VideoToolbox.framework中的鏈接庫中添加VideoToolbox.framework解決了這個問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.