Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not compile the file compile-ffmpeg.sh #31

Closed
tubeber opened this issue Jun 16, 2014 · 3 comments
Closed

I can not compile the file compile-ffmpeg.sh #31

tubeber opened this issue Jun 16, 2014 · 3 comments
Labels

Comments

@tubeber
Copy link

tubeber commented Jun 16, 2014

The error is 'You need the NDKr9 or later', but my ndk version is r9c.
And I have used the version r9d, the same error occurred.
What do I lack? Thanks!

@bbcallen
Copy link
Contributor

Did you set env var ANDROID_NDK correctly?
The script check version in $ANDROID_NDK/RELEASE.TXT

Or, remove code below in compile-ffmpeg.sh

# try to detect NDK version
FF_NDK_REL=$(grep -o '^r[0-9]*.*' $ANDROID_NDK/RELEASE.TXT 2>/dev/null|cut -b2-)
case "$FF_NDK_REL" in
    9?*)
        # 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$FF_NDK_REL detected"
        else
            echo "You need the NDKr9 or later"
            exit 1
        fi
    ;;
    7|8|*)
        echo "You need the NDKr9 or later"
        exit 1
    ;;
esac

@tubeber
Copy link
Author

tubeber commented Jun 16, 2014

My operating system is Win7 with 60bit and I have set env var ANDROID_NDK as '/D/Android/android-ndk-r9d', is it not correctly?

@bbcallen
Copy link
Contributor

I don't have a windows environment for the test.
There must be something wrong in the code I pasted above.
Remove that code, and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant