编译适用于所有体系结构的PJSIP 2.5库 [英] Compile PJSIP 2.5 Library for all architectures
问题描述
要为iPhone设备编译PJSIP库,我正在使用此代码
To compile PJSIP library for iPhone device, I am using this code
make distclean && make clean
ARCH='-arch arm64' ./configure-iphone --enable-opus-codec
make dep
make
此代码允许我仅针对单一体系结构安装我的应用. 要为所有架构(armv7,armv7s,arm64,i386,x86_64)编译pjsip,我可以使用哪个命令或工具
This code allows me to install my app for single architecture only. To compile pjsip for all the architectures (armv7, armv7s, arm64, i386, x86_64), Which command or tool I can use
推荐答案
针对所有设备进行编译的步骤.
Steps to compile for all devices.
- 分别为所有设备编译
- 与lipo合并
例如
-create /libsrtp-arm64-apple-darwin_ios.a /libsrtp-i386-apple-darwin_ios.a -output output_file_name
然后将output_file_name.a
用作所有设备和模拟器的通用库
then use output_file_name.a
as a universal library for all device and simulator
检查支持的体系结构:output_file_name.a
to check supported architecture : output_file_name.a
lipo -info name_of_static_lib
output :
/libsrtp-universal-apple-darwin_ios.a are: armv7 armv7s i386 x86_64 arm64
output :
/libsrtp-universal-apple-darwin_ios.a are: armv7 armv7s i386 x86_64 arm64
谢谢
这篇关于编译适用于所有体系结构的PJSIP 2.5库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!