Re: Unable to configure build environment to generate PJSIP lib for ABI=MIPS using Android NDK

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

 



Just to update all that Issue got resolved with following command,

NDK_TOOLCHAIN_VERSION=4.9 TARGET_ABI=mips ./configure-android --use-ndk-cflags

Thanks,

Mehul Hirpara


From: Mehul Hirpara
Sent: Friday, March 31, 2017 11:31:34 AM
To: pjsip@xxxxxxxxxxxxxxx
Subject: Unable to configure build environment to generate PJSIP lib for ABI=MIPS using Android NDK
 

Hi All,


I am trying to use PJSIP lib for our Android application running on MIPS platform. As per the guidelines specified in https://trac.pjsip.org/repos/wiki/Getting-Started/Android


I tried following steps

$ cd /home/mehul/project/pjsip

$ export ANDROID_NDK_ROOT=/home/mehul/Android/Sdk/ndk-bundle

$ TARGET_ABI=mips ./configure-android --use-ndk-cflags


In result ...


configure-android: APP_PLATFORM not specified, using android-24
configure-android error: compiler not found, please check environment settings (TARGET_ABI, etc)

Debugged this and found configure-android is unable to locate mips tool-chain folder and later I explicitly provided path to NDK_CC and NDK_CX, which helped me little more but again there is a new error:


checking build system type... x86_64-unknown-linux-gnu
checking host system type... mipsel-unknown-linux-android
checking target system type... mipsel-unknown-linux-android
checking for mipsel-linux-android-gcc... /home/mehul/Android/Sdk/ndk-bundle/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-gcc
checking whether the C compiler works... no
aconfigure: error: in `/home/mehul/workspace/feature/pjproject/trunk':
aconfigure: error: C compiler cannot create executables

>From config.log:
mipsel-linux-android-gcc: error: mipsel-none-linux-android: No such file or directory
mipsel-linux-android-gcc: error: mipsel-none-linux-android: No such file or directory
mipsel-linux-android-gcc: error: unrecognized command line option '-target'
mipsel-linux-android-gcc: error: unrecognized command line option '-target'
aconfigure:2970: $? = 1
aconfigure:3008: result: no
aconfigure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "2.x"
| #define PACKAGE_STRING "pjproject 2.x"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
aconfigure:3013: error: in `/home/mehul/workspace/feature/pjproject/trunk':
aconfigure:3015: error: C compiler cannot create executables

Please let me know if I am missing anything in configuring.


Thanks,

Mehul Hirpara


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
_______________________________________________
Visit our blog: http://blog.pjsip.org

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

[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