Page 1 of 1

Various errors when compiling VLC

Posted: 30 Sep 2012 00:46
by Polochon_street
Hello there!
I tried to compile VLC for Android, following the officiel wiki, but it fails each time I tries. I overcomed some of the errors by doing dirty fixes, but I assume it may be because of these fixes that the other parts won't compile, so I'm asking you a « clean » way to fix my errors.
The error I encounter right now is this one, when running « sh compile.sh»:

Code: Select all

automake: warnings are treated as errors configure.ac:41: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and will soon be removed. configure.ac:41: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.ac:41: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libgnutls.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' Makefile.am:57: while processing Libtool library 'libgnutls.la' /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libgnutlsxx.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' Makefile.am:170: while processing Libtool library 'libgnutlsxx.la' /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libcrypto.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' gcrypt/Makefile.am:36: while processing Libtool library 'libcrypto.la' /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libminitasn1.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' minitasn1/Makefile.am:29: while processing Libtool library 'libminitasn1.la' /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libcrypto.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' nettle/Makefile.am:36: while processing Libtool library 'libcrypto.la' /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libminiopencdk.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' opencdk/Makefile.am:35: while processing Libtool library 'libminiopencdk.la' /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libgnutls_openpgp.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' openpgp/Makefile.am:37: while processing Libtool library 'libgnutls_openpgp.la' /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libgnutls_x509.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' x509/Makefile.am:35: while processing Libtool library 'libgnutls_x509.la' autoreconf: automake failed with exit status: 1 make: *** [.gnutls] Erreur 1
I remembered that I previously fixed this error by deleting a « -Werror » flag somewhere, but I can't finding it anymore, and I don't know if this is a clean way to continue.
Does someone have any idea please?
Thanks by advance!
(And, well, sorry for my bad English)

Re: Various errors when compiling VLC

Posted: 30 Sep 2012 13:05
by Jean-Baptiste Kempf
Probably need to rebootstrap the vlc builddir.

Re: Various errors when compiling VLC

Posted: 30 Sep 2012 15:44
by Polochon_street
Run bootstrap again will not help, as I can't find anymore where to cut the -Werror. I tried in gnutls/configure.ac, vlc/configure.ac and severals configure, ran bootstrap every time, but « sh compile.sh » keeps failing at this point... Do you have any idea of which file edit?
Thanks by advance!
(In french, for french native speakers, because my english is really awful...)

---
Je suis pas sûr que relancer bootstrap sera très utile, vu que je ne trouve plus quel fichier modifier pour que -Werror cesse d'être actif. J'ai enlevé ce flag de plusieurs fichiers, comme gnults/configure.ac ou bien vlc/configure.ac, puis relancé bootstrap et la compilation via « sh compile.sh », mais rien n'y fait. Une idée sur quel fichier modifier du coup?

Merci d'avance!
---

Re: Various errors when compiling VLC

Posted: 30 Sep 2012 16:10
by Jean-Baptiste Kempf
Seeing the issue in configure.ac, you need to re ./bootstrap.

Re: Various errors when compiling VLC

Posted: 30 Sep 2012 17:32
by Polochon_street
Okay, so I did ./bootstrap and then sh compile.sh, but it didn't work, I got the same error. Maybe I'm missing something?

Re: Various errors when compiling VLC

Posted: 30 Sep 2012 19:37
by Jean-Baptiste Kempf
Maybe try with Automake 1.11

Re: Various errors when compiling VLC

Posted: 30 Sep 2012 20:17
by Polochon_street
Tried it, nothing changed...
Am I the only one to experience this bug?

Re: Various errors when compiling VLC

Posted: 30 Sep 2012 20:25
by Jean-Baptiste Kempf
Works fine for me.

Re: Various errors when compiling VLC

Posted: 11 Oct 2012 17:05
by trickyd
Yeah, rebootstrap the vlc builddir and everything works, thanks.