Building for Android MIPS & x86

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

 



Hi All,

does anyone know how to build PJSIP for both android MIPS and x86 targets?

Actually seems not really possible, configure seems getting wrong things:

Building pjsip for target mips
cd third_party/dice-pjsip && CFLAGS+="-I../openssl-android//include" LDFLAGS+="-L../openssl-android//libs/mips"
APP_ABI=mips TARGET_ABI=mips APP_PLATFORM=android-9 ./configure-android --use-ndk-cflags --prefix=../compiled//mips
--with-ssl=../openssl-android/ && make dep && make clean && make lib && make install
configure-android: calling ./configure with env vars:
 CC = /opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-gcc
 CXX = /opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-g++
 CFLAGS =  -fpic -finline-functions -ffunction-sections -funwind-tables -fmessage-length=0
-fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -no-canonical-prefixes
-O0 -g -fno-omit-frame-pointer -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security
-I/opt/android-ndk-r9c/platforms/android-9/arch-mips/usr/include -I../openssl-android//include
-I/opt/android-ndk-r9c//sources/cxx-stl/gnu-libstdc++/4.8/include
-I/opt/android-ndk-r9c//sources/cxx-stl/gnu-libstdc++/4.8/libs/mips/include
 CXXFLAGS =  -shared --sysroot=/opt/android-ndk-r9c/platforms/android-9/arch-mips -lgcc -no-canonical-prefixes
-Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -lc -lm -fexceptions -frtti
 LDFLAGS = -L../openssl-android//libs/mips -nostdlib -L/opt/android-ndk-r9c/platforms/android-9/arch-mips/usr/lib/
-L/opt/android-ndk-r9c//sources/cxx-stl/gnu-libstdc++/4.8/libs/mips/
 LIBS = /opt/android-ndk-r9c/platforms/android-9/arch-mips/usr/lib/crtbegin_so.o -lgnustl_static  -lc -lgcc -ldl
 AR = /opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-ar
 RANLIB = /opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-ranlib
aconfigure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking target system type... arm-unknown-linux-androideabi
checking for arm-linux-androideabi-gcc...
/opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether
/opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-gcc accepts
-g... yes
checking for /opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-gcc
option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether
/opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-g++ accepts
-g... yes
checking for arm-linux-androideabi-ranlib...
/opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-ranlib
checking for arm-linux-androideabi-ar...
/opt/android-ndk-r9c/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin/mipsel-linux-android-ar
checking for pthread_create in -lpthread... no
checking for puts in -lwsock32... no
....
....

Thanks in advance,
Roberto Fichera.



[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