james Uno | 21 May 2013 16:24
Picon

Read the custom field in the SDP of an incoming INVITE

I have added some fields in the SDP for an INVITE. Now on the callee side I need to read them. Can someone point me to an example on how to do it?

Thank-you
J


<div><div dir="ltr">I have added some fields in the SDP for an INVITE. Now on the callee side I need to read them. Can someone point me to an example on how to do it?<div><br></div>
<div>Thank-you</div>
<div>J<br><div><br></div>
<div>
<br>
</div>
</div>
</div></div>
Khoa Pham | 21 May 2013 06:54
Picon
Gravatar

How to pause recording ?

Hi,

I follow pjsua apps (--rec-file) and I can record just fine. Now when user holds call, I want to pause recording.

I use pjsua_conf_disconnect(0, app_config.rec_port); when call is hold,
and pjsua_conf_connect(0, app_config.rec_port); when call is active

But that results in a silence in the .wav file when call is hold. It seems that a silent frame is put to .wav file when call is hold. I don't want any silence during call hold

How to pause recording ?

--
Khoa Pham
HCMC University of Science
www.fantageek.com
<div><div dir="ltr">Hi,<div><br></div>
<div>I follow pjsua apps (--rec-file) and I can record just fine. Now when user holds call, I want to pause recording.</div>
<div><br></div>
<div>I use pjsua_conf_disconnect(0, app_config.rec_port); when call is hold,</div>
<div>and&nbsp;pjsua_conf_connect(0, app_config.rec_port); when call is active</div>
<div><br></div>
<div>But that results in a silence in the .wav file when call is hold. It seems that a silent frame is put to .wav file when call is hold. I don't want any silence during call hold</div>
<div><br></div>
<div>How to pause recording ?<br clear="all"><div><br></div>-- <br><div dir="ltr">
<span>Khoa Pham</span><div>HCMC University of Science<br><span><a href="http://www.fantageek.com" target="_blank">www.fantageek.com</a></span><br>
</div>
</div>
</div>
</div></div>
Khoa Pham | 20 May 2013 12:21
Picon
Gravatar

Error building pjsip with video

Hi, I follow exactly what Samuel post in his project https://code.google.com/p/siphon/wiki/VIdeoSupport

So far, I have 
1. libyuv compiled at /Users/me/libyuv/include and /Users/me/libyuv/lib
2. libx264 and ffmpeg compiled at /Users/me/x264/include and /Users/me/x264/lib
3. I autoconf the aconfigure

When I run 

./configure-iphone --prefix=/Users/me/libyuv --with-ffmpeg=/Users/me/x264 --with-libyuv=/Users/me/libyuv

But I receive "libyuv library not found, video support disabled" ???

And when I make clean && make && make install. I receveive

../src/pjmedia/ffmpeg_util.h:53: warning: ‘enum CodecID’ declared inside parameter list

../src/pjmedia/ffmpeg_util.c:65: error: field ‘codec_id’ has incomplete type

../src/pjmedia/ffmpeg_util.c:169: error: conflicting types for ‘pjmedia_format_id_to_CodecID’

../src/pjmedia/ffmpeg_util.h:50: error: previous declaration of ‘pjmedia_format_id_to_CodecID’ was here

../src/pjmedia/ffmpeg_util.c: In function ‘pjmedia_format_id_to_CodecID’:

../src/pjmedia/ffmpeg_util.c:173: warning: comparison between pointer and integer

../src/pjmedia/ffmpeg_util.c:174: error: dereferencing pointer to incomplete type

../src/pjmedia/ffmpeg_util.c:174: warning: statement with no effect

../src/pjmedia/ffmpeg_util.c:179: error: dereferencing pointer to incomplete type

../src/pjmedia/ffmpeg_util.c:179: warning: statement with no effect

../src/pjmedia/ffmpeg_util.c: At top level:

../src/pjmedia/ffmpeg_util.c:183: error: parameter 1 (‘codec_id’) has incomplete type

make[2]: *** [output/pjmedia-arm-apple-darwin9/ffmpeg_util.o] Error 1

make[1]: *** [pjmedia] Error 2

make: *** [all] Error 1


Please help



--
Khoa Pham
<div><div dir="ltr">Hi, I follow exactly what Samuel post in his project&nbsp;<a href="https://code.google.com/p/siphon/wiki/VIdeoSupport">https://code.google.com/p/siphon/wiki/VIdeoSupport</a><div><br></div>
<div>So far, I have&nbsp;</div>
<div>1. libyuv compiled at /Users/me/libyuv/include and /Users/me/libyuv/lib</div>
<div>2. libx264 and ffmpeg compiled at /Users/me/x264/include and /Users/me/x264/lib</div>
<div>3. I autoconf the aconfigure</div>
<div><br></div>
<div>When I run&nbsp;

<p class="">./configure-iphone --prefix=/Users/me/libyuv --with-ffmpeg=/Users/me/x264 --with-libyuv=/Users/me/libyuv</p>
<p class="">But I receive "libyuv library not found, video support disabled" ???</p>
<p class="">And when I make clean &amp;&amp; make &amp;&amp; make install. I receveive</p>
<p class="">

