linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Trying to build for Android forthefirsttime


From: Jehan Monnier
Subject: Re: [Linphone-developers] Trying to build for Android forthefirsttime
Date: Tue, 29 Nov 2011 08:16:25 +0100

Well, it looks like you are an unlucky man ;-)
At least for the vp8 issue, Linphone requires ndk >=5c (see REAME)
Anyway thank you for debugging the build under cygwin.


Le 29 nov. 2011 à 07:04, Richard Poirier a écrit :

Hi,
 
I resolved my problem by copying pkg.m4 from here:
C:\MinGW\msys\1.0\share\aclocal
To here:
C:\MinGW\share\aclocal
 
[As a reminder:
./configure: line 11437: syntax error near unexpected token `MEDIASTREAMER,'
./configure: line 11437: `PKG_CHECK_MODULES(MEDIASTREAMER, mediastreamer >= 2.0.0)']
 
But then  ./prepare_sources.sh stopped further down with the following message:
 
  inflating: SILK_SDK_SRC_v1.0.8/SILK_SDK_SRC_ARM_v1.0.8/test_vectors/test_encoder.bat
  inflating: SILK_SDK_SRC_v1.0.8/SILK_SDK_SRC_ARM_v1.0.8/test_vectors/test_encoder.sh
cp ./patch_pic.diff SILK_SDK_SRC_v1.0.8/SILK_SDK_SRC_ARM_v1.0.8
cd SILK_SDK_SRC_v1.0.8/SILK_SDK_SRC_ARM_v1.0.8 && /bin/patch -p0 < patch_pic.diff
patching file Makefile
Hunk #1 FAILED at 26.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
make: *** [SILK_SDK_SRC_v1.0.8/SILK_SDK_SRC_ARM_v1.0.8] Error 1
SILK audio plugin prepare state failed.
 
If anyone ever meet that error I would welcome information on how to solve it.
 
Nevertheless I continued and tried to compile the code using androir-ndk-r5b. Firstly I had to change line # 41 of ortp.c from this:
#include <srtp/srtp.h> to this:
#include <../../srtp/include/srtp.h>
 
And now it compiles a whole bunch of files but eventually fails with this error and I don’t know what to do with it:
Compile arm    : vpx <= vpx_codec.c
Compile arm    : vpx <= vpx_image.c
Compile arm    : vpx <= arm_cpudetect.c
Compile arm    : vpx <= vp8_vpxyv12_copyframe_func_neon.s
awk: /c/Android/android-ndk-r5b/build/awk/convert-deps-to-cygwin.awk:37: fatal: cannot open file `/c/source/linphone-android/obj/local/armeabi-v7a/objs/ vpx/vpx_scale/arm/neon/vp8_vpxyv12_copyframe_func_neon.o.d.org' for reading (No such file or directory)
make.exe: *** [/c/source/linphone-android/obj/local/armeabi-v7a/objs/vpx/vpx_scale/arm/neon/vp8_vpxyv12_copyframe_func_neon.o] Error 2
 
In directory `/c/source/linphone-android/obj/local/armeabi-v7a/objs/ vpx/vpx_scale/arm/neon’ I see this file:
vp8_vpxyv12_copyframe_func_neon.o and this file:
vp8_vpxyv12_copyframe_func_neon.o but none of this file:
vp8_vpxyv12_copyframe_func_neon.o.org
 
I inspected a few .mk files which contain the above filename without the extension but it doesn’t look like I’m on the right track. Any help on how to attack this problem would make my day!
 
Thank you,
Richard
 
From: address@hidden [mailto:linphone-developers-bounces+richard.poirier=address@hidden] On Behalf Of Jehan Monnier
Sent: November-28-11 15:28
To: address@hidden
Subject: Re: [Linphone-developers] Trying to build for Android forthefirsttime
 
Hi,
 
PKG_CHECK_MODULES is supposed to be defined in this file.
 
As a reminder:
./configure: line 11437: syntax error near unexpected token `MEDIASTREAMER,'
./configure: line 11437: `PKG_CHECK_MODULES(MEDIASTREAMER, mediastreamer >= 2.0.0)'
 
 


 
Le 26 nov. 2011 à 17:10, Richard Poirier a écrit :


In fact I do need SILK. Unfortunately, I’m having a hard time to understand your last reply… I see that I have 2 files named pkg.m4. One here:
 
C:\sources\linphone-android\submodules\externals\libvpx\nestegg\m4
And one here :
C:\MinGW\msys\1.0\share\aclocal
 
What should I be looking for in these files?
 
Thanks,
Richard
 
From: address@hidden [mailto:linphone-developers-bounces+richard.poirier=address@hidden] On Behalf Of Jehan Monnier
Sent: November-25-11 11:38
To: address@hidden
Subject: Re: [Linphone-developers] Trying to build for Android for thefirsttime
 
Hi Richard,
 
mac-book-de-jehan-monnier:linphone-android jehanmonnier$ port contents  pkgconfig
Warning: port definitions are more than two weeks old, consider using selfupdate
Port pkgconfig contains:
  /opt/local/bin/pkg-config
  /opt/local/share/aclocal/pkg.m4
  /opt/local/share/doc/pkg-config/pkg-config-guide.html
  /opt/local/share/doc/pkgconfig/AUTHORS
  /opt/local/share/doc/pkgconfig/COPYING
  /opt/local/share/doc/pkgconfig/NEWS
  /opt/local/share/doc/pkgconfig/README
  /opt/local/share/man/man1/pkg-config.1.gz
 
 
 
pkg.m4 is the important file in this case.
 
Anyway, this last step in the prepare source is only mandatory if you plan to compile with SILK support. Otherwise, just ignore this issue and continue.
 
Cheers
 
 

 

 
Le 25 nov. 2011 à 17:18, Richard Poirier a écrit :



Hi Jehan,
 
But it seems that I already have pkg-config installed. I can see it in my C:\MinGW\msys\1.0\bin\pkg-config.exe  directory and I have tested the that pkg-config can run from my MinGS shell (/sources/linphone-android) where I launch ./prepare_sources.sh.
 
Is there something else that I could look at.
 
Thanks for your help.
 
Richard
 
From: address@hidden [mailto:linphone-developers-bounces+richard.poirier=address@hidden] On Behalf Of Jehan Monnier
Sent: November-25-11 02:07
To: address@hidden
Subject: Re: [Linphone-developers] Trying to build for Android for the firsttime
 
pkgconfig is missing. I have updated the README accordingly.
 
Cheer
 
 




 
Le 24 nov. 2011 à 21:32, Richard Poirier a écrit :




Hi,
 
I’m Working from a 64 bit Windows 7 OS. I was successful in building the Linphone as instructed in the file README.mingw. Now I’m trying to build for Android  but I am not successful using the instructions in the file README-ANDROID.
I have the Android ndk-r5b installed as well as the autotools: autoconf, automake, aclocal and libtoolize. And I think that the later(s) are installed properly given that I can build, and run, linphone for Windows. This is the error that I get when I execute:
 
$ ./prepare_sources.sh
checking whether to build shared libraries... yes
checking whether to build static libraries... no
./configure: line 11437: syntax error near unexpected token `MEDIASTREAMER,'
./configure: line 11437: `PKG_CHECK_MODULES(MEDIASTREAMER, mediastreamer >= 2.0.0)'
SILK audio plugin prepare state failed.
 
I looked at the line 11437 but all looks fine to me. However I’m not familiar with those kind of files… I would very much appreciate if someone could give me some insight or leads as to where I can go from here to resolve that issue.
 
Thanks in advance,
Richard
 
 
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
 
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
 
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
 
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]