bilibili开源ffmpeg编译报错

来源:互联网 发布:淘宝新店怎么做推广 编辑:程序博客网 时间:2024/05/21 08:49
1.如果是使用ndk-android-r15b:请修改ijkpayer-android/android/contrib/tools/do-detect-en.vh文件。
源文件如下:
#! /usr/bin/env bash## Copyright (C) 2013-2014 Zhang Rui <bbcallen@gmail.com>## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at##      http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.## This script is based on projects below# https://github.com/yixia/FFmpeg-Android# http://git.videolan.org/?p=vlc-ports/android.git;a=summary#--------------------set -eUNAME_S=$(uname -s)UNAME_SM=$(uname -sm)echo "build on $UNAME_SM"echo "ANDROID_NDK=$ANDROID_NDK"if [ -z "$ANDROID_NDK" ]; then    echo "You must define ANDROID_NDK before starting."    echo "They must point to your NDK directories."    echo ""    exit 1fi# try to detect NDK versionexport IJK_GCC_VER=4.9export IJK_GCC_64_VER=4.9export IJK_MAKE_TOOLCHAIN_FLAGS=export IJK_MAKE_FLAG=export IJK_NDK_REL=$(grep -o '^r[0-9]*.*' $ANDROID_NDK/RELEASE.TXT 2>/dev/null | sed 's/[[:space:]]*//g' | cut -b2-)case "$IJK_NDK_REL" in    10e*)        # we don't use 4.4.3 because it doesn't handle threads correctly.        if test -d ${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.8        # if gcc 4.8 is present, it's there for all the archs (x86, mips, arm)        then            echo "NDKr$IJK_NDK_REL detected"            case "$UNAME_S" in                Darwin)                    export IJK_MAKE_TOOLCHAIN_FLAGS="$IJK_MAKE_TOOLCHAIN_FLAGS --system=darwin-x86_64"                ;;                CYGWIN_NT-*)                    export IJK_MAKE_TOOLCHAIN_FLAGS="$IJK_MAKE_TOOLCHAIN_FLAGS --system=windows-x86_64"                ;;            esac        else            echo "You need the NDKr10e or later"            exit 1        fi    ;;    *)        IJK_NDK_REL=$(grep -o '^Pkg\.Revision.*=[0-9]*.*' $ANDROID_NDK/source.properties 2>/dev/null | sed 's/[[:space:]]*//g' | cut -d "=" -f 2)        echo "IJK_NDK_REL=$IJK_NDK_REL"        case "$IJK_NDK_REL" in            11*|12*|13*|14*)                if test -d ${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.9                then                    echo "NDKr$IJK_NDK_REL detected"                else                    echo "You need the NDKr10e or later"                    exit 1                fi            ;;            *)                echo "You need the NDKr10e or later"                exit 1            ;;        esac    ;;esaccase "$UNAME_S" in    Darwin)        export IJK_MAKE_FLAG=-j`sysctl -n machdep.cpu.thread_count`    ;;    CYGWIN_NT-*)        IJK_WIN_TEMP="$(cygpath -am /tmp)"        export TEMPDIR=$IJK_WIN_TEMP/        echo "Cygwin temp prefix=$IJK_WIN_TEMP/"    ;;esac
11*|12*|13*|14* 改 
11*|12*|13*|14*|15*
保存ok。
2.error:无法创建目录
打开 do-compile-ffmpeg.sh 的 anroid-9 ——————》android-14
 
原创粉丝点击