且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何构建FFMPEG并将其链接到iOS?

更新时间:2023-02-14 19:40:24

我虽然写了这个问题的答案,即使它已经老了,因为没有人接受回答。

I though to write an answer for this question, even it is old, because there is none accepted answer.

根据问题中给出的解释,我认为他能够准确地编译FFmpeg的来源。如果有人害怕这样做,那么已经编译好的版本可以从这里

According to the given explanation in the question, I assume he was able to compile the source of FFmpeg accurately. If anyone afraid of doing this, there is already compiled version that you can download from here.

无论如何,我认为错误原因是因为 PROJECT 标题搜索路径 / strong>的构建设置

Anyway, I believe the error cause because of not giving Header Search Paths in your PROJECT's Build Settings.

您可以做的是,添加您的Xcode项目路径以查找Header Search Paths键并设置它是递归的。

What you can do is, add your Xcode project path as to the Header Search Paths key and set it recursive.

我相信你必须将下面提到的所有三个库链接起来而不仅仅是前两个。

And I believe you have to linked all three libraries mentioned below not just the first two.


  • libz.dylib

  • libbz2.dylib

  • libiconv.dylib