[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-users] linphone compilation with Ant and Eclipse
From: |
kkp2744 |
Subject: |
[Linphone-users] linphone compilation with Ant and Eclipse |
Date: |
Sun, 30 Jun 2013 20:30:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
Hi All
I have tried to compile Linphone (Linphone 2.1.2) for android using
ant and eclipse under Ubuntu 12.04
Ant
apache-ant-1.9.1
android-sdk_r22-linux.tgz
android-ndk-r8d
Eclipse
eclipse (Juno Service Release 2)
android-sdk_r22-linux.tgz
android-ndk-r8d
Following the instructions in the README file, the ant
compilation is ok and the apk file "Linphone-debug.apk"
inside the bin folder seemed working well.
When I used the eclipse compilation process below:
a. ./prepare_sources.sh
b. ndk-build
c. import linphone-android into eclipse
d. build and run linphone-android
It seems there was no error and I can have the apk
file "linphone-android.apk" inside the bin folder.
But this linphone-android.apk will not run
on emulator and crash.
I compare the file size of Linphone-debug.apk (Ant version) and
linphone-android.apk (eclipse version) and they are quite different.
Also, some file size of libraries generated by android-ndk of Ant and
Eclipse
are also different (see the corresponding file size below).
Could anyone put some light and guidance on this?
Thanks
kkp2744
============= The bin folder after make (with ant)
$ ls -l
total 25752
-rw-rw-r-- 1 kkp2744 kkp2744 8264 Jun 30 04:24 AndroidManifest.xml
-rw-rw-r-- 1 kkp2744 kkp2744 126 Jun 30 04:24 AndroidManifest.xml.d
-rw-rw-r-- 1 kkp2744 kkp2744 179 Jun 30 04:24 build.prop
drwxrwxr-x 4 kkp2744 kkp2744 4096 Jun 30 04:24 classes
-rw-rw-r-- 1 kkp2744 kkp2744 1251816 Jun 30 04:24 classes.dex
-rw-rw-r-- 1 kkp2744 kkp2744 41224 Jun 30 04:24 classes.dex.d
drwxrwxr-x 2 kkp2744 kkp2744 4096 Jun 30 04:24 dexedLibs
-rw-rw-r-- 1 kkp2744 kkp2744 120 Jun 30 04:24 jarlist.cache
-rw-rw-r-- 1 kkp2744 kkp2744 3145881 Jun 30 04:24 Linphone.ap_
-rw-rw-r-- 1 kkp2744 kkp2744 10934978 Jun 30 04:24 Linphone-debug.apk
-rw-rw-r-- 1 kkp2744 kkp2744 10934326 Jun 30 04:24
Linphone-debug-unaligned.apk
-rw-rw-r-- 1 kkp2744 kkp2744 1377 Jun 30 04:24
Linphone-debug-unaligned.apk.d
-rw-rw-r-- 1 kkp2744 kkp2744 5852 Jun 30 04:24 proguard.txt
drwxrwxr-x 6 kkp2744 kkp2744 4096 Jun 30 04:24 res
=============The bin folder after ndk-build and eclipse (android-ndk-r8d)
$ ls -l
-rw-rw-r-- 1 kkp2744 kkp2744 8264 Jun 30 19:38 AndroidManifest.xml
drwxrwxr-x 4 kkp2744 kkp2744 4096 Jun 30 19:38 classes
-rw-rw-r-- 1 kkp2744 kkp2744 674892 Jun 30 19:39 classes.dex
drwxrwxr-x 2 kkp2744 kkp2744 4096 Jun 30 19:38 dexedLibs
-rw-rw-r-- 1 kkp2744 kkp2744 8406730 Jun 30 19:39 linphone-android.apk
drwxrwxr-x 6 kkp2744 kkp2744 4096 Jun 30 19:38 res
-rw-rw-r-- 1 kkp2744 kkp2744 3145851 Jun 30 19:38 resources.ap_
=============The libs/armeabi-v7a folder after make (with ant)
libs/armeabi-v7a$ ls -l
total 8400
-rwxr-xr-x 1 kkp2744 kkp2744 1007532 Jun 30 04:24 libavcodecnoneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 1007532 Jun 30 04:24 libavcodec.so
-rwxr-xr-x 1 kkp2744 kkp2744 17644 Jun 30 04:24 libavcore.so
-rwxr-xr-x 1 kkp2744 kkp2744 79100 Jun 30 04:24 libavutil.so
-rwxr-xr-x 1 kkp2744 kkp2744 829232 Jun 30 04:24 liblincrypto.so
-rwxr-xr-x 1 kkp2744 kkp2744 2585744 Jun 30 04:24 liblinphonearmv7noneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 2585744 Jun 30 04:24 liblinphonearmv7.so
-rwxr-xr-x 1 kkp2744 kkp2744 217828 Jun 30 04:24 liblinssl.so
-rwxr-xr-x 1 kkp2744 kkp2744 13436 Jun 30 04:24 libneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 89836 Jun 30 04:24 libsrtp.so
-rwxr-xr-x 1 kkp2744 kkp2744 144568 Jun 30 04:24 libswscale.so
=============The libs/armeabi-v7a folder after ndk-build
libs/armeabi-v7a$ ls -l
total 7560
-rwxr-xr-x 1 kkp2744 kkp2744 1007532 Jun 30 19:37 libavcodecnoneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 1007532 Jun 30 19:37 libavcodec.so
-rwxr-xr-x 1 kkp2744 kkp2744 17644 Jun 30 19:37 libavcore.so
-rwxr-xr-x 1 kkp2744 kkp2744 79100 Jun 30 19:37 libavutil.so
-rwxr-xr-x 1 kkp2744 kkp2744 829232 Jun 30 19:37 liblincrypto.so
-rwxr-xr-x 1 kkp2744 kkp2744 2157352 Jun 30 19:37 liblinphonearmv7noneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 2157352 Jun 30 19:37 liblinphonearmv7.so
-rwxr-xr-x 1 kkp2744 kkp2744 217828 Jun 30 19:37 liblinssl.so
-rwxr-xr-x 1 kkp2744 kkp2744 13436 Jun 30 19:37 libneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 89836 Jun 30 19:37 libsrtp.so
-rwxr-xr-x 1 kkp2744 kkp2744 144568 Jun 30 19:37 libswscale.so
=============The libs/armeabi folder after make (with ant)
libs/armeabi$ ls -l
total 2416
-rwxr-xr-x 1 kkp2744 kkp2744 2457440 Jun 30 04:24 liblinphonearmv5noneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 13432 Jun 30 04:24 libneon.so
=============The libs/armeabi-v7a folder after ndk-build
address@hidden:~/tmp.dir/linphone-android/libs/armeabi$ ls -l
total 1984
-rwxr-xr-x 1 kkp2744 kkp2744 2012672 Jun 30 19:37 liblinphonearmv5noneon.so
-rwxr-xr-x 1 kkp2744 kkp2744 13432 Jun 30 19:37 libneon.so
- [Linphone-users] ZRTP on Android, Daniel Muller, 2013/06/04
- Re: [Linphone-users] ZRTP on Android, Guillaume Beraudo, 2013/06/05
- Re: [Linphone-users] ZRTP on Android, Daniel Muller, 2013/06/05
- Re: [Linphone-users] ZRTP on Android, Alexander Kozyrev, 2013/06/05
- Re: [Linphone-users] ZRTP on Android, Guillaume Beraudo, 2013/06/05
- Re: [Linphone-users] ZRTP on Android, Daniel Muller, 2013/06/17
- Re: [Linphone-users] ZRTP on Android, Guillaume Beraudo, 2013/06/18
- Re: [Linphone-users] ZRTP on Android, Daniel Muller, 2013/06/18