为 arm7 / iOS 4.3 构建 pjsip - 在 mips_test.o 中找不到符号

发布于 2024-12-11 05:06:35 字数 1376 浏览 2 评论 0 原文

我实际上将这个问题发布到 pjsip 邮件列表,但尚未得到任何回复。所以我想在这里试试我的运气。

我认为这是一个非常简单的问题,我正在尝试在 mac 10.6.2 上为 iPhone sdk 4.3 编译 pjsip (来自 trunk 的最新版本)

我正在遵循此说明 http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone

  1. 查看最新代码
  2. 从 svn export CFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8" 导出 LDFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8"
  3. ./configure-iphone
  4. make dep &&使清洁&& make

它有以下错误:

undefined symbols for architecture armv7: "_pjmedia_codec_g722_init",
referenced from: _g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o "_pjmedia_codec_g722_deinit",
referenced from: _g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o ld: symbol(s) not found for
architecture armv7 collect2: ld returned 1 exit status make[2]: ***
[../bin/pjmedia-test-arm-apple-darwin9] Error 1 make[1]: ***
[pjmedia-test] Error 2 make: *** [all] Error 1

有人知道如何解决这个问题吗?
可以禁用 pjmedia 测试吗?

(我还尝试使用 http://code.google.com/p/siphon/downloads/detail?name=patch-mips_test.txt&can=2&q= ,相同 问题)

I actually posted this question to pjsip mailing list, but did not get any response yet. So I thought it would try my luck here.

This is a pretty simple issue I assume, I am trying to compile pjsip (latest from trunk) for iPhone sdk 4.3 on mac 10.6.2

I am following this instruction
http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone :

  1. checked out latest code from svn
  2. export CFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8"
    export LDFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8"
  3. ./configure-iphone
  4. make dep && make clean && make

It has this following error:

undefined symbols for architecture armv7: "_pjmedia_codec_g722_init",
referenced from: _g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o "_pjmedia_codec_g722_deinit",
referenced from: _g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o ld: symbol(s) not found for
architecture armv7 collect2: ld returned 1 exit status make[2]: ***
[../bin/pjmedia-test-arm-apple-darwin9] Error 1 make[1]: ***
[pjmedia-test] Error 2 make: *** [all] Error 1

Does anyone have any idea how to go around this?
May be disable the pjmedia test?

(I also tried patching the mips_test.c using the file from http://code.google.com/p/siphon/downloads/detail?name=patch-mips_test.txt&can=2&q= , same issue)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我一向站在原地 2024-12-18 05:06:35

iPhoneOS 版本禁用编解码器 g722。
但不幸的是他们忘记了从构建中排除 g722_encode_decode()。
您可以简单地编辑 mips_test.c 并包围 g722_encode_decode() 和 create_stream_g722()

# if PJMEDIA_HAS_G722_CODEC
..
#endif

希望这会有所帮助。

codec g722 is disabled for iPhoneOS build.
But unfortunately they have forgotten to exclude g722_encode_decode() from the build.
You can simple edit mips_test.c and surround g722_encode_decode() and create_stream_g722() with

# if PJMEDIA_HAS_G722_CODEC
..
#endif

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文