环境:OS X 10.9.3、Xcode 5.1、PJSIP-2.2.1 我想构建简单的 PJSIP,shell 脚本如下:
#!/bin/bash
SOURCE="pjproject-2.2.1"
CONFIG="pjlib/include/pj/config_site.h"
if [ ! -r $SOURCE ]; then
echo 'JSIP source not found. Trying to untar...'
tar -xjf $SOURCE.tar.bz2
fi
cd $SOURCE
touch $CONFIG
echo > $CONFIG
echo "#define PJ_CONFIG_IPHONE 1" >> $CONFIG
echo "#include <pj/config_site_sample.h>" >> $CONFIG
./configure-iphone
#make dep && make clean && make
echo Done.
它运行正常并创建了 .a 文件,例如 pjlib/lib/libpj-arm-apple-darwin9
。但是当我将它们用于我的 iOS 项目时,它失败了 Endianness must be declared for this processor
, PJ_IS_LITTLE_ENDIAN is not defined!
, PJ_IS_BIG_ENDIAN is not defined!
等等。我认为 PJSIP 构建不正确。有谁知道吗?
我检查了Compile PJSIP for iOS7
我将其添加到项目的预处理器宏中,然后它运行正常:PJ_AUTOCONF=1
关于ios - PJSIP 构建问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23866963/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |