Building PJSIP for Android

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

 



Hi, I am having problems building PJSIP for Android

My source Code is updated from svn
and i am using NDK r9

I am building with cygwin

THE MAIN ERRORS SEEMS TO BE SHOWN IN CONFIG.LOG:
arm-linux-androideabi-gcc.exe: error: unrecognized command line option '-V'
arm-linux-androideabi-gcc.exe: fatal error: no input files

and

arm-linux-androideabi-gcc.exe: error: unrecognized command line option
'-qversion'
arm-linux-androideabi-gcc.exe: fatal error: no input files


when i run ./configure-android in my PJSIP directory i get the following
errors:

$ ./configure-android
configure-android: APP_PLATFORM not specified, using android-18
configure-android: TARGET_ABI not specified, using armeabi
configure-android: calling ./configure with env vars:
 CC =
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc

 CXX =
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++

CFLAGS =
 -I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include

CXXFLAGS =  -shared
--sysroot=/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm

 LDFLAGS =  -nostdlib
-L/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/lib/

 LIBS =  -lc -lgcc

checking build system type... i686-pc-cygwin
checking host system type... arm-unknown-linux-androideabi
checking target system type... arm-unknown-linux-androideabi
checking for arm-linux-androideabi-gcc...
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc

checking whether the C compiler works... no
aconfigure: error: in `/cygdrive/c/Users/dlafontaine/Desktop/PJSIP2SUb':
aconfigure: error: C compiler cannot create executables
See `config.log' for more details





And in the config.log i've got the following:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by pjproject aconfigure 2.x, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./aconfigure --host=arm-linux-androideabi --disable-video

## --------- ##
## Platform. ##
## --------- ##

hostname = LAV-W3139
uname -m = i686
uname -r = 1.7.25(0.270/5/3)
uname -s = CYGWIN_NT-6.1
uname -v = 2013-08-31 20:39

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /cygdrive/c/Program Files/Common Files/Microsoft Shared/Microsoft
Online Services
PATH: /cygdrive/c/Program Files/Pervasive Software/PSQL/bin
PATH: /cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
PATH: /cygdrive/c/Program Files/ATI Technologies/ATI.ACE/Core-Static
PATH: /cygdrive/c/Program Files/Intel/Services/IPT
PATH: /cygdrive/c/Program Files/Windows Live/Shared
PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared
PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/OEM/DLLShared
PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/OEM/DLLShared
PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/OEM/12.0/DLLShared
PATH: /cygdrive/c/Program Files/Roxio/OEM/AudioCore
PATH: /cygdrive/c/MSSQL7/BINN
PATH: /cygdrive/c/Program Files/TortoiseSVN/bin
PATH: /cygdrive/c/Program Files (x86)/Microsoft Dynamics AX/60/Client/Bin
PATH: /cygdrive/c/Program Files/Java/jdk1.7.0_13/bin


## ----------- ##
## Core tests. ##
## ----------- ##

aconfigure:2355: checking build system type
aconfigure:2369: result: i686-pc-cygwin
aconfigure:2389: checking host system type
aconfigure:2402: result: arm-unknown-linux-androideabi
aconfigure:2422: checking target system type
aconfigure:2435: result: arm-unknown-linux-androideabi
aconfigure:2483: checking for arm-linux-androideabi-gcc
aconfigure:2510: result:
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
aconfigure:2779: checking for C compiler version
aconfigure:2788:
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
--version >&5
arm-linux-androideabi-gcc.exe (GCC) 4.8
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

aconfigure:2799: $? = 0
aconfigure:2788:
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
-v >&5
Using built-in specs.
COLLECT_GCC=C:\Users\dlafontaine\Desktop\NDK\android-ndk-r9-windows-x86\android-ndk-r9\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-gcc.exe
COLLECT_LTO_WRAPPER=c:/users/dlafontaine/desktop/ndk/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/../libexec/gcc/arm-linux-androideabi/4.8/lto-wrapper.exe
Target: arm-linux-androideabi
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.8/configure
--prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--target=arm-linux-androideabi --host=i586-pc-mingw32msvc
--build=i386-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++
--with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-cloog=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-isl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-ppl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--disable-ppl-version-check --disable-cloog-version-check
--disable-isl-version-check --enable-cloog-backend=isl
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--disable-libssp --enable-threads --disable-nls --disable-libmudflap
--disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions
--disable-shared --disable-tls --disable-libitm --with-float=soft
--with-fpu=vfp --with-arch=armv5te --enable-target-optspace
--enable-initfini-array --disable-nls
--prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot
--with-binutils-version=2.23 --with-mpfr-version=3.1.1
--with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.8
--with-gdb-version=7.3.x
--with-python=/usr/local/google/home/andrewhsieh/mydroid/ndk/prebuilt/windows/bin/python-config.sh
--with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.8
--with-bugurl=http://source.android.com/source/report-bugs.html--disable-bootstrap
--disable-libquadmath --enable-plugins --enable-libgomp
--disable-libsanitizer --enable-gold --enable-graphite=yes
--with-cloog-version=0.18.0 --with-isl-version=0.11.1 --with-arch=armv5te
--program-transform-name='s&^&arm-linux-androideabi-&' --enable-gold=default
Thread model: posix
gcc version 4.8 (GCC)
aconfigure:2799: $? = 0
aconfigure:2788:
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
-V >&5
arm-linux-androideabi-gcc.exe: error: unrecognized command line option '-V'
arm-linux-androideabi-gcc.exe: fatal error: no input files
compilation terminated.
aconfigure:2799: $? = 1
aconfigure:2788:
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
-qversion >&5
arm-linux-androideabi-gcc.exe: error: unrecognized command line option
'-qversion'
arm-linux-androideabi-gcc.exe: fatal error: no input files
compilation terminated.
aconfigure:2799: $? = 1
aconfigure:2819: checking whether the C compiler works
aconfigure:2841:
/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
 -I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include
 -I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include
 -nostdlib
-L/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/lib/
conftest.c  -lc -lgcc >&5
c:/users/dlafontaine/desktop/ndk/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe:
error: cannot find -lc
collect2.exe: error: ld returned 1 exit status
aconfigure:2845: $? = 1
aconfigure:2883: 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:2888: error: in
`/cygdrive/c/Users/dlafontaine/Desktop/PJSIP2SUb':
aconfigure:2890: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-cygwin
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='
-I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='
-I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=' -shared
--sysroot=/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -nostdlib
-L/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/lib/'
ac_cv_env_LIBS_set=set
ac_cv_env_LIBS_value=' -lc -lgcc'
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux-androideabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-linux-androideabi
ac_cv_prog_CC=/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
ac_cv_target=arm-unknown-linux-androideabi

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
CC='/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc'
CC_CFLAGS=''
CC_DEF=''
CC_INC=''
CC_OPTIMIZE=''
CC_OUT=''
CFLAGS='
-I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include'
CPP=''
CPPFLAGS='
-I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include'
CXX='/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++'
CXXFLAGS='
-I/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/include
 -shared
--sysroot=/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LD=''
LDFLAGS=' -nostdlib
-L/cygdrive/c/Users/dlafontaine/Desktop/NDK/android-ndk-r9-windows-x86/android-ndk-r9/platforms/android-18/arch-arm/usr/lib/'
LDOUT=''
LIBEXT2=''
LIBEXT=''
LIBOBJS=''
LIBS=' -lc -lgcc'
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='pjproject'
PACKAGE_STRING='pjproject 2.x'
PACKAGE_TARNAME='pjproject'
PACKAGE_URL=''
PACKAGE_VERSION='2.x'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
SAVED_PKG_CONFIG_PATH=''
SDL_CONFIG=''
SHELL='/bin/sh'
ac_build_mak_vars=''
ac_cross_compile=''
ac_ct_CC=''
ac_ct_CXX=''
ac_external_gsm=''
ac_external_pa=''
ac_external_speex=''
ac_ffmpeg_cflags=''
ac_ffmpeg_ldflags=''
ac_has_ffmpeg=''
ac_host=''
ac_ios_cflags=''
ac_linux_poll=''
ac_main_obj=''
ac_no_g711_codec=''
ac_no_g7221_codec=''
ac_no_g722_codec=''
ac_no_gsm_codec=''
ac_no_ilbc_codec=''
ac_no_l16_codec=''
ac_no_large_filter=''
ac_no_opencore_amrnb=''
ac_no_opencore_amrwb=''
ac_no_silk=''
ac_no_small_filter=''
ac_no_speex_aec=''
ac_no_speex_codec=''
ac_no_ssl=''
ac_os_objs=''
ac_pa_cflags=''
ac_pa_use_alsa=''
ac_pa_use_oss=''
ac_pjdir=''
ac_pjmedia_snd=''
ac_pjmedia_video=''
ac_pjmedia_video_has_ios=''
ac_pjmedia_video_has_qt=''
ac_qt_cflags=''
ac_resample_dll=''
ac_sdl_cflags=''
ac_sdl_ldflags=''
ac_shlib_suffix=''
ac_v4l2_cflags=''
ac_v4l2_ldflags=''
bindir='${exec_prefix}/bin'
build='i686-pc-cygwin'
build_alias=''
build_cpu='i686'
build_os='cygwin'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-unknown-linux-androideabi'
host_alias='arm-linux-androideabi'
host_cpu='arm'
host_os='linux-androideabi'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libcrypto_present=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libssl_present=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
opencore_amrnb_h_present=''
opencore_amrnb_present=''
opencore_amrwb_dec_h_present=''
opencore_amrwb_dec_present=''
opencore_amrwb_enc_h_present=''
opencore_amrwb_enc_present=''
openssl_h_present=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
silk_h_present=''
silk_present=''
sysconfdir='${prefix}/etc'
target='arm-unknown-linux-androideabi'
target_alias=''
target_cpu='arm'
target_os='linux-androideabi'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* 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 ""

aconfigure: exit 77

Any help would be great

thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130919/c2b067f9/attachment-0001.html>


[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