Error while trying to compile vlc lib for Android

VLC for Android and Chrome OS specific usage questions
ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Error while trying to compile vlc lib for Android

Postby ssaguiar » 26 Aug 2016 14:08

I am experimenting problems to compile vlc lib for Android.
I have follow evrything as stated at https://wiki.videolan.org/AndroidCompile/

I am using Ubuntu 15
The gettext has been updated to version (0.19.8.1)

Can anybody gives me a clue on what do I need to do to compile it?

Thanks a lot


The error is:

./compile.sh -a armeabi-v7a
VLC source found
Configuring
ABI: armeabi-v7a
API: android-9
SYSROOT: /home/ssaguiar/android/android-studio/android-ndk-r11c//platforms/android-9/arch-arm
PATH: /home/ssaguiar/android/android-studio/android-ndk-r11c//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:/home/ssaguiar/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/ssaguiar/android/android-studio/android-sdk-linux//platform-tools:/home/ssaguiar/android/android-studio/android-sdk-linux//tools
CFLAGS: -g -O2 -fstrict-aliasing -funsafe-math-optimizations -mlong-calls
EXTRA_CFLAGS: -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/ssaguiar/android/android-studio/android-ndk-r11c//sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/ssaguiar/android/android-studio/android-ndk-r11c//sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
Building tools
You are ready to build VLC and its contribs
Building the contribs
Generating EGL pkg-config file
Generating GLESv2 pkg-config file
Guessing build system... x86_64-linux-gnu
Creating configuration file... config.mak
Bootstrap completed.
Run "make" to start compilation.

Other targets:
* make install same as "make"
* make prebuilt fetch and install prebuilt binaries
* make list list packages
* make fetch fetch required source tarballs
* make fetch-all fetch all source tarballs
* make distclean clean everything and undo bootstrap
* make mostlyclean clean everything except source tarballs
* make clean clean everything
* make package prepare prebuilt packages
* make help show this text
make: Nothing to be done for `fetch'.
mkdir -p -- /home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal && cd a52dec && autoreconf -fiv -I/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal
mkdir -p -- /home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal && cd libogg && autoreconf -fiv -I/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal
mkdir -p -- /home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal && cd libmad && autoreconf -fiv -I/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal
mkdir -p -- /home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal && cd libmodplug && autoreconf -fiv -I/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal
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/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: running: aclocal -I /home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: running: aclocal -I /home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: running: aclocal -I /home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
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.ac: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /home/ssaguiar/vlc-android/vlc/extras/tools/build/bin/autoconf --include=/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: configure.in: not using Libtool
autoreconf: running: /home/ssaguiar/vlc-android/vlc/extras/tools/build/bin/autoconf --include=/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/ssaguiar/vlc-android/vlc/extras/tools/build/bin/autoconf --include=/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/ssaguiar/vlc-android/vlc/extras/tools/build/bin/autoconf --include=/home/ssaguiar/vlc-android/vlc/contrib/arm-linux-androideabi/share/aclocal --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/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.ogg] Error 1
make: *** Waiting for unfinished jobs....
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/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.a52] Error 1
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/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.modplug] Error 1
configure.ac:65: 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/vlc-android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [.mad] Error 1
contribs: make failed

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

Re: Error while trying to compile vlc lib for Android

Postby ssaguiar » 26 Aug 2016 15:20

I have removed libtool and installed it again, using the latest version.

sudo apt-get purge libtool
Download it from official website https://www.gnu.org/software/libtool/
tar -xzvf "name of the tar_file"
./configure && make
sudo make install

Now, I get these errors:

autoreconf: running: aclocal -I m4 --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/ssaguiar/vlc-android/vlc/extras/tools/build/bin/autoconf --include=m4 --force
autoreconf: running: /home/ssaguiar/vlc-android/vlc/extras/tools/build/bin/autoheader --include=m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:46: installing 'autotools/compile'
configure.ac:23: installing 'autotools/config.guess'
configure.ac:23: installing 'autotools/config.sub'
configure.ac:27: installing 'autotools/install-sh'
configure.ac:27: installing 'autotools/missing'
parallel-tests: installing 'autotools/test-driver'
bin/Makefile.am: installing 'autotools/depcomp'
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

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

Re: Error while trying to compile vlc lib for Android

Postby ssaguiar » 26 Aug 2016 15:57

I removed all my vlc-android folder and cloned the github repository again.
In /vlc-android/vlc I edited configure.ac and added LT_INIT to the top of it.
Then I run 'aclocal' and 'autoconf'

I tried to compile again.

Now, the original errors are back (undefined macros).

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

Re: Error while trying to compile vlc lib for Android

Postby ssaguiar » 31 Aug 2016 15:44

Nobody has an answer?
Is this so hard to compile vlc for Android (and vlc lib)?


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 14 guests