简体   繁体   English

适用于iOS的ffmpeg(armv6和armv7)

[英]ffmpeg for iOS (armv6 and armv7)

I've tried a number of solutions on here to build ffmpeg for iOS. 我在这里尝试了许多解决方案来为iOS构建ffmpeg。 Most notably, the last that I tried was here: ffmpeg won't ./configure in iOS5.1 最值得注意的是,我最后尝试过的是: ffmpeg在iOS5.1中不会./configure

When I try the proposed solution and then run "lipo -info" on one of the output libraries I get: 当我尝试提出的解决方案,然后在其中一个输出库上运行“ lipo -info”时,我得到:

input file armv7/libavcodec.a is not a fat file Non-fat file: armv7/libavcodec.a is architecture: i386 输入文件armv7 / libavcodec.a不是胖文件非胖文件:armv7 / libavcodec.a是体系结构:i386

Is this the expected result of running "lipo -info" on a file built for amrv7? 这是在针对amrv7构建的文件上运行“ lipo -info”的预期结果吗?

Did you possibly build for the simulator i386 rather than armv7 . 您是否可能为模拟器i386而不是armv7构建的。

Also if your using Xcode 4.4 it's very important that you include armv7s or remove the armv7s arch from your build settings. 另外,如果您使用的是Xcode 4.4,则必须包括armv7s或从构建设置中删除armv7s拱门,这一点非常重要。

Most likely you did not install gas-preprocessor.pl . 您很可能没有安装gas-preprocessor.pl。 See this answer how to install: https://stackoverflow.com/a/5307801/1597017 看到这个答案如何安装: https : //stackoverflow.com/a/5307801/1597017

In my project, I used rake for configure and build ffmpeg for iOS with Xcode 4.5.1 (sdk 6.0) A link: https://github.com/kolyvan/kxmovie/blob/master/Rakefile 在我的项目中,我使用rake通过Xcode 4.5.1(sdk 6.0)为iOS配置和构建ffmpeg链接: https : //github.com/kolyvan/kxmovie/blob/master/Rakefile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM