VLC for Android的编译失败

时间:2011-09-12 08:42:34

标签: android compilation vlc

我正在尝试使用以下说明http://wiki.videolan.org/AndroidCompile编译vlc。 我使用git获取vlc源,但是当我正在执行下一个命令时:

cd extras/contrib

./bootstrap -t arm-eabi -d android

我收到了这个错误:

[contrib] No install dir specified, using '/android-sdk-mac_x86/vlc-android/extras/contrib/hosts/arm-eabi'
[contrib] *****************************************************************
[contrib] * If you need contribs with all debug information, run this     *
[contrib] * line and compile the libraries on your own.                   *
[contrib] * CONTRIBS_RELEASE=no ./bootstrap                               *
[contrib] *****************************************************************
[contrib] Using 1 processor(s)

当我进行下一步'make'时,我得到了以下失败;

make -C build-src tools
make[1]: Nothing to be done for `tools'.
make -C build-src
(cd zlib; CC="arm-linux-androideabi-gcc --sysroot=/android-ndk-r5b//platforms/android-9/arch-arm" CXX="arm-linux-androideabi-g++ --sysroot=/android-ndk-r5b//platforms/android-9/arch-arm" LD="arm-linux-androideabi-ld" RANLIB="arm-linux-androideabi-ranlib" AR="arm-linux-androideabi-ar" STRIP="arm-linux-androideabi-strip" ./configure --prefix=/android-sdk-mac_x86/vlc-android/extras/contrib/hosts/arm-eabi --static && make install)
Building static library libz.a version 1.2.5 with arm-linux-androideabi-gcc --sysroot=/android-ndk-r5b//platforms/android-9/arch-arm.
Checking for off64_t... No.
Checking for fseeko... No.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf().
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
arm-linux-androideabi-gcc --sysroot=/android-ndk-r5b//platforms/android-9/arch-arm -I/android-sdk-mac_x86/vlc-android/extras/contrib/hosts/arm-eabi/include  -DNDEBUG -D__STDC_VERSION__=199901L -I/android-ndk-r5b//sources/cxx-stl/gnu-libstdc++/include -I/android-ndk-r5b//sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -isystem /android-sdk-mac_x86/vlc-android/extras/contrib/hosts/arm-eabi/include -I/android-ndk-r5b//platforms/android-9/arch-arm/usr/include -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -I/android-sdk-mac_x86/vlc-android/extras/contrib/hosts/arm-eabi/include  -DNDEBUG -D__STDC_VERSION__=199901L -I/android-ndk-r5b//sources/cxx-stl/gnu-libstdc++/include -I/android-ndk-r5b//sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -isystem /android-sdk-mac_x86/vlc-android/extras/contrib/hosts/arm-eabi/include -I/android-ndk-r5b//platforms/android-9/arch-arm/usr/include  -c -o adler32.o adler32.c
make[2]: arm-linux-androideabi-gcc: No such file or directory
make[2]: *** [adler32.o] Error 1
make[1]: *** [.zlib] Error 2
make: *** [using-src] Error 2
任何人都可以帮忙吗?我正在使用mac OS X 10.6.6

TNX

2 个答案:

答案 0 :(得分:0)

鉴于之前的Linux CLI经验,我能告诉您的最好的事情是,您的工具链看起来并不完全初始化,需要一些设置。下面是一个文档初始化MAC构建环境的链接:

http://source.android.com/source/initializing.html

答案 1 :(得分:0)

您可能应该正确设置NDK安装。

  1. 下载最新的Android NDK。

  2. 解压缩并将提取的“android-ndk-r6”目录移动到“/ Applications”,最后得到“/ Applications / android-ndk-r6”。

  3. 编辑“〜/ .profile”添加以下内容: export ANDROID_NDK = / Applications / android-ndk-r5b export PATH = $ PATH:$ ANDROID_NDK:$ ANDROID_NDK / toolchains / arm-linux-androideabi-4.4.3 / prebuilt / darwin-x86 / bin

  4. PATH是解决这类问题的关键。因为它可以找到并使用“arm-linux-androideabi-gcc”。

    请参阅此网站。 http://www.doitscared.com/632/eclipse-indigo-for-android-development-on-mac-os-x-snow-leopard/