linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Linphone on iPad2


From: Jehan Monnier
Subject: Re: [Linphone-developers] Linphone on iPad2
Date: Thu, 21 Jun 2012 14:27:15 +0200

In any files.

Cheers


Le 21 juin 2012 à 12:37, Joshua Newar a écrit :

Hi Jehan,

Just a quick question, where (in which file) did you make this change?

On Mar 5, 2012, at 15:35 , Jehan Monnier wrote:

Hi,

It looks like SILK directly invokes ___aeabi_idiv from ASM code. As idiv is not available on clang, it prevents SILK compiled with llvmgcc42 to be linked with clang.
As a workaround, I added the following code to Linphone.

#if __clang__ && TARGET_OS_IPHONE
extern int __divsi3(int a, int b);
int __aeabi_idiv(int a, int b) {
return __divsi3(a,b);
}
#endif


Cheers
Jehan

Le 3 janv. 2012 à 17:51, Jehan Monnier a écrit :

Switch to LLvm-gcc4.2 instead of LLVM 3.0

Cheers


Le 3 janv. 2012 à 16:31, Joshua Newar a écrit :

Hi,

When building with the latest git Linphone-iPhone sources everything works ok running in the Simulator.


But when building for iPad, I get lots of warnings (that ARM functions aren't 4-byte aligned) like:
ld: warning: ARM function not 4-byte aligned: _SKP_Silk_sum_sqr_shift from /Users/jjn/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libSKP_SILK_SDK.a(SKP_Silk_sum_sqr_shift_arm.o)
ld: warning: ARM function not 4-byte aligned: _SKP_Silk_resampler_down2 from /Users/jjn/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libSKP_SILK_SDK.a(SKP_Silk_resampler_down2_arm.o)
ld: warning: ARM function not 4-byte aligned: _SKP_Silk_resampler_private_up2_HQ from /Users/jjn/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libSKP_SILK_SDK.a(SKP_Silk_resampler_private_up2_HQ_arm.o)
ld: warning: ARM function not 4-byte aligned: _resampler_up2_hq_0 from /Users/jjn/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libSKP_SILK_SDK.a(SKP_Silk_resampler_private_up2_HQ_arm.o)
ld: warning: ARM function not 4-byte aligned: _resampler_up2_hq_1 from /Users/jjn/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libSKP_SILK_SDK.a(SKP_Silk_resampler_private_up2_HQ_arm.o)
ld: warning: ARM function not 4-byte aligned: _resampler_up2_hq_notch_1 from /Users/jjn/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libSKP_SILK_SDK.a(SKP_Silk_resampler_private_up2_HQ_arm.o)
etc,etc,etc...

I also get the following error:
Undefined symbols for architecture armv7:
  "___aeabi_idiv", referenced from:
      _SKP_Silk_schur64 in libSKP_SILK_SDK.a(SKP_Silk_schur64_arm.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Then the build fails.
Any suggestions on how to solve these issues?

Haven't tried building for iPhone4 yet.

Gr. Joshua
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]