2014-07-17 48 views
4

當我根據這個page編譯VLC的Android,在步驟:編譯VLC的誤差爲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 
+0

一些Linux發行版自帶幾十年前的libtool,嘗試從系統中刪除這個內置lib,然後再次運行'sh compile.sh',構建腳本將下載最新版本,然後繼續編譯。 – yorkw

回答

3

類似的事情發生了在安裝不同的包時給我。此修復程序是與安裝libtool

$ sudo apt-get install libtool 

然後運行:

$ ./auto_gen.sh 

然後正常進行。

5

我在使用Ubuntu 13.04,並在Ubuntu 14.04中重新編譯之後,錯誤消失了。我想這是因爲autotools無法使用13.04中的apt-get update更新到最新版本。

+2

如果它解決了問題,這是一個有效的答案。它可能不是最好的,最普遍的或唯一的答案,但它是有效的。 – JasonMArcher

+1

我可以證實這確實可以解決問題。我無法找出另一種解決方案。 –