tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

TOOLCHAIN test is missing from build/android-x265.sh #651

Closed juha-h closed 3 years ago

juha-h commented 3 years ago

Description TOOCHAIN test is missing from build/android-x265.sh

Expected behavior If not defined, I would expect an error message like

if [[ -z ${TOOLCHAIN} ]]; then
    echo -e "(*)  TOOLCHAIN not defined\n"
    exit 1
fi

Current behavior

The CMAKE_C_COMPILER:

    /opt/Android/ndk/21.1.6352462//toolchains/llvm/prebuilt//bin/aarch64-linux-android24-clang

  is not a full path to an existing compiler tool.

Screenshots If applicable, add screenshots to help explain your problem.

Logs Post logs here or paste them to Ghostbin and insert the link here.

Environment

Other Add any other context about the problem here.

tanersener commented 3 years ago

Why should we do that? TOOLCHAIN is defined in android.sh, at this line. And it is not the only environment variable used by build scripts under the build folder. If we start checking each variable set by top-level scripts we'll have a very long check list at the beginning of each build script, which I believe is unnecessary.

juha-h commented 3 years ago

Fine, I was building only x265 and therefore met the issue.