Can't compile libvlc

This forum is about all development around libVLC.
ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Can't compile libvlc

Postby ssaguiar » 05 Sep 2016 14:27

Dear friends:

Hope I am publishing this question at the right place.

I am trying to compile libvlc for Android but everytime I get some errors I can't solve.
I tried in a machine with Ubuntu 14 and another with Ubuntu 15
I have followed all the instructions at https://wiki.videolan.org/AndroidCompile/

I have followed these steps:

- git clone https://code.videolan.org/videolan/vlc-android.git
- cd vlc-android
- git checkout 2.0.6
./compile.sh

Then, after a while, I get these errors:

compat/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
compat/Makefile.am:1: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
compat/Makefile.am:1: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
compat/Makefile.am:1: If 'LT_INIT' is in 'configure.ac', make sure
compat/Makefile.am:1: its definition is in aclocal's search path.
lib/Makefile.am:31: error: Libtool library used but 'LIBTOOL' is undefined
lib/Makefile.am:31: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
lib/Makefile.am:31: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
lib/Makefile.am:31: If 'LT_INIT' is in 'configure.ac', make sure
lib/Makefile.am:31: its definition is in aclocal's search path.
modules/Makefile.am:20: error: Libtool library used but 'LIBTOOL' is undefined
modules/Makefile.am:20: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
modules/Makefile.am:20: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
modules/Makefile.am:20: If 'LT_INIT' is in 'configure.ac', make sure
modules/Makefile.am:20: its definition is in aclocal's search path.
modules/gui/macosx/Makefile.am:18: error: Libtool library used but 'LIBTOOL' is undefined
modules/gui/macosx/Makefile.am:18: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
modules/gui/macosx/Makefile.am:18: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
modules/gui/macosx/Makefile.am:18: If 'LT_INIT' is in 'configure.ac', make sure
modules/gui/macosx/Makefile.am:18: its definition is in aclocal's search path.
modules/gui/qt/Makefile.am:33: error: Libtool library used but 'LIBTOOL' is undefined
modules/gui/qt/Makefile.am:33: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
modules/gui/qt/Makefile.am:33: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
modules/gui/qt/Makefile.am:33: If 'LT_INIT' is in 'configure.ac', make sure
modules/gui/qt/Makefile.am:33: its definition is in aclocal's search path.
modules/gui/skins2/Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined
modules/gui/skins2/Makefile.am:6: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
modules/gui/skins2/Makefile.am:6: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
modules/gui/skins2/Makefile.am:6: If 'LT_INIT' is in 'configure.ac', make sure
modules/gui/skins2/Makefile.am:6: its definition is in aclocal's search path.
modules/hw/mmal/Makefile.am:11: error: Libtool library used but 'LIBTOOL' is undefined
modules/hw/mmal/Makefile.am:11: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
modules/hw/mmal/Makefile.am:11: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
modules/hw/mmal/Makefile.am:11: If 'LT_INIT' is in 'configure.ac', make sure
modules/hw/mmal/Makefile.am:11: its definition is in aclocal's search path.
src/Makefile.am:167: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:167: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:167: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:167: If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:167: its definition is in aclocal's search path.
autoreconf: automake failed with exit status: 1
vlc: bootstrap failed

Libtools is installed.
In one machine I have updated the libtools to the latest version (I downloaded the source code, compiled and instaled it, after removed the old libtools)


Please, can anybody help me to solve this?

Thanks

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Re: Can't compile libvlc

Postby ssaguiar » 05 Sep 2016 15:38

Just in case:

I have tried what is recomended here and got the same errors (tried to compile the sample repository):

https://forum.videolan.org/viewtopic.php?f=32&t=133635

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Re: Can't compile libvlc

Postby ssaguiar » 05 Sep 2016 16:06

Ok, as there is this problem with the source code. I have issued this command, in bash:

$LIBTOOL=/usr/bin/libtool

Now, it compiles sometime and gives another error (besides the errors that happens everytime there is a touch command in the compile script)
When it gives the error after a touch command, I just call ./buildlibvlc.sh again.

After a while, I get this:

autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: running: aclocal -I /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: running: aclocal -I /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: running: aclocal --force -I m4
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:20: warning: macro 'AM_PROG_LIBTOOL' not found in library
autoreconf: configure.in: tracing
autoreconf: configure.in: tracing
autoreconf: configure.ac: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf --include=/home/ssaguiar/libvlc-android-samples/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: configure.in: not using Libtool
autoreconf: running: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf --include=/home/ssaguiar/libvlc-android-samples/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf --include=/home/ssaguiar/libvlc-android-samples/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf --force
configure.in:20: error: possibly undefined macro: AM_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.ogg] Error 1
make: *** Waiting for unfinished jobs....
configure.ac:17: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.modplug] Error 1
configure.in:74: error: possibly undefined macro: AC_DISABLE_SHARED
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:75: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.in:76: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.a52] Error 1
configure.ac:14: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /home/ssaguiar/libvlc-android-samples/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.nfs] Error 1
contribs: make failed
'./vlc-android/compile.sh ' failed

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Can't compile libvlc

Postby Rémi Denis-Courmont » 05 Sep 2016 16:08

libtool is not installed, or it is too old.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Re: Can't compile libvlc

Postby ssaguiar » 05 Sep 2016 16:16

Libtool is installed.
It's version is: 2.4.2

in https://www.gnu.org/software/libtool/
latest version is 2.4.6

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Can't compile libvlc

Postby pecana » 06 Sep 2016 11:50

Wich version of the NDk are you using?

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Can't compile libvlc

Postby pecana » 06 Sep 2016 11:55

Sorry.. I saw you checkout a different TAG.. This never worked fro me too.
If you just clone the git and than compile it works... If you try to checkout a different tag it will tell you that you are on detached headers and it will never works...
You can see my port where i get errors when a change tag https://forum.videolan.org/viewtopic.php?f=32&t=134117

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Re: Can't compile libvlc

Postby ssaguiar » 06 Sep 2016 16:01

I have upgraded my ubuntu installation to ver 16 and got it compiled.

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Can't compile libvlc

Postby pecana » 06 Sep 2016 17:00

I have upgraded my ubuntu installation to ver 16 and got it compiled.
Where you able to checkout the 2.06 and compile it?

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Re: Can't compile libvlc

Postby ssaguiar » 06 Sep 2016 17:43

At this time I have compiled the example in sample repository as sugested.
I will try, now, to ocmpile it using the full libvlc, as in https://code.videolan.org/videolan/vlc-android.git
Will try to compile ver 2.06.

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Can't compile libvlc

Postby pecana » 06 Sep 2016 18:00

At this time I have compiled the example in sample repository as sugested.
I will try, now, to ocmpile it using the full libvlc, as in https://code.videolan.org/videolan/vlc-android.git
Will try to compile ver 2.06.
OK, i was able to compile libvlc cloning the git, but every time I tried to change tag it fails building


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests