编译Android的VLC错误

时间:2014-07-17 06:59:29

标签: android vlc

当我根据此page编译VLC for Android时,请执行以下步骤:

  

sh compile.sh

我收到此错误:

For an ARMv6 device without FPU:
$ export NO_FPU=1
For an ARMv5 device:
$ export NO_ARMV6=1

    If you plan to use a release build, run 'compile.sh release'
    VLC source found
    Building tools
    ./bootstrap: line 63: [: 6b: integer expression expected
    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-redhat-linux
    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: Nothing to be done for `fetch'.
    mkdir -p -- /home/heda/adt-bundle/android/vlc/contrib/arm-linux-androideabi/share/aclocal && cd a52dec && autoreconf -fiv -I/home/heda/adt-bundle/android/vlc/contrib/arm-linux-androideabi/share/aclocal
    autoreconf: Entering directory `.'
    autoreconf: configure.in: not using Gettext
    autoreconf: running: aclocal -I /home/heda/adt-bundle/android/vlc/contrib/arm-linux-androideabi/share/aclocal --force 
    aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
    autoreconf: configure.in: tracing
    autoreconf: configure.in: not using Libtool
    autoreconf: running: /home/heda/adt-bundle/android/vlc/extras/tools/build/bin/autoconf --include=/home/heda/adt-bundle/android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
    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/heda/adt-bundle/android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
    make: *** [.a52] Error 1

2 个答案:

答案 0 :(得分:5)

我使用的是Ubuntu 13.04,在Ubuntu 14.04中重新编译后,错误消失了。我想这是因为在13.04中使用apt-get update无法将autotools更新到最新版本。

答案 1 :(得分:3)

安装不同的软件包时发生了类似的事情。解决方法是使用以下内容安装libtool

$ sudo apt-get install libtool

然后运行:

$ ./auto_gen.sh

然后照常进行。