Help to resolve issue in building PJSIP Android library

MM
Monica Memane
Mon, Aug 1, 2016 10:18 AM

Hello PJSIP team,

We are trying to build the PJSIP Android library on Windows7 using
Cygwin for one of our Android Application.
We are facing the following issues during compilation:

  1. Compilation termination issues for step-
    $ make dep
  2. "Undefined reference to pj_ files" for -
    $ make dep && make clean && make

Please find the attached log files.

We also tried to build the PJSIP Android library on Mac OS El Capitan

  1. Successfully built PJSIP Android library for TARGET_ABI-armeabi .
    However we faced "Unsatisfied Link" issue when tried to run the sample
    application pjsua on Android device.
    We assume that the possible cause might be conflict of device architecture.
  2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't
    build successfully for this architecture.
    Hence the pjsua application also could not be compiled.

It would be really helpful if we could get some guidance/help to move
forward in development.Please let me know.

Thanks & Regards,

Monica M

Hello PJSIP team, We are trying to build the PJSIP Android library on Windows7 using Cygwin for one of our Android Application. We are facing the following issues during compilation: 1. Compilation termination issues for step- $ make dep 2. "Undefined reference to pj_ files" for - $ make dep && make clean && make Please find the attached log files. We also tried to build the PJSIP Android library on Mac OS El Capitan 1. Successfully built PJSIP Android library for TARGET_ABI-armeabi . However we faced "Unsatisfied Link" issue when tried to run the sample application pjsua on Android device. We assume that the possible cause might be conflict of device architecture. 2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't build successfully for this architecture. Hence the pjsua application also could not be compiled. It would be really helpful if we could get some guidance/help to move forward in development.Please let me know. Thanks & Regards, Monica M
NN
Nahum Nir
Mon, Aug 1, 2016 12:29 PM

It will be faster to install a VM with linux and build....

On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane monica.memane@scispl.com
wrote:

Hello PJSIP team,

We are trying to build the PJSIP Android library on Windows7 using Cygwin
for one of our Android Application.
We are facing the following issues during compilation:

  1. Compilation termination issues for step-
    $ make dep
  2. "Undefined reference to pj_ files" for -
    $ make dep && make clean && make

Please find the attached log files.

We also tried to build the PJSIP Android library on Mac OS El Capitan

  1. Successfully built PJSIP Android library for TARGET_ABI-armeabi .
    However we faced "Unsatisfied Link" issue when tried to run the sample
    application pjsua on Android device.
    We assume that the possible cause might be conflict of device architecture.
  2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't
    build successfully for this architecture.
    Hence the pjsua application also could not be compiled.

It would be really helpful if we could get some guidance/help to move
forward in development.Please let me know.

Thanks & Regards,

Monica M


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

It will be faster to install a VM with linux and build.... On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane <monica.memane@scispl.com> wrote: > Hello PJSIP team, > > We are trying to build the PJSIP Android library on Windows7 using Cygwin > for one of our Android Application. > We are facing the following issues during compilation: > 1. Compilation termination issues for step- > $ make dep > 2. "Undefined reference to pj_ files" for - > $ make dep && make clean && make > > Please find the attached log files. > > > We also tried to build the PJSIP Android library on Mac OS El Capitan > 1. Successfully built PJSIP Android library for TARGET_ABI-armeabi . > However we faced "Unsatisfied Link" issue when tried to run the sample > application pjsua on Android device. > We assume that the possible cause might be conflict of device architecture. > 2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't > build successfully for this architecture. > Hence the pjsua application also could not be compiled. > > > It would be really helpful if we could get some guidance/help to move > forward in development.Please let me know. > > > Thanks & Regards, > > Monica M > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
MM
Monica Memane
Thu, Aug 4, 2016 9:14 AM

Hi,

      We were successful in building the library on Mac platform.

We are referring the CSimple app to establish a call.We are creating and
registering a local SIP user.
However we are getting the following error while initializing psua.create()-

/java.lang.UnsatisfiedLinkError: Couldn't load pjsua2 from loader
dalvik.system.PathClassLoader[DexPathList[[zip file
"/system/framework/android.test.runner.jar", zip file "/data//
///app/com.csipsimple-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.csipsimple-1,
/vendor/lib, /system/lib]]]: findLibrary returned null/

We suspect that we must be missing some step in initialization of psua.

On 8/1/2016 5:59 PM, Nahum Nir wrote:

It will be faster to install a VM with linux and build....

On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane
<monica.memane@scispl.com mailto:monica.memane@scispl.com> wrote:

 Hello PJSIP team,

 We are trying to build the PJSIP Android library on Windows7 using
 Cygwin for one of our Android Application.
 We are facing the following issues during compilation:
 1. Compilation termination issues for step-
     $ make dep
 2. "Undefined reference to pj_ files" for -
     $ make dep && make clean && make

 Please find the attached log files.


 We also tried to build the PJSIP Android library on Mac OS El Capitan
 1. Successfully built PJSIP Android library for TARGET_ABI-armeabi .
  However we faced "Unsatisfied Link" issue when tried to run the
 sample application pjsua on Android device.
 We assume that the possible cause might be conflict of device
 architecture.
 2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library
 didn't build successfully for this architecture.
 Hence the pjsua application also could not be compiled.


 It would be really helpful if we could get some guidance/help to
 move forward in development.Please let me know.


 Thanks & Regards,

 Monica M


 _______________________________________________
 Visit our blog: http://blog.pjsip.org

 pjsip mailing list
 pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
 http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, We were successful in building the library on Mac platform. We are referring the CSimple app to establish a call.We are creating and registering a local SIP user. However we are getting the following error while initializing psua.create()- /java.lang.UnsatisfiedLinkError: Couldn't load pjsua2 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data// ///app/com.csipsimple-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.csipsimple-1, /vendor/lib, /system/lib]]]: findLibrary returned null/ We suspect that we must be missing some step in initialization of psua. On 8/1/2016 5:59 PM, Nahum Nir wrote: > It will be faster to install a VM with linux and build.... > > On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane > <monica.memane@scispl.com <mailto:monica.memane@scispl.com>> wrote: > > Hello PJSIP team, > > We are trying to build the PJSIP Android library on Windows7 using > Cygwin for one of our Android Application. > We are facing the following issues during compilation: > 1. Compilation termination issues for step- > $ make dep > 2. "Undefined reference to pj_ files" for - > $ make dep && make clean && make > > Please find the attached log files. > > > We also tried to build the PJSIP Android library on Mac OS El Capitan > 1. Successfully built PJSIP Android library for TARGET_ABI-armeabi . > However we faced "Unsatisfied Link" issue when tried to run the > sample application pjsua on Android device. > We assume that the possible cause might be conflict of device > architecture. > 2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library > didn't build successfully for this architecture. > Hence the pjsua application also could not be compiled. > > > It would be really helpful if we could get some guidance/help to > move forward in development.Please let me know. > > > Thanks & Regards, > > Monica M > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
NN
Nahum Nir
Thu, Aug 4, 2016 9:46 AM

Seems like an Android link problem. Either some lib wasn't build or the
Android path not includes all PJSIP libs.

On Thu, Aug 4, 2016 at 12:14 PM, Monica Memane monica.memane@scispl.com
wrote:

Hi,

      We were successful in building the library on Mac platform.

We are referring the CSimple app to establish a call.We are creating and
registering a local SIP user.
However we are getting the following error while initializing
psua.create()-

java.lang.UnsatisfiedLinkError: Couldn't load pjsua2 from loader
dalvik.system.PathClassLoader[DexPathList[[zip file
"/system/framework/android.test.runner.jar", zip file "/data

/app/com.csipsimple-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.csipsimple-1,
/vendor/lib, /system/lib]]]: findLibrary returned null

We suspect that we must be missing some step in initialization of psua.

On 8/1/2016 5:59 PM, Nahum Nir wrote:

It will be faster to install a VM with linux and build....

On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane monica.memane@scispl.com
wrote:

Hello PJSIP team,

We are trying to build the PJSIP Android library on Windows7 using Cygwin
for one of our Android Application.
We are facing the following issues during compilation:

  1. Compilation termination issues for step-
    $ make dep
  2. "Undefined reference to pj_ files" for -
    $ make dep && make clean && make

Please find the attached log files.

We also tried to build the PJSIP Android library on Mac OS El Capitan

  1. Successfully built PJSIP Android library for TARGET_ABI-armeabi .
    However we faced "Unsatisfied Link" issue when tried to run the sample
    application pjsua on Android device.
    We assume that the possible cause might be conflict of device
    architecture.
  2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't
    build successfully for this architecture.
    Hence the pjsua application also could not be compiled.

It would be really helpful if we could get some guidance/help to move
forward in development.Please let me know.

Thanks & Regards,

Monica M


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Seems like an Android link problem. Either some lib wasn't build or the Android path not includes all PJSIP libs. On Thu, Aug 4, 2016 at 12:14 PM, Monica Memane <monica.memane@scispl.com> wrote: > Hi, > > We were successful in building the library on Mac platform. > > We are referring the CSimple app to establish a call.We are creating and > registering a local SIP user. > However we are getting the following error while initializing > psua.create()- > > *java.lang.UnsatisfiedLinkError: Couldn't load pjsua2 from loader > dalvik.system.PathClassLoader[DexPathList[[zip file > "/system/framework/android.test.runner.jar", zip file "/data* > */app/com.csipsimple-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.csipsimple-1, > /vendor/lib, /system/lib]]]: findLibrary returned null* > > We suspect that we must be missing some step in initialization of psua. > > > > On 8/1/2016 5:59 PM, Nahum Nir wrote: > > It will be faster to install a VM with linux and build.... > > On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane <monica.memane@scispl.com> > wrote: > >> Hello PJSIP team, >> >> We are trying to build the PJSIP Android library on Windows7 using Cygwin >> for one of our Android Application. >> We are facing the following issues during compilation: >> 1. Compilation termination issues for step- >> $ make dep >> 2. "Undefined reference to pj_ files" for - >> $ make dep && make clean && make >> >> Please find the attached log files. >> >> >> We also tried to build the PJSIP Android library on Mac OS El Capitan >> 1. Successfully built PJSIP Android library for TARGET_ABI-armeabi . >> However we faced "Unsatisfied Link" issue when tried to run the sample >> application pjsua on Android device. >> We assume that the possible cause might be conflict of device >> architecture. >> 2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't >> build successfully for this architecture. >> Hence the pjsua application also could not be compiled. >> >> >> It would be really helpful if we could get some guidance/help to move >> forward in development.Please let me know. >> >> >> Thanks & Regards, >> >> Monica M >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
NN
Nahum Nir
Thu, Aug 4, 2016 9:53 AM

And another thing,did  you built CSipSimple, or PJSIP?

On Thu, Aug 4, 2016 at 12:46 PM, Nahum Nir hello.shalom.hi@gmail.com
wrote:

Seems like an Android link problem. Either some lib wasn't build or the
Android path not includes all PJSIP libs.

On Thu, Aug 4, 2016 at 12:14 PM, Monica Memane monica.memane@scispl.com
wrote:

Hi,

      We were successful in building the library on Mac platform.

We are referring the CSimple app to establish a call.We are creating and
registering a local SIP user.
However we are getting the following error while initializing
psua.create()-

java.lang.UnsatisfiedLinkError: Couldn't load pjsua2 from loader
dalvik.system.PathClassLoader[DexPathList[[zip file
"/system/framework/android.test.runner.jar", zip file "/data

/app/com.csipsimple-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.csipsimple-1,
/vendor/lib, /system/lib]]]: findLibrary returned null

We suspect that we must be missing some step in initialization of psua.

On 8/1/2016 5:59 PM, Nahum Nir wrote:

It will be faster to install a VM with linux and build....

On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane monica.memane@scispl.com
wrote:

Hello PJSIP team,

We are trying to build the PJSIP Android library on Windows7 using
Cygwin for one of our Android Application.
We are facing the following issues during compilation:

  1. Compilation termination issues for step-
    $ make dep
  2. "Undefined reference to pj_ files" for -
    $ make dep && make clean && make

Please find the attached log files.

We also tried to build the PJSIP Android library on Mac OS El Capitan

  1. Successfully built PJSIP Android library for TARGET_ABI-armeabi .
    However we faced "Unsatisfied Link" issue when tried to run the sample
    application pjsua on Android device.
    We assume that the possible cause might be conflict of device
    architecture.
  2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't
    build successfully for this architecture.
    Hence the pjsua application also could not be compiled.

It would be really helpful if we could get some guidance/help to move
forward in development.Please let me know.

Thanks & Regards,

Monica M


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

And another thing,did you built CSipSimple, or PJSIP? On Thu, Aug 4, 2016 at 12:46 PM, Nahum Nir <hello.shalom.hi@gmail.com> wrote: > Seems like an Android link problem. Either some lib wasn't build or the > Android path not includes all PJSIP libs. > > On Thu, Aug 4, 2016 at 12:14 PM, Monica Memane <monica.memane@scispl.com> > wrote: > >> Hi, >> >> We were successful in building the library on Mac platform. >> >> We are referring the CSimple app to establish a call.We are creating and >> registering a local SIP user. >> However we are getting the following error while initializing >> psua.create()- >> >> *java.lang.UnsatisfiedLinkError: Couldn't load pjsua2 from loader >> dalvik.system.PathClassLoader[DexPathList[[zip file >> "/system/framework/android.test.runner.jar", zip file "/data* >> */app/com.csipsimple-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.csipsimple-1, >> /vendor/lib, /system/lib]]]: findLibrary returned null* >> >> We suspect that we must be missing some step in initialization of psua. >> >> >> >> On 8/1/2016 5:59 PM, Nahum Nir wrote: >> >> It will be faster to install a VM with linux and build.... >> >> On Mon, Aug 1, 2016 at 1:18 PM, Monica Memane <monica.memane@scispl.com> >> wrote: >> >>> Hello PJSIP team, >>> >>> We are trying to build the PJSIP Android library on Windows7 using >>> Cygwin for one of our Android Application. >>> We are facing the following issues during compilation: >>> 1. Compilation termination issues for step- >>> $ make dep >>> 2. "Undefined reference to pj_ files" for - >>> $ make dep && make clean && make >>> >>> Please find the attached log files. >>> >>> >>> We also tried to build the PJSIP Android library on Mac OS El Capitan >>> 1. Successfully built PJSIP Android library for TARGET_ABI-armeabi . >>> However we faced "Unsatisfied Link" issue when tried to run the sample >>> application pjsua on Android device. >>> We assume that the possible cause might be conflict of device >>> architecture. >>> 2. We tried to use TARGET_ABI-armeabi-v7a but the PJSIP library didn't >>> build successfully for this architecture. >>> Hence the pjsua application also could not be compiled. >>> >>> >>> It would be really helpful if we could get some guidance/help to move >>> forward in development.Please let me know. >>> >>> >>> Thanks & Regards, >>> >>> Monica M >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >>> >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >