[pjsip] ISSUES While Running PJSUA Binary on ANDROID Device

Alexandar Gotev alex.gotev at mobimesh.it
Fri Apr 29 03:45:39 EDT 2016


Hi, 
I haven't had any of the issues you pointed out on Android 4.4 with PJSIP 2.4.5 compiled with openh264 and libyuv support. 
By the logs you posted I assume you are either running on armv5 or arm-v7a. 
I've made a complete automated build environment for PJSIP on Android and open sourced it. 
If you want to try to build the libraries yourself by using it, you can find it here: https://github.com/gotev/pjsip-android-builder 
I'm curious to see if you will still get the same error messages. 

Alex Gotev 
MobiMESH - VoiSmart Development Team 
Via Benigno Crespi, 57 
20159 Milano 
web: http://www.mobimesh.it http://www.voismart.it 


Da: "Vikas Sharma" <vikas.sharma at vvdntech.in> 
A: "pjsip" <pjsip at lists.pjsip.org> 
Inviato: Venerdì, 29 aprile 2016 9:16:43 
Oggetto: Re: [pjsip] ISSUES While Running PJSUA Binary on ANDROID Device 

Hi, 

Can we have some workaround details on the above issues. 

With Warm Regards, 
Vikas Sharma 
VVDN Technologies Pvt Ltd 
Cel l : 9971507491 | Skype : vsvikas2013 

On Thu, Apr 28, 2016 at 11:12 PM, Vikas Sharma < vikas.sharma at vvdntech.in > wrote: 



Just a little correction in the above query: 

We were actually using Lollipop instead of Marshmallow android version. 

With Warm Regards, 
Vikas Sharma 
VVDN Technologies Pvt Ltd 
Cel l : 9971507491 | Skype : vsvikas2013 
On Thu, Apr 28, 2016 at 10:59 PM, Vikas Sharma < vikas.sharma at vvdntech.in > wrote: 

BQ_BEGIN

Hi 

We want to run a PJSIP application on an Android device.We have successfully compiled the PJSIP on an ubuntu 14.04 system for android version.We are following the below link to build the PJSIP with openh264 and libyuv support for android version. 

https://trac.pjsip.org/repos/wiki/Getting-Started/Android 

We are using below Android sdk and ndk versions: 
Android sdk: android-sdk_r24.4.1-linux.tgz 
Android ndk: android-ndk-r11c-linux-x86_64.zip 

We are facing following issues when we run the compiled PJSUA binary on android KITKAT/Marshmallow versions: 

1)For APP_PLATFORM as Android-23 and Marshmallow as android version: 
For this we are using android-23 as a TARGET while compiling openh264 and as an APP_PLATFORM while configuring PJSIP.But when we run the PJSUA binary on adb shell of the connected device(Marshmallow version),we get the below error. 

"error: only position independent executables (PIE) are supported" [We tried to solve this error by modifying the CFLAGS value but no luck . We were not able to configure pjsip with -fPIC in CFLAGS ] 

2)For APP_PLATFORM as Android-16 and KITKAT as android version: 
For this we are using android-16 as a TARGET while compiling openh264 and as an APP_PLATFORM while configuring PJSIP.But when we run the pjsua binary on adb shell of the connected device(KITKAT version),we are getting segmentation fault. 

Below are the logcat traces. 

V/XTWiFiOS( 1001): filter out passive location report 
V/WLAN_PSA( 262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028] 
V/WLAN_PSA( 262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028] 
E/LocSvc_libulp( 1001): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1460 
E/LocSvc_libulp( 1001): I/int ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5 
E/LocSvc_libulp( 1001): I/===> int ulp_brain_process_system_update(UlpSystemEvent) line 2345 
V/WLAN_PSA( 262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028] 
F/libc (30123): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30123 (pjsua-arm-unkno) 
I/DEBUG ( 246): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
I/DEBUG ( 246): AM write failure (32 / Broken pipe) 
I/DEBUG ( 246): Build fingerprint: 'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys' 
I/DEBUG ( 246): Revision: '0' 
I/DEBUG ( 246): pid: 30123, tid: 30123, name: pjsua-arm-unkno >>> ./pjsua-arm-unknown-linux-androideabi <<< 
I/DEBUG ( 246): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 
--------- beginning of /dev/log/system 
W/NativeCrashListener( 1001): Couldn't find ProcessRecord for pid 30123 

Can somebody help us to solve the above issues or tell us the correct way to run pjsua binary on an android device? 



With Warm Regards, 
Vikas Sharma 
VVDN Technologies Pvt Ltd 
Cel l : 9971507491 | Skype : vsvikas2013 





BQ_END



_______________________________________________ 
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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160429/b1b538be/attachment-0002.html>


More information about the pjsip mailing list