Compile PJSIP for iOS7

匿名 (未验证) 提交于 2019-12-03 03:10:03

问题:

I am trying to compile PJSIP2.1.0 for iOS on Mac 10.9.(Xcode 5.0). But I'm getting some errors when I run ./configure-iphone.

Below are the errors,

configure-iphone: DEVPATH is not specified, using /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer configure-iphone: IPHONESDK is not specified, choosing iPhoneOS7.0.sdk ls: /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin*: No such file or directory configure-iphone error: unable to find gcc for iPhoneOS7.0.sdk. If you think you have the right gcc, set the full path in CC environment variable.`  

Is anybody can help me? Thanks

But now, i do something follow Compiling pjsip current trunk under iOS 5.0 GM Fails i'm getting other errors.

Below are the errors

ailks-mbp:pjproject-2.1.0 ailk$ ./configure-iphone  configure-iphone: DEVPATH is not specified, using    /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer configure-iphone: IPHONESDK is not specified, choosing iPhoneOS7.0.sdk configure-iphone: CXX is not specified, using /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-g++-4.2 configure-iphone: calling ./aconfigure with env vars: CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 CXX = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-g++-4.2 SDKPATH = /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk CFLAGS = -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS7.0.sdk\""  -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk LDFLAGS = -O2  -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -framework AudioToolbox -framework Foundation AR = /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static -o RANLIB = echo ranlib checking build system type... i386-apple-darwin13.0.0 checking host system type... arm-apple-darwin10 checking target system type... arm-apple-darwin10 checking for arm-apple-darwin10-gcc...   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 checking whether the C compiler works... no aconfigure: error: in `/Users/ailk/Documents/开源库/pjproject-2.1.0': aconfigure: error: C compiler cannot create executables See `config.log' for more details 

and below is the config.log

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.  It was created by pjproject aconfigure 2.x, which was generated by GNU Autoconf 2.69.  Invocation command line was  $ ./aconfigure --host=arm-apple-darwin10 --disable-sdl  ## --------- ## ## Platform. ## ## --------- ##  hostname = ailks-mbp.ailk.com uname -m = x86_64 uname -r = 13.0.0 uname -s = Darwin uname -v = Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-   2422.1.72~6/RELEASE_X86_64  /usr/bin/uname -p = i386 /bin/uname -X     = unknown  /bin/arch              = unknown /usr/bin/arch -k       = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo      = Mach kernel version:  Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu- 2422.1.72~6/RELEASE_X86_64 Kernel configured for up to 4 processors. 2 processors are physically available.   4 processors are logically available.  Processor type: i486 (Intel 80486)   Processors active: 0 1 2 3  Primary memory available: 4.00 gigabytes Default processor set: 161 tasks, 771 threads, 4 processors Load average: 2.13, Mach factor: 2.37 /bin/machine           = unknown /usr/bin/oslevel       = un
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!