代码之家  ›  专栏  ›  技术社区  ›  Schroedinger

为iOS 4.0编译PJSIP

  •  5
  • Schroedinger  · 技术社区  · 15 年前

    我在为iOS 4.0编译PJSIP时遇到了一些问题。

    我正在使用SVN的最新主干版本,并不断收到portaudio错误。使用PiedMontReless指南时: http://www.piemontewireless.net/PJSip155_and_iPhoneSDK312 我的build.mak文件中有一个缺少分隔符的错误,这将指示一个空白/制表错误,但在我的一生中,我找不到它。

    根据pjsip邮件列表,您应该能够在开箱即用的情况下编译iOS 4.0,但我得到以下错误:

     ../src/pjmedia-audiodev/errno.c:23:26: error: portaudio.h: No such file or directory
    ../src/pjmedia-audiodev/errno.c: In function ‘pjmedia_audiodev_strerror’:
    ../src/pjmedia-audiodev/errno.c:104: warning: implicit declaration of function ‘Pa_GetErrorText’
    make[2]: *** [output/pjmedia-audiodev-arm-apple-darwin9/errno.o] Error 1
    make[1]: *** [pjmedia-audiodev] Error 2
    

    我会继续努力的,但任何帮助都会非常感谢。

    编辑:我有波特迪奥。

    2 回复  |  直到 11 年前
        1
  •  8
  •   Vee    14 年前
    ./configure-iphone
    

    新鲜的

    Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
    
    Further customizations can be put in:
      - 'user.mak'
      - 'pjlib/include/pj/config_site.h'
    
    The next step now is to run 'make dep' and 'make'.
    
    Done configuring for iPhoneOS4.2.sdk
    

    不应该。/配置iphone安装程序pjlib/include/pj/config_site.h

    AS

    #define PJ_CONFIG_IPHONE 1
    #include <pj/config_site_sample.h>
    

    谢谢你的修复@schroedinger

        2
  •  10
  •   jkatzer    14 年前

    您缺少的具体步骤是在正确的位置放置一个config-site.h文件。

    pjlib/include/pj/config_site.h
    

    它需要包含以下内容:

    #define PJ_CONFIG_IPHONE 1
    #include <pj/config_site_sample.h>
    

    因此,配置将避免不需要或不会为iPhone中的ARM芯片编译的库。

    添加后,重新开始:

    ./configure-iphone
    

    然后

    make dep && make clean && make