【问题标题】:failed to run iPhone simulator about PJSip无法运行有关 PJSip 的 iPhone 模拟器
【发布时间】:2014-05-08 06:32:28
【问题描述】:

我尝试在 iPhone 模拟器上构建一个 PJSip 项目。我的工作环境是Xcode 5.1.1,ios SDK是7.1。当我按照本指南进行操作时:http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone, 我下载了最新的代码并为iPhone模拟器配置了构建系统:

export DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
ARCH="-arch i386" CFLAGS="-O2 -m32 -mios-simulator-version-min=5.0" LDFLAGS="-O2 -m32 -mios-simulator-version-min=5.0" ./configure-iphone
make dep && make clean && make

全部完成,编译过程中没有出现错误。但是当我在pjproject/pjsip-apps/src/pjsua/ios中使用Xcode打开ipjsua.xcodeproj时,运行后出现错误,说如下:

ld: library not found for -lmilenage-arm-apple-darwin9
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我对此感到非常困惑。您的任何建议将不胜感激。

【问题讨论】:

标签: ios xcode pjsip


【解决方案1】:

我使用以下步骤解决了这个问题:

  1. 我尝试使用以下命令运行 i386 架构的构建:

    export DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
    ARCH="-arch i386" CFLAGS="-O2 -m32 -mios-simulator-version-min=5.0"
    DFLAGS="-O2 -m32 -mios-simulator-version-min=5.0" ./configure-iphone
    make dep && make clean && make
    
  2. 在 Xcode 中为目标的搜索路径设置正确的标头路径:

    "$(SRCROOT)/../../../../pjlib/include"
    "$(SRCROOT)/../../../../pjlib-util/include"
    "$(SRCROOT)/../../../../pjmedia/include"
    "$(SRCROOT)/../../../../pjnath/include"
    "$(SRCROOT)/../../../../pjsip/include"
    

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-14
    • 1970-01-01
    • 2014-12-16
    • 2015-02-24
    • 1970-01-01
    • 2019-02-14
    相关资源
    最近更新 更多