为 iOS 4.0 编译 pjsip

发布于 2024-09-10 02:57:38 字数 822 浏览 4 评论 0原文

我在为 iOS 4.0 编译 pjsip 时遇到问题。

我正在使用 SVN 的最新主干版本,并且不断收到 portaudio 错误。使用piedmontwireless指南时: 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

我将继续解决此问题,但任何帮助将不胜感激。

编辑:我确实有 portaudio.h

I've been having issues with compiling pjsip for iOS 4.0.

I am using the latest trunk version from SVN and keep getting a portaudio error. When using the piedmontwireless guide: http://www.piemontewireless.net/PJSip155_and_iPhoneSDK312 I get a missing separator error in my build.mak file, which would indicate a whitespace/tabbing error, but for the life of me I cannot find it.

According to the pjsip mailing lists, you should be able to compile out of the box for iOS 4.0, but I get this error:

 ../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

I'll keep punching through this but any help would be really appreciated.

EDIT: I do have portaudio.h

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

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

发布评论

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

评论(2

尤怨 2024-09-17 02:57:38

您缺少的具体步骤是在正确的位置放置一个 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

The specific step you are missing is to have a config_site.h file in the proper location.

pjlib/include/pj/config_site.h

It needs to contain the following:

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

So the configuration will avoid libraries that are not needed or won't compile for the arm chip in the iPhone.

After this addition start over with:

./configure-iphone

and then

make dep && make clean && make
指尖微凉心微凉 2024-09-17 02:57:38
./configure-iphone

来自 SVN 的新鲜人

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

不应该 ./configure-iphone setup pjlib/include/pj/config_site.h

作为

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

感谢修复@Schroedinger

./configure-iphone

Fresh from SVN

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

Shouldn't ./configure-iphone setup pjlib/include/pj/config_site.h

As

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

Thanks for the fix @Schroedinger

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