PJSip on iOS and -ObjC -all_load...

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

 



No, the problem occurs on both the simulator and the device.

These flags did not solve the problem.

On Feb 25, 2013, at 2:20 PM, Samuel Vinson <samuelv at laposte.net> wrote:

> Hi,
> 
> Your issue exists on simulator version only, isn't it ? pjsip with video support includes objective-C class. Unfortunately, the compiler for simulator implements a more recent version of objC signals. You have to force the legacy dispatch.
> 
> You should add the following options to CFLAGS: 
>     -fobjc-abi-version=2 -fobjc-legacy-dispatch    
> 
> I give the instructions to compile video support in this page : http://code.google.com/p/siphon/wiki/VIdeoSupport
> 
> Regards
> 
> Samuel
> 
> 
> Le 25/02/13 20:34, Jiva DeVoe a ?crit :
>> Thanks? here's how I'm compiling it right now:
>> 
>> 
>> For device:
>> 
>> ./configure-iphone && make dep && make clean && make
>> 
>> For simulator:
>> 
>> DEVPATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/" \
>> CC="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc" \
>> CFLAGS="-O2 -m32 -miphoneos-version-min=4.0" LDFLAGS="-O2 -m32" ./configure-iphone && make dep && make clean && make
>> 
>> On Feb 25, 2013, at 12:00 PM, samuelv at laposte.net wrote:
>> 
>>> Hi,
>>> 
>>> I will send the statements to compile objectiveC into C library for iOS simulator later today.
>>> 
>>> I will answer on pjsip mailing list.
>>> 
>>> Samuel
>>> 
>>> Le 25 f?vr. 2013 ? 19:01, Jiva DeVoe <jiva-lists at random-ideas.net> a ?crit :
>>> 
>>>> I've recently been working on using pjsip on iOS. I have successfully added the library to my project, built my application, and tested it. So far, everything has worked great. Thanks for the excellent tool.
>>>> 
>>>> Unfortunately, I have found that when it comes to adding additional static libraries to my project, there seems to be some kind of conflict with the pjsip library.
>>>> 
>>>> Specifically, whenever I add the flags -ObjC and -all_load to my linker flags (these allow third-party static libraries to load Objective-C categories contained within them) I then get the following error when I try to build my project:
>>>> 
>>>>   Undefined symbols for architecture i386:
>>>>   ".objc_class_name_AVCaptureDevice", referenced from:
>>>>        pointer-to-literal-objc-class-name in libpjmedia-videodev-arm-apple-darwin9.a(ios_dev.o)
>>>> 
>>>> I get a bunch of these... all for various system frameworks...
>>>> 
>>>> To be clear: 
>>>> 
>>>> I am linking with AVFoundation and all the other frameworks in the errors.
>>>> 
>>>> The ONLY thing that changes to cause this error is adding the -ObjC and -all_load flags.
>>>> 
>>>> I posted this question to the Apple LLVM forum, and received the following response from Greg Parker:
>>>> 
>>>>   "Your static archive was built incorrectly. (In this error, ios_dev.o from libpjmedia-videodev-arm-apple-darwin9.a specifically.)
>>>> 
>>>>   "The static archive was built for 32-bit OS X, which is not compatible with 32-bit iOS simulator. You should check the build settings for the static archive."
>>>> 
>>>> Unfortunately, he didn't give me any additional information about how I would fix this in the build scripts.  
>>>> 
>>>> I'm not actually 100% sure that he is correct, because the problem doesn't just occur when building for the simulator. It also occurs when building for the device.
>>>> 
>>>> Note: To reproduce the problem, you do not actually have to link with a third-party library, all you have to do is add those flags to your build settings in your iOS project.
>>>> 
>>>> Can anyone help me to resolve this problem?
>>>> 
>>>> Thanks in advance!
>>>> --
>>>> Jiva DeVoe
>>>> http://www.random-ideas.net
>>>> iZen Garden & Edibles - iPhone software for your mind and body.
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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
>> --
>> Jiva DeVoe
>> http://www.random-ideas.net
>> Edibles - Food logging software for iPhone and iPod Touch.
>> 
>> 
> 

--
Jiva DeVoe
http://www.random-ideas.net
iZen Garden - Promoting Virtual Peace and Tranquility on an iPhone near you.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130226/650e8377/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