1

我正在尝试为 iPhone 构建最新的稳定 PJSIP (1.10),但在make. 我已按照此处的说明进行操作,但我没有任何运气。我搜索了 SO 和 google 并没有遇到其他人有同样的错误,所以我有点卡住了。

config_site.h按照指示创建了我的。./configure-iphone给出了我在其他地方看到的输出,因此该部分似乎工作正常。make dep似乎工作正常,make clean但我得到了以下错误make(这应该是获得Xcode我可以使用的项目之前的最后一步,至少通过我的阅读)。

if test ! -d ../bin; then mkdir -p ../bin; fi
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 -o ../bin/pjlib-util-test-arm-apple-darwin9 \
         output/pjlib-util-test-arm-apple-darwin9/main.o  output/pjlib-util-test-arm-apple-darwin9/xml.o  output/pjlib-util-test-arm-apple-darwin9/encryption.o  output/pjlib-util-test-arm-apple-darwin9/stun.o  output/pjlib-util-test-arm-apple-darwin9/resolver_test.o  output/pjlib-util-test-arm-apple-darwin9/test.o  output/pjlib-util-test-arm-apple-darwin9/http_client.o ../lib/libpjlib-util-arm-apple-darwin9.a /pjproject-1.10/pjlib/lib/libpj-arm-apple-darwin9.a  -O2  -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -framework AudioToolbox -framework Foundation -luuid -lpthread  -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit    
ld: library not found for -luuid
collect2: ld returned 1 exit status
make[2]: *** [../bin/pjlib-util-test-arm-apple-darwin9] Error 1
make[1]: *** [pjlib-util-test] Error 2
make: *** [all] Error 1

我在带有 Xcode 4.1 的 OS X 10.7.1 上运行(我也安装了 iOS 5 的测试版,但据我所知,make 输出似乎根本没有引用它的文件夹)。

4

1 回答 1

0

我不确定具体是什么原因造成的,但我能够通过在安装了 Xcode 4.1 的全新 OS X Lion 安装上构建应用程序来解决此问题。

于 2011-09-27T06:21:36.757 回答