</p>
<p class="">../src/pjmedia/ffmpeg_util.h:53: warning: &lsquo;enum CodecID&rsquo; declared inside parameter list</p>
<p class="">../src/pjmedia/ffmpeg_util.c:65: error: field &lsquo;codec_id&rsquo; has incomplete type</p>
<p class="">../src/pjmedia/ffmpeg_util.c:169: error: conflicting types for &lsquo;pjmedia_format_id_to_CodecID&rsquo;</p>
<p class="">../src/pjmedia/ffmpeg_util.h:50: error: previous declaration of &lsquo;pjmedia_format_id_to_CodecID&rsquo; was here</p>
<p class="">../src/pjmedia/ffmpeg_util.c: In function &lsquo;pjmedia_format_id_to_CodecID&rsquo;:</p>
<p class="">../src/pjmedia/ffmpeg_util.c:173: warning: comparison between pointer and integer</p>
<p class="">../src/pjmedia/ffmpeg_util.c:174: error: dereferencing pointer to incomplete type</p>
<p class="">../src/pjmedia/ffmpeg_util.c:174: warning: statement with no effect</p>
<p class="">../src/pjmedia/ffmpeg_util.c:179: error: dereferencing pointer to incomplete type</p>
<p class="">../src/pjmedia/ffmpeg_util.c:179: warning: statement with no effect</p>
<p class="">../src/pjmedia/ffmpeg_util.c: At top level:</p>
<p class="">../src/pjmedia/ffmpeg_util.c:183: error: parameter 1 (&lsquo;codec_id&rsquo;) has incomplete type</p>
<p class="">make[2]: *** [output/pjmedia-arm-apple-darwin9/ffmpeg_util.o] Error 1</p>
<p class="">make[1]: *** [pjmedia] Error 2</p>
<p class="">make: *** [all] Error 1</p>
<p class=""><br></p>
<p class="">Please help</p>
<p></p>
<p class=""><br></p>

<div>
<div><br></div>-- <br><span>Khoa Pham</span><br>
</div>
</div>
</div></div>
Sungbum Lim | 20 May 2013 11:51
Picon

PJSUA for android

Hi all,


I am following build instruction on http://trac.pjsip.org/repos/wiki/Getting-Started/Android and got source for android from SVN 

But there is no such directory "pjsip-apps/src/pjsua/android"

Anyone know how to build PJSUA for android in this situation?



Thanks,
SB
<div><div dir="ltr">
<div>Hi all,</div>
<div><br></div>
<div><br></div>
<div>I am following build instruction on&nbsp;<a href="http://trac.pjsip.org/repos/wiki/Getting-Started/Android">http://trac.pjsip.org/repos/wiki/Getting-Started/Android</a>&nbsp;and&nbsp;got source for android from SVN&nbsp;</div>
<div>&nbsp; &nbsp;<a href="https://svn.pjsip.org/repos/pjproject/branches/projects/android">https://svn.pjsip.org/repos/pjproject/branches/projects/android</a><br>
</div>
<div><div dir="ltr">
<div><br></div>
<div>But there is no such directory "<span>pjsip-apps/src/pjsua/android"</span>
</div>
<div><span><br></span></div>
<div>Anyone know how to build PJSUA for android in this situation?</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div>Thanks,</div>
<div>SB</div>
</div></div>
</div></div>
Jitendra Singh | 17 May 2013 14:28

How to change From header in outgoing INVITE

Hi All,

 

I am using pjsua_call_make_call API for sending INVITE from my application. By default the From header contains the URI specified in the id parameter

Of pjsua_acc_config structure. But I want to have different CLI (From header) for different calls. So I tried to change this id before calling pjsua_call_make_call

And added following code for this:

 

    Char* strFrom = “sip:5555 <at> 10.0.0.1”;

    g_acc_cfg.id = pj_strdup3 (pool, strFrom);

    status = pjsua_acc_modify(g_acc_id, &g_acc_cfg);

    status =

        pjsua_call_make_call (g_acc_id, &uri, 0,0, &msg_data,

                              &call_id);

 

In my case pjsua_acc_modify is working fine. But pjsua_call_make_call fails and returns status code 171039.  This status code is returned when there is something

Wrong with the URI. But in this case I don’t see any thing wrong  with the URI.

Please suggest what is going wrong.

 

Thanks,

Jitendra

<div><div class="WordSection1">
<p class="MsoNormal">Hi All,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I am using pjsua_call_make_call API for sending INVITE from my application. By default the From header contains the URI specified in the id parameter <p></p></p>
<p class="MsoNormal">Of pjsua_acc_config structure. But I want to have different CLI (From header) for different calls. So I tried to change this id before calling pjsua_call_make_call <p></p></p>
<p class="MsoNormal">And added following code for this:<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp; Char* strFrom = &ldquo;sip:5555 <at> 10.0.0.1&rdquo;;<p></p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp; g_acc_cfg.id = pj_strdup3 (pool, strFrom);<p></p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp; status = pjsua_acc_modify(g_acc_id, &amp;g_acc_cfg);<p></p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp; status =<p></p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pjsua_call_make_call (g_acc_id, &amp;uri, 0,0, &amp;msg_data,<p></p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;call_id);<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">In my case pjsua_acc_modify is working fine. But pjsua_call_make_call fails and returns status code 171039. &nbsp;This status code is returned when there is something<p></p></p>
<p class="MsoNormal">Wrong with the URI. But in this case I don&rsquo;t see any thing wrong&nbsp; with the URI. <p></p></p>
<p class="MsoNormal">Please suggest what is going wrong.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks,<p></p></p>
<p class="MsoNormal">Jitendra <p></p></p>
</div></div>
Romain JEZEQUEL | 17 May 2013 12:06
Picon
Favicon

Handling re-INVITE answer manually

Hi all,

My application needs to handle re-INVITE responses manually.
I found a proposed patch 4 year ago here: http://trac.pjsip.org/repos/ticket/817
(Thanks Ruud Klaver)

I will apply it PJSIP 2.0.1 that I'm currently using.
I'm just wondering why this patch is not part of the releases that have come later?
Is there a particular reason for this patch not being integrated?

Thanks for your answers!

Regards,

Romain
<div><div>
<div>Hi all,</div>
<div><br></div>
<div>My application needs to handle re-INVITE responses manually.</div>
<div>I found a proposed patch 4 year ago here: http://trac.pjsip.org/repos/ticket/817</div>
<div>(Thanks Ruud Klaver)</div>
<div><br></div>
<div>I will apply it PJSIP 2.0.1 that I'm currently using.<br>
</div>
<div>I'm just wondering why this patch is not part of the releases that have come later?</div>
<div>Is there a particular reason for this patch not being integrated?</div>
<div><br></div>
<div>Thanks for your
 answers!</div>
<div><br></div>
<div>Regards,</div>
<div><br></div>
<div>Romain<br>
</div>
</div></div>
Gaurav Pandey | 17 May 2013 10:50
Picon

Integration Error- PJSIP version 2.0

Hi Martin,

i have compile the pjsip2.x successfully but when i integrate it and try to compile it , it is showing following error:-

 

Undefined symbols for architecture armv7:

  "_pjsua_media_transports_create", referenced from:

      _app_init in pjsua_app.o

ld: symbol(s) not found for architecture armv7

collect2: ld returned 1 exit status

i have tried this solution of your "Hi, try to add this to your project's preprocessor macros: PJ_AUTOCONF=1 " but still getting same error same time.

I am using xcode4.6 

waiting for your generous response.

Please help me to solve this issue

can anyone provide a solution? 


Thanks In Advance

Regards,
iGaurav

<div><div dir="ltr">
<h2 class="">
<span>Hi Martin,</span><br>
</h2>
<div>i have compile the pjsip2.x successfully but when i integrate it and try to compile it , it is showing following error:-</div>
<div>
<br>&nbsp;

<p class="">Undefined symbols for architecture armv7:</p>
<p class="">&nbsp; "_pjsua_media_transports_create", referenced from:</p>
<p class="">&nbsp; &nbsp; &nbsp; _app_init in pjsua_app.o</p>
<p class="">ld: symbol(s) not found for architecture armv7</p>
<p class="">collect2: ld returned 1 exit status</p>
<div>i have tried this solution of your "Hi, try to add this to your project's preprocessor macros: PJ_AUTOCONF=1&nbsp;" but still getting same error same time.</div>
<br>I am using xcode4.6&nbsp;<br><br>waiting for your generous response.<br><br>Please help me to solve this issue<br><br>can anyone provide a solution?&nbsp;<br><br><br>Thanks In Advance<br><br>Regards,</div>
<div>
iGaurav</div>
<div><br></div>
</div></div>
Sungbum Lim | 16 May 2013 10:30
Picon

Build PJSIP for Android on Cygwin(Win7) - checking whether the C compiler works: NO

Hi,

Have you see this issue before? 

plz help me go forward..
I'm in trouble to getting start build on PJSIP for Android on Cygwin(Win7). could't complete "checking whether the C compiler works" in './configure-android' 
I'v verified Android NDK already and Environment variables as below before run 'configure-android'

TARGET_ABI=armeabi
APP_PLATFORM=android-8

There is 'libc.so' and 'libgcc.so' in linker search directory correctly.

I have a suspicion that linker was picked as 'AndroidNDK\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows-x86_64\arm-linux-androideabi\bin\ld.exe' instead of  'AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ld'



$ ./configure-android
configure-android: calling ./configure with env vars:
 CC = /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
 CXX = /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++
 CFLAGS =  -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include
 CXXFLAGS =  -shared --sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm
 LDFLAGS =  -nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/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/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
checking whether the C compiler works... no
aconfigure: error: in `/cygdrive/d/Projects/FanLing/SIP/PJSIP/android-target':
aconfigure: error: C compiler cannot create executables
See `config.log' for more details





== config.log ==
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 = sb-hkct-nb
uname -m = i686
uname -r = 1.7.18(0.263/5/3)
uname -s = CYGWIN_NT-6.1-WOW64
uname -v = 2013-04-19 10: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/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/WIDCOMM/Bluetooth Software
PATH: /cygdrive/c/Program Files/WIDCOMM/Bluetooth Software/syswow64
PATH: /cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static
PATH: /cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/10.0/DLLShared
PATH: /cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/DLLShared
PATH: /cygdrive/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn
PATH: /cygdrive/d/SW/Development/adt-bundle-windows-x86_64-20130219/sdk/platform-tools
PATH: /cygdrive/d/SW/Development/adt-bundle-windows-x86_64-20130219/sdk/tools
PATH: /cygdrive/c/Program Files (x86)/Java/jre6/bin
PATH: /cygdrive/c/Program Files/TortoiseSVN/bin
PATH: /usr/bin
PATH: /usr/lib/lapack
PATH: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e


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

aconfigure:2335: checking build system type
aconfigure:2349: result: i686-pc-cygwin
aconfigure:2369: checking host system type
aconfigure:2382: result: arm-unknown-linux-androideabi
aconfigure:2402: checking target system type
aconfigure:2415: result: arm-unknown-linux-androideabi
aconfigure:2463: checking for arm-linux-androideabi-gcc
aconfigure:2490: result: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
aconfigure:2759: checking for C compiler version
aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc --version >&5
arm-linux-androideabi-gcc.exe (GCC) 4.4.3
Copyright (C) 2009 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:2779: $? = 0
aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -v >&5
Using built-in specs.
Target: arm-linux-androideabi
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.4.3/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=arm-linux-androideabi --host=x86_64-pc-mingw32msvc --build=x86_64-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 --without-ppl --without-cloog --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.19 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.4.3 --with-gdb-version=7.3.x --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.4.3 --with-bugurl=http://source.android.com/source/report-bugs.html --disable-bootstrap --disable-libquadmath --disable-plugin --enable-libgomp --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&'
Thread model: posix
gcc version 4.4.3 (GCC)
aconfigure:2779: $? = 0
aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -V >&5
arm-linux-androideabi-gcc.exe: '-V' option must have argument
aconfigure:2779: $? = 1
aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -qversion >&5
arm-linux-androideabi-gcc.exe: unrecognized option '-qversion'
arm-linux-androideabi-gcc.exe: no input files
aconfigure:2779: $? = 1
aconfigure:2799: checking whether the C compiler works
aconfigure:2821: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc  -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include  -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include  -nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/ conftest.c  -lc -lgcc >&5
D:/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -lc
collect2: ld returned 1 exit status
aconfigure:2825: $? = 1
aconfigure:2863: 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:2868: error: in `/cygdrive/d/Projects/FanLing/SIP/PJSIP/android-target':
aconfigure:2870: 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/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/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/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/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/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
ac_cv_target=arm-unknown-linux-androideabi

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

AR=''
CC='/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc'
CC_CFLAGS=''
CC_DEF=''
CC_INC=''
CC_OPTIMIZE=''
CC_OUT=''
CFLAGS=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'
CPP=''
CPPFLAGS=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'
CXX='/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++'
CXXFLAGS=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include  -shared --sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LD=''
LDFLAGS=' -nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/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=''
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_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=''
openssl_h_present=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
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


 
Thanks,
SB
<div><div dir="ltr">Hi,<br><br>Have you see this issue before?&nbsp;<div><br></div>
<div>plz help me go forward..<div>I'm in trouble to getting start build on PJSIP for Android on Cygwin(Win7). could't complete "checking whether the C compiler works" in './configure-android'&nbsp;<br>
I'v verified Android NDK already and Environment variables as below before run 'configure-android'<br><br>
</div>
<blockquote>
<div>TARGET_ABI=armeabi</div>
<div>APP_PLATFORM=android-8</div>
</blockquote>
<div>
<br>There is 'libc.so' and 'libgcc.so' in linker search directory correctly.</div>
<div><br></div>
<div>I have a suspicion that linker was picked as 'AndroidNDK\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows-x86_64\arm-linux-androideabi\bin\ld.exe' instead of &nbsp;'AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ld'</div>
<div><br></div>
<div><br></div>
<div>
<br>$ ./configure-android<br>configure-android: calling ./configure with env vars:<br>&nbsp;CC = /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc<br>
&nbsp;CXX = /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++<br>&nbsp;CFLAGS = &nbsp;-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include<br>
&nbsp;CXXFLAGS = &nbsp;-shared --sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm<br>&nbsp;LDFLAGS = &nbsp;-nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/≤br>
&nbsp;LIBS = &nbsp;-lc -lgcc<br>checking build system type... i686-pc-cygwin<br>checking host system type... arm-unknown-linux-androideabi<br>checking target system type... arm-unknown-linux-androideabi<br>checking for arm-linux-androideabi-gcc... /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc<br>
checking whether the C compiler works... no<br>aconfigure: error: in `/cygdrive/d/Projects/FanLing/SIP/PJSIP/android-target':<br>aconfigure: error: C compiler cannot create executables<br>See `config.log' for more details<br><br><br><br><br><br>== config.log ==<br>This file contains any messages produced by compilers while<br>running configure, to aid debugging if configure makes a mistake.<br><br>It was created by pjproject aconfigure 2.x, which was<br>
generated by GNU Autoconf 2.69. &nbsp;Invocation command line was<br><br>&nbsp; $ ./aconfigure --host=arm-linux-androideabi --disable-video<br><br>## --------- ##<br>## Platform. ##<br>## --------- ##<br><br>hostname = sb-hkct-nb<br>
uname -m = i686<br>uname -r = 1.7.18(0.263/5/3)<br>uname -s = CYGWIN_NT-6.1-WOW64<br>uname -v = 2013-04-19 10:39<br><br>/usr/bin/uname -p = unknown<br>/bin/uname -X &nbsp; &nbsp; = unknown<br><br>/bin/arch &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= i686<br>/usr/bin/arch -k &nbsp; &nbsp; &nbsp; = unknown<br>
/usr/convex/getsysinfo = unknown<br>/usr/bin/hostinfo &nbsp; &nbsp; &nbsp;= unknown<br>/bin/machine &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = unknown<br>/usr/bin/oslevel &nbsp; &nbsp; &nbsp; = unknown<br>/bin/universe &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= unknown<br><br>PATH: /usr/local/bin<br>PATH: /usr/bin<br>
PATH: /cygdrive/c/Windows/system32<br>PATH: /cygdrive/c/Windows<br>PATH: /cygdrive/c/Windows/System32/Wbem<br>PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0<br>PATH: /cygdrive/c/Program Files/WIDCOMM/Bluetooth Software<br>
PATH: /cygdrive/c/Program Files/WIDCOMM/Bluetooth Software/syswow64<br>PATH: /cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static<br>PATH: /cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/10.0/DLLShared<br>
PATH: /cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/DLLShared<br>PATH: /cygdrive/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn<br>PATH: /cygdrive/d/SW/Development/adt-bundle-windows-x86_64-20130219/sdk/platform-tools<br>
PATH: /cygdrive/d/SW/Development/adt-bundle-windows-x86_64-20130219/sdk/tools<br>PATH: /cygdrive/c/Program Files (x86)/Java/jre6/bin<br>PATH: /cygdrive/c/Program Files/TortoiseSVN/bin<br>PATH: /usr/bin<br>PATH: /usr/lib/lapack<br>
PATH: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e<br><br><br>## ----------- ##<br>## Core tests. ##<br>## ----------- ##<br><br>aconfigure:2335: checking build system type<br>aconfigure:2349: result: i686-pc-cygwin<br>
aconfigure:2369: checking host system type<br>aconfigure:2382: result: arm-unknown-linux-androideabi<br>aconfigure:2402: checking target system type<br>aconfigure:2415: result: arm-unknown-linux-androideabi<br>aconfigure:2463: checking for arm-linux-androideabi-gcc<br>
aconfigure:2490: result: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc<br>aconfigure:2759: checking for C compiler version<br>
aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc --version &gt;&amp;5<br>arm-linux-androideabi-gcc.exe (GCC) 4.4.3<br>
Copyright (C) 2009 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions. &nbsp;There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>aconfigure:2779: $? = 0<br>
aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -v &gt;&amp;5<br>Using built-in specs.<br>Target: arm-linux-androideabi<br>
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.4.3/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=arm-linux-androideabi --host=x86_64-pc-mingw32msvc --build=x86_64-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 --without-ppl --without-cloog --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.19 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.4.3 --with-gdb-version=7.3.x --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.4.3 --with-bugurl=<a href="http://source.android.com/source/report-bugs.html">http://source.android.com/source/report-bugs.html</a> --disable-bootstrap --disable-libquadmath --disable-plugin --enable-libgomp --with-arch=armv5te --program-transform-name='s&amp;^&amp;arm-linux-androideabi-&amp;'<br>
Thread model: posix<br>gcc version 4.4.3 (GCC)<br>aconfigure:2779: $? = 0<br>aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -V &gt;&amp;5<br>
arm-linux-androideabi-gcc.exe: '-V' option must have argument<br>aconfigure:2779: $? = 1<br>aconfigure:2768: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -qversion &gt;&amp;5<br>
arm-linux-androideabi-gcc.exe: unrecognized option '-qversion'<br>arm-linux-androideabi-gcc.exe: no input files<br>aconfigure:2779: $? = 1<br>aconfigure:2799: checking whether the C compiler works<br>aconfigure:2821: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc &nbsp;-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include &nbsp;-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include &nbsp;-nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/ conftest.c &nbsp;-lc -lgcc &gt;&amp;5<br>
D:/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -lc<br>
collect2: ld returned 1 exit status<br>aconfigure:2825: $? = 1<br>aconfigure:2863: result: no<br>aconfigure: failed program was:<br>| /* confdefs.h */<br>| #define PACKAGE_NAME "pjproject"<br>| #define PACKAGE_TARNAME "pjproject"<br>
| #define PACKAGE_VERSION "2.x"<br>| #define PACKAGE_STRING "pjproject 2.x"<br>| #define PACKAGE_BUGREPORT ""<br>| #define PACKAGE_URL ""<br>| /* end confdefs.h. &nbsp;*/<br>|<br>| int<br>
| main ()<br>| {<br>|<br>| &nbsp; ;<br>| &nbsp; return 0;<br>| }<br>aconfigure:2868: error: in `/cygdrive/d/Projects/FanLing/SIP/PJSIP/android-target':<br>aconfigure:2870: error: C compiler cannot create executables<br>See `config.log' for more details<br><br>## ---------------- ##<br>## Cache variables. ##<br>## ---------------- ##<br><br>ac_cv_build=i686-pc-cygwin<br>ac_cv_env_CCC_set=<br>ac_cv_env_CCC_value=<br>ac_cv_env_CC_set=set<br>ac_cv_env_CC_value=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc<br>
ac_cv_env_CFLAGS_set=set<br>ac_cv_env_CFLAGS_value=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'<br>ac_cv_env_CPPFLAGS_set=set<br>ac_cv_env_CPPFLAGS_value=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'<br>
ac_cv_env_CPP_set=<br>ac_cv_env_CPP_value=<br>ac_cv_env_CXXFLAGS_set=set<br>ac_cv_env_CXXFLAGS_value=' -shared --sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm'<br>ac_cv_env_CXX_set=set<br>
ac_cv_env_CXX_value=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++<br>ac_cv_env_LDFLAGS_set=set<br>ac_cv_env_LDFLAGS_value=' -nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/'<br>
ac_cv_env_LIBS_set=set<br>ac_cv_env_LIBS_value=' -lc -lgcc'<br>ac_cv_env_build_alias_set=<br>ac_cv_env_build_alias_value=<br>ac_cv_env_host_alias_set=set<br>ac_cv_env_host_alias_value=arm-linux-androideabi<br>ac_cv_env_target_alias_set=<br>
ac_cv_env_target_alias_value=<br>ac_cv_host=arm-unknown-linux-androideabi<br>ac_cv_prog_CC=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc<br>
ac_cv_target=arm-unknown-linux-androideabi<br><br>## ----------------- ##<br>## Output variables. ##<br>## ----------------- ##<br><br>AR=''<br>CC='/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc'<br>
CC_CFLAGS=''<br>CC_DEF=''<br>CC_INC=''<br>CC_OPTIMIZE=''<br>CC_OUT=''<br>CFLAGS=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'<br>
CPP=''<br>CPPFLAGS=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'<br>CXX='/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++'<br>
CXXFLAGS=' -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include &nbsp;-shared --sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm'<br>
DEFS=''<br>ECHO_C=''<br>ECHO_N='-n'<br>ECHO_T=''<br>EGREP=''<br>EXEEXT=''<br>GREP=''<br>LD=''<br>LDFLAGS=' -nostdlib -L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/'<br>
LDOUT=''<br>LIBEXT2=''<br>LIBEXT=''<br>LIBOBJS=''<br>LIBS=' -lc -lgcc'<br>LTLIBOBJS=''<br>OBJEXT=''<br>PACKAGE_BUGREPORT=''<br>PACKAGE_NAME='pjproject'<br>
PACKAGE_STRING='pjproject 2.x'<br>PACKAGE_TARNAME='pjproject'<br>PACKAGE_URL=''<br>PACKAGE_VERSION='2.x'<br>PATH_SEPARATOR=':'<br>PKG_CONFIG=''<br>RANLIB=''<br>SAVED_PKG_CONFIG_PATH=''<br>
SHELL='/bin/sh'<br>ac_build_mak_vars=''<br>ac_cross_compile=''<br>ac_ct_CC=''<br>ac_ct_CXX=''<br>ac_external_gsm=''<br>ac_external_pa=''<br>ac_external_speex=''<br>
ac_ffmpeg_cflags=''<br>ac_ffmpeg_ldflags=''<br>ac_has_ffmpeg=''<br>ac_host=''<br>ac_ios_cflags=''<br>ac_linux_poll=''<br>ac_main_obj=''<br>ac_no_g711_codec=''<br>
ac_no_g7221_codec=''<br>ac_no_g722_codec=''<br>ac_no_gsm_codec=''<br>ac_no_ilbc_codec=''<br>ac_no_l16_codec=''<br>ac_no_large_filter=''<br>ac_no_opencore_amrnb=''<br>
ac_no_small_filter=''<br>ac_no_speex_aec=''<br>ac_no_speex_codec=''<br>ac_no_ssl=''<br>ac_os_objs=''<br>ac_pa_cflags=''<br>ac_pa_use_alsa=''<br>ac_pa_use_oss=''<br>
ac_pjdir=''<br>ac_pjmedia_snd=''<br>ac_pjmedia_video=''<br>ac_pjmedia_video_has_ios=''<br>ac_pjmedia_video_has_qt=''<br>ac_qt_cflags=''<br>ac_resample_dll=''<br>ac_sdl_cflags=''<br>
ac_sdl_ldflags=''<br>ac_shlib_suffix=''<br>ac_v4l2_cflags=''<br>ac_v4l2_ldflags=''<br>bindir='${exec_prefix}/bin'<br>build='i686-pc-cygwin'<br>build_alias=''<br>build_cpu='i686'<br>
build_os='cygwin'<br>build_vendor='pc'<br>datadir='${datarootdir}'<br>datarootdir='${prefix}/share'<br>docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'<br>dvidir='${docdir}'<br>
exec_prefix='NONE'<br>host='arm-unknown-linux-androideabi'<br>host_alias='arm-linux-androideabi'<br>host_cpu='arm'<br>host_os='linux-androideabi'<br>host_vendor='unknown'<br>
htmldir='${docdir}'<br>includedir='${prefix}/include'<br>infodir='${datarootdir}/info'<br>libcrypto_present=''<br>libdir='${exec_prefix}/lib'<br>libexecdir='${exec_prefix}/libexec'<br>
libssl_present=''<br>localedir='${datarootdir}/locale'<br>localstatedir='${prefix}/var'<br>mandir='${datarootdir}/man'<br>oldincludedir='/usr/include'<br>opencore_amrnb_h_present=''<br>
opencore_amrnb_present=''<br>openssl_h_present=''<br>pdfdir='${docdir}'<br>prefix='NONE'<br>program_transform_name='s,x,x,'<br>psdir='${docdir}'<br>sbindir='${exec_prefix}/sbin'<br>
sharedstatedir='${prefix}/com'<br>sysconfdir='${prefix}/etc'<br>target='arm-unknown-linux-androideabi'<br>target_alias=''<br>target_cpu='arm'<br>target_os='linux-androideabi'<br>
target_vendor='unknown'<br><br>## ----------- ##<br>## confdefs.h. ##<br>## ----------- ##<br><br>/* confdefs.h */<br>#define PACKAGE_NAME "pjproject"<br>#define PACKAGE_TARNAME "pjproject"<br>
#define PACKAGE_VERSION "2.x"<br>#define PACKAGE_STRING "pjproject 2.x"<br>#define PACKAGE_BUGREPORT ""<br>#define PACKAGE_URL ""<br><br>aconfigure: exit 77<br><br><br>&nbsp;<br>Thanks,<br>
SB</div>
</div>
</div></div>
Kevin LaMar | 16 May 2013 02:17

Current Trunk - PJSUA for Android not building w/o extra steps - Android app crashing on run

I am able to build the apjsua branch without problems and the apjsua Android app runs properly with that libpjsua_app.so.

 

However, with the android subdirectory that was added to the trunk for pjsua recently, I have not been able to build/run successfully with the new instructions on https://trac.pjsip.org/repos/wiki/Getting-Started/Android

 

I am running Ubuntu 11.10 32-bit, with android-ndk-r8e.

 

The configure and make commands all work fine, but when I do the ndk-build command I receive the following error while trying to make the pjsua_wrap.o:

 

Invoking SWIG...

swig -c++ -o jni/pjsua_wrap.cpp -package org.pjsip.pjsua -outdir src/org/pjsip/pjsua -java jni/pjsua.i

Compile++ thumb  : pjsua <= pjsua_wrap.cpp

jni/pjsua_wrap.cpp: In constructor 'Swig::Director::JNIEnvWrapper::JNIEnvWrapper(const Swig::Director*)':

jni/pjsua_wrap.cpp:335:73: error: invalid conversion from 'void**' to 'JNIEnv** {aka _JNIEnv**}' [-fpermissive]

/home/android/android-ndk-r8e/platforms/android-14/arch-arm/usr/include/jni.h:1072:10: error:   initializing argument 1 of 'jint _JavaVM::AttachCurrentThread(JNIEnv**, void*)' [-fpermissive]

make: *** [obj/local/armeabi/objs/pjsua/pjsua_wrap.o] Error 1

 

I found the following thread which sounds exactly like what I ran into: http://swig.10945.n7.nabble.com/Java-AttachCurrentThread-cast-error-td557.html

 

After reading, I decided I would try taking the jni.h (and dependencies jawt_md.h/jni_md.h) from my 1.7.0_01 JDK folder, and placing them in /home/android/android-ndk-r8e/platforms/android-14/arch-arm/usr/include/ to see if it would build using Java’s jni.h.  This fixed the build problem and ndk-build now builds the .so without issue.  If this is a necessary step, then it should be added to the wiki page.

 

I then continued to follow the wiki entry and made the project in eclipse from existing source and it built fine (I’m using target Android SDK version 14 – Android 4.0).  I then tried to run on a 4.0 simulator, a rooted Motorola Xoom tablet, and a Samsung Galaxy SIII, all of which crash with the following LogCat tracing:

 

05-15 17:12:22.140: E/dalvikvm(21762): ERROR: detaching thread with interp frames (count=18)

05-15 17:12:22.140: I/dalvikvm(21762): "main" prio=5 tid=1 RUNNABLE

05-15 17:12:22.140: I/dalvikvm(21762):   | group="main" sCount=0 dsCount=0 obj=0x4184d568 self=0x4183d9f8

05-15 17:12:22.140: I/dalvikvm(21762):   | sysTid=21762 nice=0 sched=0/0 cgrp=apps handle=1075250992

05-15 17:12:22.140: I/dalvikvm(21762):   | schedstat=( 106848000 16932000 106 ) utm=5 stm=5 core=0

05-15 17:12:22.140: I/dalvikvm(21762):   at org.pjsip.pjsua.pjsuaJNI.pjsuaStart(Native Method)

05-15 17:12:22.140: I/dalvikvm(21762):   at org.pjsip.pjsua.pjsua.pjsuaStart(pjsua.java:13)

05-15 17:12:22.140: I/dalvikvm(21762):   at org.pjsip.pjsua.MainActivity.init_lib(MainActivity.java:234)

05-15 17:12:22.140: I/dalvikvm(21762):   at org.pjsip.pjsua.MainActivity.onCreate(MainActivity.java:153)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.app.Activity.performCreate(Activity.java:5008)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.app.ActivityThread.access$600(ActivityThread.java:130)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.os.Handler.dispatchMessage(Handler.java:99)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.os.Looper.loop(Looper.java:137)

05-15 17:12:22.140: I/dalvikvm(21762):   at android.app.ActivityThread.main(ActivityThread.java:4745)

05-15 17:12:22.140: I/dalvikvm(21762):   at java.lang.reflect.Method.invokeNative(Native Method)

05-15 17:12:22.140: I/dalvikvm(21762):   at java.lang.reflect.Method.invoke(Method.java:511)

05-15 17:12:22.140: I/dalvikvm(21762):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

05-15 17:12:22.140: I/dalvikvm(21762):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

05-15 17:12:22.140: I/dalvikvm(21762):   at dalvik.system.NativeStart.main(Native Method)

05-15 17:12:22.140: E/dalvikvm(21762): VM aborting

05-15 17:12:22.140: A/libc(21762): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 21762 (org.pjsip.pjsua)

 

If I comment out Line #230 of MainActivity.java which sets a callback object, the pjsuaStart() function returns without exception and the app does not crash, however it’s stuck on “Starting module”.

 

Is there anyone out there who can help with these issues?  Is it something I’m doing wrong?  I have followed the instructions to the letter and am still facing these problems.

 

Thanks,

Kevin

<div>
<div class="WordSection1">
<p class="MsoNormal"><span>I am able to build the apjsua branch without problems and the apjsua Android app runs properly with that libpjsua_app.so.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>However, with the android subdirectory that was added to the trunk for pjsua recently, I have not been able to build/run successfully with the new instructions
 on <a href="https://trac.pjsip.org/repos/wiki/Getting-Started/Android">https://trac.pjsip.org/repos/wiki/Getting-Started/Android</a><p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>I am running Ubuntu 11.10 32-bit, with android-ndk-r8e.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>The configure and make commands all work fine, but when I do the ndk-build command I receive the following error while trying to make the pjsua_wrap.o:<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Invoking SWIG...<p></p></span></p>
<p class="MsoNormal"><span>swig -c++ -o jni/pjsua_wrap.cpp -package org.pjsip.pjsua -outdir src/org/pjsip/pjsua -java jni/pjsua.i<p></p></span></p>
<p class="MsoNormal"><span>Compile++ thumb&nbsp; : pjsua &lt;= pjsua_wrap.cpp<p></p></span></p>
<p class="MsoNormal"><span>jni/pjsua_wrap.cpp: In constructor 'Swig::Director::JNIEnvWrapper::JNIEnvWrapper(const Swig::Director*)':<p></p></span></p>
<p class="MsoNormal"><span>jni/pjsua_wrap.cpp:335:73: error: invalid conversion from 'void**' to 'JNIEnv** {aka _JNIEnv**}' [-fpermissive]<p></p></span></p>
<p class="MsoNormal"><span>/home/android/android-ndk-r8e/platforms/android-14/arch-arm/usr/include/jni.h:1072:10: error:&nbsp;&nbsp; initializing argument 1 of 'jint _JavaVM::AttachCurrentThread(JNIEnv**,
 void*)' [-fpermissive]<p></p></span></p>
<p class="MsoNormal"><span>make: *** [obj/local/armeabi/objs/pjsua/pjsua_wrap.o] Error 1<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>I found the following thread which sounds exactly like what I ran into:
<a href="http://swig.10945.n7.nabble.com/Java-AttachCurrentThread-cast-error-td557.html">
http://swig.10945.n7.nabble.com/Java-AttachCurrentThread-cast-error-td557.html</a><p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>After reading, I decided I would try taking the jni.h (and dependencies jawt_md.h/jni_md.h) from my 1.7.0_01 JDK folder, and placing them in /home/android/android-ndk-r8e/platforms/android-14/arch-arm/usr/include/
 to see if it would build using Java&rsquo;s jni.h.&nbsp; This fixed the build problem and ndk-build now builds the .so without issue.&nbsp; If this is a necessary step, then it should be added to the wiki page.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>I then continued to follow the wiki entry and made the project in eclipse from existing source and it built fine (I&rsquo;m using target Android SDK version 14 &ndash; Android
 4.0).&nbsp; I then tried to run on a 4.0 simulator, a rooted Motorola Xoom tablet, and a Samsung Galaxy SIII, all of which crash with the following LogCat tracing:<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: E/dalvikvm(21762): ERROR: detaching thread with interp frames (count=18)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762): "main" prio=5 tid=1 RUNNABLE<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; | group="main" sCount=0 dsCount=0 obj=0x4184d568 self=0x4183d9f8<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; | sysTid=21762 nice=0 sched=0/0 cgrp=apps handle=1075250992<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; | schedstat=( 106848000 16932000 106 ) utm=5 stm=5 core=0<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at org.pjsip.pjsua.pjsuaJNI.pjsuaStart(Native Method)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at org.pjsip.pjsua.pjsua.pjsuaStart(pjsua.java:13)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at org.pjsip.pjsua.MainActivity.init_lib(MainActivity.java:234)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at org.pjsip.pjsua.MainActivity.onCreate(MainActivity.java:153)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.app.Activity.performCreate(Activity.java:5008)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.app.ActivityThread.access$600(ActivityThread.java:130)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.os.Handler.dispatchMessage(Handler.java:99)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.os.Looper.loop(Looper.java:137)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at android.app.ActivityThread.main(ActivityThread.java:4745)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at java.lang.reflect.Method.invokeNative(Native Method)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:511)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: I/dalvikvm(21762):&nbsp;&nbsp; at dalvik.system.NativeStart.main(Native Method)<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: E/dalvikvm(21762): VM aborting<p></p></span></p>
<p class="MsoNormal"><span>05-15 17:12:22.140: A/libc(21762): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 21762 (org.pjsip.pjsua)<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>If I comment out Line #230 of MainActivity.java which sets a callback object, the pjsuaStart() function returns without exception and the app does not crash,
 however it&rsquo;s stuck on &ldquo;Starting module&rdquo;.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Is there anyone out there who can help with these issues?&nbsp; Is it something I&rsquo;m doing wrong?&nbsp; I have followed the instructions to the letter and am still facing
 these problems.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Thanks,<p></p></span></p>
<p class="MsoNormal"><span>Kevin<p></p></span></p>
</div>
</div>
user uno | 15 May 2013 19:38
Picon

Passing userdata to pjsua.call_make_call from java and SWIG

I'm trying to call pjsua.call_make_call. I'm using the jni layer in CSipSimple that is created with SWIG.

How can I pass the user_data? if I just pass the a byte[] when I use 

pjsua_call_get_user_data(call_id);

in the C code I get a non null pointer but when I try to use it the application crashes.

Is there an example of how to do it?

Thanks
<div><div dir="ltr">I'm trying to call pjsua.call_make_call. I'm using the jni layer in CSipSimple that is created with SWIG.<br><div class="gmail_quote"><div dir="ltr">
<div><br></div>
<div>How can I pass the user_data? if I just pass the a byte[] when I use&nbsp;</div>

<div><br></div>
<div>pjsua_call_get_user_data(call_id);<br>
</div>
<div><br></div>
<div>in the C code I get a non null pointer but when I try to use it the application crashes.</div>
<div><br></div>
<div>Is there an example of how to do it?</div>
<div><br></div>
<div>Thanks</div>
</div></div>
</div></div>
Jesse Cloutier | 15 May 2013 14:59

Help compiling python_pjsua with python 2.7 on Windows 8 with VS2012

Hello all,

I am new to compiling software on windows, I was wondering if anyone has 
had success compiling  the python libraries on windows with python 2.7. 
I can compile against 2.4 no problem but haven't been able to get it to 
work with python 2.7. I found a list post from 2007 that recommended 
editing pjsip-apps/build/python_pjsua.vcxproj accordingly

So these are the steps I have taken with VS2012 and Windows 8:
Imported the project, everything imports OK
Create the config_site.h (empty)
Set pjsua as startup project, build pjsua OK
Modify all references of python24 and Python-2.4 to python27 and 
Python-2.7 respectively in 'pjsip-apps/build/python_pjsua.vcxproj'
Modify the properties of the python_pjsua project to include the 
C:\python27\libs and C:\python27\include
Build python_pjsua FAIL

VS gives me 31 errors here ar a few:
Error    10    error LNK2019: unresolved external symbol 
__imp__PyType_Ready referenced in function _init_pjsua C:\Users\Jesse 
Cloutier\Library\Projects\pjproject-2.1\pjproject-2.1.0\pjsip-apps\build\_pjsua.obj 
python_pjsua
Error    11    error LNK2019: unresolved external symbol 
__imp__PyType_GenericNew referenced in function 
_py_pjsua_media_config_default    C:\Users\Jesse 
Cloutier\Library\Projects\pjproject-2.1\pjproject-2.1.0\pjsip-apps\build\_pjsua.obj 
python_pjsua
Error    12    error LNK2019: unresolved external symbol 
__imp__PyCallable_Check referenced in function _cb_log_cb C:\Users\Jesse 
Cloutier\Library\Projects\pjproject-2.1\pjproject-2.1.0\pjsip-apps\build\_pjsua.obj 
python_pjsua

Can anyone point me in the right direction?

Thanks


Gmane