GStreamer for ios 环境搭建心得

先下载基于Mac OSX下的安装包,地址https://gstreamer.freedesktop.org/data/pkg/ios/,我选择的是1.12.0,不选择最新版是担心有坑。

安装成功后,打开xcode,新建工程的时候可以选择gstreamer快捷项目框架创建。

但项目还是无法运行起来,缺少libiconv.tbd的framework

继续运行,还是报错,提示NSString什么的错误,然后在gst_ios_init.h中添加 #import <Foundation/Foundation.h>

好了,再运行提示错误了。

结果log输出报错并崩溃,提示:dyld: dyld_sim is not compatible with the loaded process, likely due to architecture mismatch, 网上搜索说不支持模拟器。

插上设备,运行,又提示

 ld: '/Users/kerr/Library/Developer/GStreamer/iPhone.sdk/GStreamer.framework/GStreamer(libglib-2_0_a_armv7_-libglib_2_0_la-gfileutils.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

继续修改配置,把Enable Bitcode 修改成NO。

终于能正常启动了。。。下篇待续。。

猜你喜欢

转载自blog.csdn.net/zhuwei622/article/details/79578052
今日推荐