Cross compiling pjsip for iPhone ARM

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

 



Hi Salman,

You forgot to define framework. I think you forgot to add these in configure.ac, and to run autoconf.
You must to know the solution posted on code.google.com/p/siphon works on iphone/ipod 1.1.X
but not on iphone 2.

Greetings

Samuel




> Message du 29/09/08 12:28
> De : "Salman"
> A : "pjsip list"
> Copie ? :
> Objet : [pjsip] Cross compiling pjsip for iPhone ARM
>
> Hi,
> I was trying to compile pjsip for iPhone ARM on a Mac 10.5.5, and was running into problems. Thanks to some people here, almost all those problems have been sorted out except one. Here's what I have done so far.? 
> 1) Took the instructions from?http://code.google.com/p/siphon/wiki/Compilation 
> 2) Configured the application with the following. Please note that -isysroot is set to iphone SDK directory. ?? ? ? ./aconfigure --host=arm-apple-darwin9 --disable-ssl --disable-speex-aec --disable-speex-codec --disable-l16-codec --disable-g722-codec --disable-ilbc-codec CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 CFLAGS="-arch armv6 -pipe -O0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk -I /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/include/gcc/darwin/4.0" LDFLAGS="-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS2.0.sdk/usr/lib" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
 
> 3) Then I did make dep. Worked fine.
> 
> 4) Now when I do make, everything compiles fine, but I get linker errors when it tries to link. Following is a snip.
>  ld warning: in /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox, missing required architecture arm in file ld warning: in /System/Library/Frameworks//CoreAudio.framework/CoreAudio, missing required architecture arm in file ld warning: in /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, missing required architecture arm in file 
> Undefined symbols: ??"_AudioQueuePause", referenced from:?? ? ?_pjmedia_snd_stream_stop in libpjmedia-arm-apple-darwin9.a(ipodsound.o) ?? ? ?_pjmedia_snd_stream_stop in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_AudioQueueAllocateBuffer", referenced from: ?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o)?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o) ??"_AudioQueueStart", referenced from:?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o) ?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_AudioQueueDispose", referenced from: ?? ? ?_pjmedia_snd_stream_close in libpjmedia-arm-apple-darwin9.a(ipodsound.o)?? ? ?_pjmedia_snd_stream_close in libpjmedia-arm-apple-darwin9.a(ipodsound.o) ??"_AudioQueueStop", referenced from:?? ? ?_pjmedia_snd_stream_close in libpjmedia-arm-apple-darwin9.a(ipodsound.o) ?? ? ?_pjmedia_snd_stream_close in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_AudioQueueNewOutput", referenced from: ?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_kCFRunLoopCommonModes", referenced from: ?? ? ?_kCFRunLoopCommonModes$non_lazy_ptr in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_AudioQueueSetProperty", referenced from: ?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_AudioQueueNewInput", referenced from: ?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_AudioQueueEnqueueBuffer", referenced from: ?? ? ?_playAQBufferCallback in libpjmedia-arm-apple-darwin9.a(ipodsound.o)?? ? ?_recAQBufferCallback in libpjmedia-arm-apple-darwin9.a(ipodsound.o) ?? ? ?_pjmedia_snd_stream_start in libpjmedia-arm-apple-darwin9.a(ipodsound.o)??"_AudioQueueFreeBuffer", referenced from: ?? ? ?_pjmedia_snd_stream_close in libpjmedia-arm-apple-darwin9.a(ipodsound.o)?? ? ?_pjmedia_snd_stream_close in libpjmedia-arm-apple-darwin9.a(ipodsound.o) ld: symbol(s) not foundcollect2: ld returned 1 exit status 
> ?
> I have 2 questions.
> Firstly, I am getting the ld warning?/System/Library/Frameworks//AudioToolbox.framework/AudioToolbox,:?missing required architecture arm in file.??Does this mean it is linking to the wrong frameworks? 
> And why am I getting the undefined symbols error>? Is it because of not linking to the proper framework? How do I fix this and link to the proper frameworks which are in the /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Library/Frameworks folder instead of /System/Library/Frameworks folder which contains frameworks for mac development (I think) ?.? 
> Any help will be appreciated.
>  --Regards,Salman
>   >
> [ (pas de nom de fichier) (0.2 Ko) ]

 Cr?ez votre adresse ?lectronique prenom.nom at laposte.net 
 1 Go d'espace de stockage, anti-spam et anti-virus int?gr?s.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080929/743872e1/attachment.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