iPhone linker errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Clint,

You probably forgot to add the frameworks to your project, in this case it
should be CFNetwork.framework

On Wed, Jun 1, 2011 at 11:11 PM, Clint Perry <perry.cr at gmail.com> wrote:

> Hi all,
>
> I am attempting to use pjsip in a small proof-of-concept app and I am
> having problems compiling/linking.  I compiled and ran the sample app
> without too much difficulty but I have run into problems using the pjsip
> libraries in my own project.  Any help would be greatly appreciated.
>
> Below is a sample of the problems that I am seeing.
>
> Ld
> /Users/clintperry/Library/Developer/Xcode/DerivedData/SipTest-clhxcufjyvcgjnblbpvnlsyfvcsx/Build/Products/Debug-iphonesimulator/SipTest.app/SipTest
> normal i386
>     cd /Users/clintperry/Control4/Source/Mobile/Temp/SipTest
>     setenv MACOSX_DEPLOYMENT_TARGET 10.6
>     setenv PATH
> "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
>
> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2
> -arch i386 -isysroot
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk
> -L/Users/clintperry/Library/Developer/Xcode/DerivedData/SipTest-clhxcufjyvcgjnblbpvnlsyfvcsx/Build/Products/Debug-iphonesimulator
> -L../../../../../Downloads/pjproject-1.10/pjlib/lib
> -L../../../../../Downloads/pjproject-1.10/pjlib-util/lib
> -L../../../../../Downloads/pjproject-1.10/pjnath/lib
> -L../../../../../Downloads/pjproject-1.10/pjmedia/lib
> -L../../../../../Downloads/pjproject-1.10/pjsip/lib
> -L../../../../../Downloads/pjproject-1.10/third_party/lib
> -F/Users/clintperry/Library/Developer/Xcode/DerivedData/SipTest-clhxcufjyvcgjnblbpvnlsyfvcsx/Build/Products/Debug-iphonesimulator
> -filelist
> /Users/clintperry/Library/Developer/Xcode/DerivedData/SipTest-clhxcufjyvcgjnblbpvnlsyfvcsx/Build/Intermediates/SipTest.build/Debug-iphonesimulator/SipTest.build/Objects-normal/i386/SipTest.LinkFileList
> -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework
> UIKit -framework Foundation -framework CoreGraphics -lpj-arm-apple-darwin9
> -lpjlib-util-arm-apple-darwin9 -lpjmedia-arm-apple-darwin9
> -lpjmedia-audiodev-arm-apple-darwin9 -lpjmedia-codec-arm-apple-darwin9
> -lpjsdp-arm-apple-darwin9 -lpjnath-arm-apple-darwin9
> -lpjsip-arm-apple-darwin9 -lpjsip-simple-arm-apple-darwin9
> -lpjsip-ua-arm-apple-darwin9 -lpjsua-arm-apple-darwin9
> -lg7221codec-arm-apple-darwin9 -lgsmcodec-arm-apple-darwin9
> -lilbccodec-arm-apple-darwin9 -lmilenage-arm-apple-darwin9
> -lresample-arm-apple-darwin9 -lspeex-arm-apple-darwin9
> -lsrtp-arm-apple-darwin9 -o
> /Users/clintperry/Library/Developer/Xcode/DerivedData/SipTest-clhxcufjyvcgjnblbpvnlsyfvcsx/Build/Products/Debug-iphonesimulator/SipTest.app/SipTest
>
> Undefined symbols for architecture i386:
>   "_CFHostCreateWithName", referenced from:
>       _pj_getaddrinfo in libpj-arm-apple-darwin9.a(addr_resolv_sock.o)
>   "_CFHostStartInfoResolution", referenced from:
>       _pj_getaddrinfo in libpj-arm-apple-darwin9.a(addr_resolv_sock.o)
>   "_CFHostGetAddressing", referenced from:
>       _pj_getaddrinfo in libpj-arm-apple-darwin9.a(addr_resolv_sock.o)
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>


-- 
--
V. Ogla Sungutay,
GUI Programmer
www.lyciasoft.com
skype:oglasungutay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110601/7a432913/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux