How to Compile Pjsip for Android

BB
buntee b
Fri, Oct 16, 2009 8:19 AM

Hi All

I would like to employ the Pjsip on Android platform , is it possible?.....
if yes then please suggest me
the process.... how to complile pjsip for Android?

Regards
Buntee

Hi All I would like to employ the Pjsip on Android platform , is it possible?..... if yes then please suggest me the process.... how to complile pjsip for Android? Regards Buntee
P
pureroot
Sat, Oct 17, 2009 9:13 AM

Hi
try to use pjsip-jni (Java Native Interface),which's used by
VoiDroid (VoIP client for Android)

--
Best Regards,
Pureroot

Email: pureroot@gmail.com

On Fri, 2009-10-16 at 13:49 +0530, buntee b wrote:

Hi All

I would like to employ the Pjsip on Android platform , is it
possible?..... if yes then please suggest me
the process.... how to complile pjsip for Android?

Regards
Buntee


Visit our blog: http://blog.pjsip.org

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

Hi try to use pjsip-jni (Java Native Interface),which's used by VoiDroid (VoIP client for Android) -- Best Regards, Pureroot -------------------- Email: pureroot@gmail.com On Fri, 2009-10-16 at 13:49 +0530, buntee b wrote: > > Hi All > > I would like to employ the Pjsip on Android platform , is it > possible?..... if yes then please suggest me > the process.... how to complile pjsip for Android? > > > Regards > Buntee > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
BB
buntee b
Thu, Nov 5, 2009 9:19 AM

If anyone have any idea....Please reply to this post

Regards
buntee

On 10/16/09, buntee b b.buntee@gmail.com wrote:

Hi All

I would like to employ the Pjsip on Android platform , is it
possible?..... if yes then please suggest me
the process.... how to complile pjsip for Android?

Regards
Buntee

If anyone have any idea....Please reply to this post Regards buntee On 10/16/09, buntee b <b.buntee@gmail.com> wrote: > > > Hi All > > I would like to employ the Pjsip on Android platform , is it > possible?..... if yes then please suggest me > the process.... how to complile pjsip for Android? > > > Regards > Buntee >
JS
Jurij Smakov
Thu, Nov 5, 2009 11:21 AM

On Thu, Nov 05, 2009 at 02:49:44PM +0530, buntee b wrote:

If anyone have any idea....Please reply to this post

As someone already pointed out, your best bet is to have a
look at http://android.wooyd.org. It provides patches and
instructions on how to build PJSIP for the 1.0 Android
release. Adapting it to work with the current firmware
release (Donut) will require a bit of effort, as the audio
API has changed.

Regards
buntee

On 10/16/09, buntee b b.buntee@gmail.com wrote:

Hi All

I would like to employ the Pjsip on Android platform , is it
possible?..... if yes then please suggest me
the process.... how to complile pjsip for Android?

Regards
Buntee

--
Jurij Smakov                                          jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC

On Thu, Nov 05, 2009 at 02:49:44PM +0530, buntee b wrote: > If anyone have any idea....Please reply to this post As someone already pointed out, your best bet is to have a look at http://android.wooyd.org. It provides patches and instructions on how to build PJSIP for the 1.0 Android release. Adapting it to work with the current firmware release (Donut) will require a bit of effort, as the audio API has changed. > Regards > buntee > > On 10/16/09, buntee b <b.buntee@gmail.com> wrote: > > > > > > Hi All > > > > I would like to employ the Pjsip on Android platform , is it > > possible?..... if yes then please suggest me > > the process.... how to complile pjsip for Android? > > > > > > Regards > > Buntee > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -- Jurij Smakov jurij@wooyd.org Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
BB
buntee b
Thu, Nov 5, 2009 11:34 AM

Thanks for reply

I am using the Android 1.0 and tried the Voidroid project (
http://android.wooyd.org/) but I got some error during the compilation
process.

When I used the step 6 according to above link
[Download the build-voidroid script and run it to build the VoiDroid
package:
build-voidroid --android-dir ${ANDROID_DIR} --pjsip-dir ${PJSIP_DIR}
--voidroid-dir ${VOIDROID_DIR}
]

After command: ./configure --host=arm-eabi  , got following error:

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... i686-pc-linux-gnu
checking host system type... arm-unknown-eabi
checking target system type... arm-unknown-eabi
checking for arm-eabi-gcc... arm-eabi-gcc
checking for C compiler default output file name... aconfigure: error:
C compiler cannot create executables
See `config.log' for more details.

Config.log file shows:

-----------

Core tests.

-----------

aconfigure:1377: checking build system type
aconfigure:1395: result: i686-pc-linux-gnu
aconfigure:1403: checking host system type
aconfigure:1417: result: arm-unknown-eabi
aconfigure:1425: checking target system type
aconfigure:1439: result: arm-unknown-eabi
aconfigure:1475: checking for arm-eabi-gcc
aconfigure:1501: result: arm-eabi-gcc
aconfigure:1783: checking for C compiler version
aconfigure:1786: arm-eabi-gcc --version </dev/null >&5
./aconfigure: line 1787: arm-eabi-gcc: command not found
aconfigure:1789: $? = 127
aconfigure:1791: arm-eabi-gcc -v </dev/null >&5
./aconfigure: line 1792: arm-eabi-gcc: command not found
aconfigure:1794: $? = 127
aconfigure:1796: arm-eabi-gcc -V </dev/null >&5
./aconfigure: line 1797: arm-eabi-gcc: command not found
aconfigure:1799: $? = 127
aconfigure:1822: checking for C compiler default output file name
aconfigure:1825: arm-eabi-gcc -g  -nostdlib -Bdynamic
-Wl,-T,android-sdk-linux_x86-1.1_r1/build/core/armelf.x
-Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc
-Wl,--no-undefined
-Wl,-rpath-link=android-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib
-Landroid-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib
android-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib/crtend_android.o
android-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib/crtbegin_dynamic.o
android-sdk-linux_x86-1.1_r1/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/lib/gcc/arm-eabi/4.2.1/interwork/libgcc.a
-lc -lm -lm  -lssl -lcrypto -lmedia conftest.c  >&5
./aconfigure: line 1826: arm-eabi-gcc: command not found
aconfigure:1828: $? = 127
aconfigure: failed program was:
| /* confdefs.h.  /
|
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "pjproject 1.0"
| #define PACKAGE_BUGREPORT ""
| /
end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|  return 0;
| }
aconfigure:1867: error: C compiler cannot create executables
See `config.log' for more details.
How can I resolve this particular issue.If you have any solution then please
suggest me.
Please also check the config.log file for more details, I have attached with
this email.

Thanks in advance.

Regards
buntee

On 11/5/09, Jurij Smakov jurij@wooyd.org wrote:

On Thu, Nov 05, 2009 at 02:49:44PM +0530, buntee b wrote:

If anyone have any idea....Please reply to this post

As someone already pointed out, your best bet is to have a
look at http://android.wooyd.org. It provides patches and
instructions on how to build PJSIP for the 1.0 Android
release. Adapting it to work with the current firmware
release (Donut) will require a bit of effort, as the audio
API has changed.

Regards
buntee

On 10/16/09, buntee b b.buntee@gmail.com wrote:

Hi All

I would like to employ the Pjsip on Android platform , is it
possible?..... if yes then please suggest me
the process.... how to complile pjsip for Android?

Regards
Buntee

--
Jurij Smakov                                          jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC


Visit our blog: http://blog.pjsip.org

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

Thanks for reply I am using the Android 1.0 and tried the Voidroid project ( http://android.wooyd.org/) but I got some error during the compilation process. When I used the step 6 according to above link [Download the build-voidroid script and run it to build the VoiDroid package: build-voidroid --android-dir ${ANDROID_DIR} --pjsip-dir ${PJSIP_DIR} --voidroid-dir ${VOIDROID_DIR} ] *After command: ./configure --host=arm-eabi , got following error*: 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... i686-pc-linux-gnu checking host system type... arm-unknown-eabi checking target system type... arm-unknown-eabi checking for arm-eabi-gcc... arm-eabi-gcc checking for C compiler default output file name... aconfigure: error: C compiler cannot create executables See `config.log' for more details. *Config.log file shows:* ## ----------- ## ## Core tests. ## ## ----------- ## aconfigure:1377: checking build system type aconfigure:1395: result: i686-pc-linux-gnu aconfigure:1403: checking host system type aconfigure:1417: result: arm-unknown-eabi aconfigure:1425: checking target system type aconfigure:1439: result: arm-unknown-eabi aconfigure:1475: checking for arm-eabi-gcc aconfigure:1501: result: arm-eabi-gcc aconfigure:1783: checking for C compiler version aconfigure:1786: arm-eabi-gcc --version </dev/null >&5 ./aconfigure: line 1787: arm-eabi-gcc: command not found aconfigure:1789: $? = 127 aconfigure:1791: arm-eabi-gcc -v </dev/null >&5 ./aconfigure: line 1792: arm-eabi-gcc: command not found aconfigure:1794: $? = 127 aconfigure:1796: arm-eabi-gcc -V </dev/null >&5 ./aconfigure: line 1797: arm-eabi-gcc: command not found aconfigure:1799: $? = 127 aconfigure:1822: checking for C compiler default output file name aconfigure:1825: arm-eabi-gcc -g -nostdlib -Bdynamic -Wl,-T,android-sdk-linux_x86-1.1_r1/build/core/armelf.x -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no-undefined -Wl,-rpath-link=android-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib -Landroid-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib android-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib/crtend_android.o android-sdk-linux_x86-1.1_r1/out/target/product/generic/obj/lib/crtbegin_dynamic.o android-sdk-linux_x86-1.1_r1/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/lib/gcc/arm-eabi/4.2.1/interwork/libgcc.a -lc -lm -lm -lssl -lcrypto -lmedia conftest.c >&5 ./aconfigure: line 1826: arm-eabi-gcc: command not found aconfigure:1828: $? = 127 aconfigure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "pjproject" | #define PACKAGE_TARNAME "pjproject" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "pjproject 1.0" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } aconfigure:1867: error: C compiler cannot create executables See `config.log' for more details. How can I resolve this particular issue.If you have any solution then please suggest me. Please also check the config.log file for more details, I have attached with this email. Thanks in advance. Regards buntee On 11/5/09, Jurij Smakov <jurij@wooyd.org> wrote: > > On Thu, Nov 05, 2009 at 02:49:44PM +0530, buntee b wrote: > > If anyone have any idea....Please reply to this post > > As someone already pointed out, your best bet is to have a > look at http://android.wooyd.org. It provides patches and > instructions on how to build PJSIP for the 1.0 Android > release. Adapting it to work with the current firmware > release (Donut) will require a bit of effort, as the audio > API has changed. > > > Regards > > buntee > > > > On 10/16/09, buntee b <b.buntee@gmail.com> wrote: > > > > > > > > > Hi All > > > > > > I would like to employ the Pjsip on Android platform , is it > > > possible?..... if yes then please suggest me > > > the process.... how to complile pjsip for Android? > > > > > > > > > Regards > > > Buntee > > > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > -- > Jurij Smakov jurij@wooyd.org > Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
JS
Jurij Smakov
Thu, Nov 5, 2009 12:04 PM

On Thu, Nov 05, 2009 at 05:04:21PM +0530, buntee b wrote:

Thanks for reply

I am using the Android 1.0 and tried the Voidroid project (
http://android.wooyd.org/) but I got some error during the compilation
process.

When I used the step 6 according to above link
[Download the build-voidroid script and run it to build the VoiDroid
package:
build-voidroid --android-dir ${ANDROID_DIR} --pjsip-dir ${PJSIP_DIR}
--voidroid-dir ${VOIDROID_DIR}
]

After command: ./configure --host=arm-eabi  , got following error:

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... i686-pc-linux-gnu
checking host system type... arm-unknown-eabi
checking target system type... arm-unknown-eabi
checking for arm-eabi-gcc... arm-eabi-gcc
checking for C compiler default output file name... aconfigure: error:
C compiler cannot create executables
See `config.log' for more details.

Either you are giving it the wrong ANDROID_DIR directory, or something is
wrong with your git checkout, as it cannot find the compiler. For compilation
to work it should be here (build-voidroid script sets up the PATH environment
variable appropriately):

${ANDROID_DIR}/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-gcc

--
Jurij Smakov                                          jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC

On Thu, Nov 05, 2009 at 05:04:21PM +0530, buntee b wrote: > Thanks for reply > > I am using the Android 1.0 and tried the Voidroid project ( > http://android.wooyd.org/) but I got some error during the compilation > process. > > When I used the step 6 according to above link > [Download the build-voidroid script and run it to build the VoiDroid > package: > build-voidroid --android-dir ${ANDROID_DIR} --pjsip-dir ${PJSIP_DIR} > --voidroid-dir ${VOIDROID_DIR} > ] > > *After command: ./configure --host=arm-eabi , got following error*: > > 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... i686-pc-linux-gnu > checking host system type... arm-unknown-eabi > checking target system type... arm-unknown-eabi > checking for arm-eabi-gcc... arm-eabi-gcc > checking for C compiler default output file name... aconfigure: error: > C compiler cannot create executables > See `config.log' for more details. Either you are giving it the wrong ANDROID_DIR directory, or something is wrong with your git checkout, as it cannot find the compiler. For compilation to work it should be here (build-voidroid script sets up the PATH environment variable appropriately): ${ANDROID_DIR}/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-gcc -- Jurij Smakov jurij@wooyd.org Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC