如何将FFMpeg构建为iOS框架 [英] How to Build FFMpeg as iOS Framework

查看:352
本文介绍了如何将FFMpeg构建为iOS框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在FFMpeg上构建我自己的Player,



我成功将FFMpeg构建为静态库(* .a),



但需要复制另一个头文件才能使用,



我希望它可以像框架一样使用,



但即使我将头文件添加到框架中(设置为公共)



我的演示应用程序在FFMpeg.framework中找不到.h文件,



是否有任何建议或教程可以帮助我将其构建为真正的框架?



谢谢

解决方案

是的,因为有适当的程序在项目中设置FFMPEG。



请按照以下链接中的步骤进行操作。





注意: - 必须在项目中添加以下库。





并且不要忘记在构建设置选项中设置 HEADER SEARCH PATH





尝试编译。



您将在下面的链接中找到FFMPEG的示例,



1) ffmpegc-demo



2) kxmovie (最好使用ffmpeg)



你还需要在这个演示中添加ffmpeg。否则你会得到错误的头文件丢失或库丢失等等。


I'm trying to build my own Player base on FFMpeg,

I succes to build FFMpeg as static library(*.a),

but its need to copy another header file to use,

I hope it can used like framework,

but even I add header file into framework (set as public)

My Demo App can not find .h file in FFMpeg.framework,

is there any suggestion or tutorial can help me to build it as real framework?

Thanks

解决方案

Yes because there is proper procedure to setup FFMPEG in project.

Please follow procedure in below link.

Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s

1) First Download FFmpeg From github.

2) Then just copy folder in your project directory.

3) Then Add it into your project with Add file option in xcode.

Note:- Below library must be added in your Project.

and don't forget to set HEADER SEARCH PATH in Build Setting option.

Try to compile.

You will find example for FFMPEG in below link,

1) ffmpegc-demo

2) kxmovie (Best to use ffmpeg)

still you need to add ffmpeg in this demo also. else you will get error for headerfile missing or library missing or etc.

这篇关于如何将FFMpeg构建为iOS框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