IOS 通用静态库、Makefile文件使用
来源:互联网 发布:unity3d免费版够用吗 编辑:程序博客网 时间:2024/05/21 20:21
1、在网上找到相应的C源码
2、如果带有makefile文件的
3、直接在shell里面执行
i386:
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc ./configure --host=i386-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk --extra-cflags='-arch i386' --extra-ldflags='-arch i386 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/system -arch i386 ' --disable-asm --enable-shared --enable-static --disable-asm
不同xcode和系统版本,要修改iPhoneSimulator.platform、iPhoneSimulator9.3.sdk、/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc,这几个配置
最后
make&&make install
合并静态库
lipo -create ./aall/libx264.a ./x86_64/libx264.a -output libx264.a
查看静态库
lipo -info libx264.a
Architectures in the fat file: libx264.a are: i386 armv7 armv7s x86_64 arm64
0 0
- IOS 通用静态库、Makefile文件使用
- [转]使用makefile更新静态库文件
- 【iOS】IOS 4.2 编写通用的静态库.a文件
- 【iOS】IOS 4.2 编写通用的静态库.a文件
- 生成静态库的通用makefile
- ios如何打包成一个通用的静态库文件
- IOS 4.2 编写通用的静态库.a文件
- iOS 合并.a文件,制作通用静态库
- IOS 4.2 编写通用的静态库.a文件
- iOS 合并.a文件,制作通用静态库
- iOS 合并.a文件,制作通用静态库
- iOS 合并.a文件,制作通用静态库
- iOS 合并.a文件,制作通用静态库
- iOS 合并.a文件,制作通用静态库
- iOS 合并.a文件,制作通用静态库
- iOS 合并.a文件,制作通用静态库
- iOS 合并.a文件,制作通用静态库
- iOS 静态库通用打包
- Ubuntu14.04安装配置Hadoop2.6.0(完全分布式)与 wordcount实例运行
- Python第四周:函数与递归函数
- iOS 系统图片详解
- sql语句中的 in 、not in 、exists、not exists 详细用法说明和差别----not in失效
- spring配置文件中<context:property-placeholder />的使用
- IOS 通用静态库、Makefile文件使用
- linux内核组件分析之---设备驱动模型之device-driver
- 秒杀多线程第十篇 生产者消费者问题
- 6410之AD驱动与触摸屏共存(下)
- SGU 130 Circle(卡特兰数)
- MySQL免安装版 安装,卸载,找不到指定文件
- 2016年腾讯实习后台开发工程师面试题-- N个骑士,聚会问题
- js表单校验方法(JQuery-Validate使用方法)
- 自定义view的细节(一)declare-styleable属性重用方案