【问题标题】:ffmpeg Build Output is not showing?ffmpeg 构建输出未显示?
【发布时间】:2023-03-14 08:23:01
【问题描述】:

我最近几天正在研究 Ffmpeg,但无法获得任何有价值的输出。 之后我按照以下教程进行操作:-
http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/
根据那个教程。完成后,您应该能够找到一个文件夹 $NDK/sources/ffmpeg-2.0.1/android,其中包含 arm/libarm/include 文件夹。 但我没有在$NDK/sources/ffmpeg-2.0.1/android 中获得构建输出。 请任何人帮助我。

谢谢。

【问题讨论】:

标签: android ffmpeg


【解决方案1】:

在浪费了我的 2 天之后,我已经成功地为这个下面的链接编译了这个 挺好的。

http://www.packtpub.com/sites/default/files/downloads/Developing_Multimedia_Applications_with_NDK.pdf

【讨论】:

    【解决方案2】:

    在您的 build_android.sh 中,只需将 ./configure 命令行设为一个长字符串,而不是将其分解。每个选项之间的空格会影响解析器。

    #!/bin/bash
    NDK=/home/hwlab/android-ndk-r9d
    SYSROOT=$NDK/platforms/android-19/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64
    function build_one
    {
        ./configure --prefix=$PREFIX --enable-shared --disable-static --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-avdevice --disable-doc --disable-symver --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- --target-os=linux --arch=arm --enable-cross-compile --sysroot=$SYSROOT --extra-cflags="-Os -fpic $ADDI_CFLAGS" --extra-ldflags="$ADDI_LDFLAGS" $ADDITIONAL_CONFIGURE_FLAG
        make clean
        make
        make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU 
    ADDI_CFLAGS="-marm"
    build_one
    

    【讨论】:

      猜你喜欢
      • 2021-11-20
      • 2013-06-18
      • 2017-09-20
      • 2021-12-01
      • 2020-08-11
      • 2013-04-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多