linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] configure: error: 'patch' is required to build


From: Jehan Monnier
Subject: Re: [Linphone-developers] configure: error: 'patch' is required to build this package
Date: Thu, 1 Dec 2011 08:38:38 +0100

Hahaha, you are really unlucky ;-)

checking for patch... no
configure: error: 'patch' is required to build this package

What does it mean ? Maybe you just need to install patch on your machine ;-)


Le 1 déc. 2011 à 05:25, Richard Poirier a écrit :

Given that I cannot go further building for Android on MinGW, I changed my setup for Feroda 14 over vmware on my Windows 7 PC. Downloaded a fresh version of linphone-android and all and now I run into the below error. Can anyone help?
 
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
+ aclocal
+ automake --force-missing --add-missing --copy
+ autoconf
configure: 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 for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for wget... /usr/bin/wget
checking for md5sum... /usr/bin/md5sum
checking for unzip... /usr/bin/unzip
checking for patch... no
configure: error: 'patch' is required to build this package
SILK audio plugin prepare state failed.
address@hidden linphone-android]#
 
Thanks,
Richard
 
From: Richard Poirier 
Sent: November-29-11 14:45
To: 'address@hidden'
Subject: RE: [Linphone-developers] Bad file number while building liblincrypto.so
 
I was using MinGW and now I tried with Cygwin. I get to the same stage but with a different error message that seems to confirm that there are too many input files to create the library liblincrypto.so:
Compile thumb  : lincrypto <= ech_ossl.c
Compile thumb  : lincrypto <= tb_ecdh.c
SharedLibrary  : liblincrypto.so
make: execvp: /cygdrive/c/Android/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++: Argument list too long
make: *** [/cygdrive/c/source/linphone-android/obj/local/armeabi-v7a/liblincrypto.so] Error 127
 
Therefore some changes are necessary to the .mk file(s) I believe. Maybe we could first use the librarian to build a few static libraries and then build liblincrypto.so from those static libs instead of from the individual object files. That would reduce the length of the arguments list . Nicely said but I don’t know how to do that!!!
 
- first, does that make sense?
- second, can anyone help me do that cause I have no clue how those .mk files work?
 
Thanks,
Richard
 
From: address@hidden [mailto:address@hidden On Behalf Of Richard Poirier
Sent: November-29-11 10:36
To: address@hidden
Subject: [Linphone-developers] Bad file number while building liblincrypto.so
 
Thanks Jehan,
 
In fact changing line # 41 of ortp.c from this:
#include <srtp/srtp.h> to this:
#include <srtp.h> is a better solution.
 
I had tried ndk-r7 that is now available from the Android site but it didn’t work. Today I searched the web and found ndk-r6b and that works and gets me much further; up to here:
Compile thumb  : lincrypto <= ech_lib.c
Compile thumb  : lincrypto <= ech_ossl.c
Compile thumb  : lincrypto <= tb_ecdh.c
SharedLibrary  : liblincrypto.so
make.exe: execvp: /c/Android/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++: Bad file number
make.exe: *** [/c/sources/linphone-android/obj/local/armeabi-v7a/liblincrypto.so] Error 127
 
I’ve been staring at C:\source\linphone-android\submodules\externals\openssl\crypto\Android.mk for a while (too long while…) and tried changing this:
                $(LOCAL_PATH)/../include \
To this:
                $(LOCAL_PATH)/../include
But got the same results.
 
Why this error message? A search on the web indicates that this could be caused by a too large number of sources for the archiver (over 450 files). Has anybody encountered/solved that issue?
 
Thanks,
Richard
 
From: address@hidden [mailto:address@hidden On Behalf Of Jehan Monnier
Sent: November-29-11 02:16
To: address@hidden
Subject: Re: [Linphone-developers] Trying to build for Androidforthefirsttime
 
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
 
_______________________________________________
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]