Failed to build android jni with pjsip 2.4

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

 



Hi.

We use the following way - build static so libraries and store them in 
maven repository as tar.gz archive. Then we add them to the jni project 
and build it. In version 2.2 it worked well and we had no issues with 
it. But after migrating to sip 2.4 I get the following error on the 
second step (trying to compile jni with sip static libraries).

[INFO] 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/Android.mk:15: 
'armeabi-v7a'
[INFO] 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/Android.mk:16: 
'/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni'
[INFO] 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/Android.mk:17: 
'pjsip-static-for-android-2.4.1'
[INFO] 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/Android.mk:18: 
'pjsip-static-for-android-2.4.1/headers'
[INFO] 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/Android.mk:19: 
'pjsip-static-for-android-2.4.1/armeabi-v7a-libs'
[INFO] [armeabi] Compile++ thumb: pjsipjni <= ObjectHelper.cpp
[INFO] [armeabi] Compile++ thumb: pjsipjni <= PjsipFacade.cpp
[INFO] In file included from 
pjsip-static-for-android-2.4.1/headers/pjmedia/config.h:27:0,
[INFO]                  from 
pjsip-static-for-android-2.4.1/headers/pjmedia/types.h:28,
[INFO]                  from 
pjsip-static-for-android-2.4.1/headers/pjmedia/alaw_ulaw.h:23,
[INFO]                  from 
pjsip-static-for-android-2.4.1/headers/pjmedia.h:27,
[INFO]                  from 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/src//PjsipFacade.h:9,
[INFO]                  from 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/src//PjsipFacade.cpp:8:
[INFO] pjsip-static-for-android-2.4.1/headers/pj/config.h:248:6: error: 
#error Endianness must be declared for this processor
[INFO]  #    error Endianness must be declared for this processor
[INFO]       ^
[INFO] In file included from 
pjsip-static-for-android-2.4.1/headers/pjmedia/config.h:27:0,
[INFO]                  from 
pjsip-static-for-android-2.4.1/headers/pjmedia/types.h:28,
[INFO]                  from 
pjsip-static-for-android-2.4.1/headers/pjmedia/alaw_ulaw.h:23,
[INFO]                  from 
pjsip-static-for-android-2.4.1/headers/pjmedia.h:27,
[INFO]                  from 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/src//PjsipFacade.h:9,
[INFO]                  from 
/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/jni/src//PjsipFacade.cpp:8:
[INFO] pjsip-static-for-android-2.4.1/headers/pj/config.h:1172:4: error: 
#error "PJ_IS_LITTLE_ENDIAN is not defined!"
[INFO]  #  error "PJ_IS_LITTLE_ENDIAN is not defined!"
[INFO]     ^
[INFO] pjsip-static-for-android-2.4.1/headers/pj/config.h:1176:4: error: 
#error "PJ_IS_BIG_ENDIAN is not defined!"
[INFO]  #  error "PJ_IS_BIG_ENDIAN is not defined!"
[INFO]     ^
[INFO] make: *** 
[/Users/jenkins/builds/workspace/android-pjsip-jni-2.4/obj/local/armeabi/objs-debug/pjsipjni/src//PjsipFacade.o] 
Error 1
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE

Short search in google tells me that little and big endians are ios 
related things and have nothing to do with android, so I do not 
understand why it asks me to configure them. I tried to add endians 
declarations to the generated config_site.h file but then I still get 
the very first error that "Endianness must be declared for this processor".

I didn't see this issue when compiled my application with sip 2.2

Any suggestions?

Regards,
Artemy Kilin



[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