ios - PJSIP 构建问题
<p><p>环境:OS X 10.9.3、Xcode 5.1、PJSIP-2.2.1
我想构建简单的 PJSIP,shell 脚本如下:</p>
<pre><code>#!/bin/bash
SOURCE="pjproject-2.2.1"
CONFIG="pjlib/include/pj/config_site.h"
if [ ! -r $SOURCE ]; then
echo 'PJSIP 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.
</code></pre>
<p>它运行正常并创建了 .a 文件,例如 <code>pjlib/lib/libpj-arm-apple-darwin9</code>。但是当我将它们用于我的 iOS 项目时,它失败了 <code>Endianness must be declared for this processor</code>, <code>PJ_IS_LITTLE_ENDIAN is not defined!</code>, <code>PJ_IS_BIG_ENDIAN is not defined!</code> 等等。我认为 PJSIP 构建不正确。有谁知道吗?
我检查了<a href="https://stackoverflow.com/questions/20369062/compile-pjsip-for-ios7" rel="noreferrer noopener nofollow">Compile PJSIP for iOS7</a> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我将其添加到项目的预处理器宏中,然后它运行正常:<code>PJ_AUTOCONF=1</code></p></p>
<p style="font-size: 20px;">关于ios - PJSIP 构建问题,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/23866963/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/23866963/
</a>
</p>
页:
[1]