为 iOS 4.0 编译 pjsip
我在为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您缺少的具体步骤是在正确的位置放置一个 config_site.h 文件。
它需要包含以下内容:
因此配置将避免 iPhone 中的 Arm 芯片不需要或不会编译的库。
添加后重新开始:
然后
The specific step you are missing is to have a config_site.h file in the proper location.
It needs to contain the following:
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:
and then
来自 SVN 的新鲜人
不应该 ./configure-iphone setup pjlib/include/pj/config_site.h
作为
感谢修复@Schroedinger
Fresh from SVN
Shouldn't ./configure-iphone setup pjlib/include/pj/config_site.h
As
Thanks for the fix @Schroedinger