0

我按照此链接中的步骤操作: How To Build and Compile PJSIP for Xcode, Using sample code IPJSUA to test?

有几个步骤我不太确定,我很确定这就是为什么我会遇到这么多错误

我不知道在 configure_site.h 文件中的何处键入这些行:

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

所以我把它们放在一切之上。

我也真的不知道在 configure-iphone 文件中的何处键入这些行:

          DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer

IPHONESDK=iPhoneSimulator6.1.sdk

所以我把它们放在 if 语句下方和外部的顶部。

当我尝试构建 ipjsua xcode 项目时,出现以下错误:

Undefined symbols for architecture i386:
  "_app_config", referenced from:
      _keepAliveFunction in pjsua_app.o
      _on_playfile_done in pjsua_app.o
      _app_init in pjsua_app.o
      _default_config in pjsua_app.o
      _parse_args in pjsua_app.o
      _on_call_state in pjsua_app.o
      _on_incoming_call in pjsua_app.o
      ...

    "_app_config_init_video", referenced from:
      _app_init in pjsua_app.o
  "_arrange_window", referenced from:
      _on_call_video_state in pjsua_app.o
  "_cli_console_app_main", referenced from:
     _app_main in pjsua_app.o
  "_console_app_main", referenced from:
      _app_main in pjsua_app.o
  "_current_call", referenced from:
     _on_call_state in pjsua_app.o
      _on_incoming_call in pjsua_app.o
  "_destroy_cli", referenced from:
     _app_destroy in pjsua_app.o
   "_find_next_call", referenced from:
      _on_call_state in pjsua_app.o
  "_log_call_dump", referenced from:
      _on_call_state in pjsua_app.o
  "_my_atoi", referenced from:
      _parse_args in pjsua_app.o
  "_setup_cli", referenced from:
      _app_init in pjsua_app.o
  "_stdout_refresh", referenced from:
      _parse_args in pjsua_app.o
      _app_main in pjsua_app.o
       _stdout_refresh_proc in pjsua_app.o
   "_stdout_refresh_quit", referenced from:
       _app_main in pjsua_app.o
       _stdout_refresh_proc in pjsua_app.o
 ld: symbol(s) not found for architecture i386
 clang: error: linker command failed with exit code 1 (use -v to see invocation)

当我尝试将它构建到我的设备时,我得到了超过 129 个错误。

在过去的三天里,我一直在努力安装这个库。我真的很想构建自己的 SIP 堆栈,但我听说这是一项非常困难的任务。

关于如何解决这个问题的任何帮助,我将永远感激不尽!

4

0 回答 0