gpt4 book ai didi

ios - PJSIP 构建问题

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:43:04 25 4
gpt4 key购买 nike

环境: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 '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.

它运行正常并创建了 .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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com