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

Android Build Failed #888

Closed
manavchaudhary1 opened this issue Nov 28, 2023 · 1 comment
Closed

Android Build Failed #888

manavchaudhary1 opened this issue Nov 28, 2023 · 1 comment
Labels
android Affect Android platform question Further information is requested scripts Affect build scripts

Comments

@manavchaudhary1
Copy link

manavchaudhary1 commented Nov 28, 2023

Description
Android build failed with NDK version : 26.1.10909125

Expected behavior
Build should be completed without error

Current behavior
Build Failed

To Reproduce
Start build with NDK version 26.1.10909125

Environment

  • Platform: Linux
  • Architecture: x86-64
  • Version: v5.1
  • Source branch: main
  • Android Studio package version: android-studio-2022.3.1.22-linux.tar.gz
  • Android NDK version: 26.1.10909125

Logs

INFO: Using Android NDK v provided at /home/mac/Android/Sdk/ndk

INFO: Build options:

INFO: Building ffmpeg-kit react.native.v6.0.2-6-g80d6af6 library for Android: Tue Nov 28 20:39:37 IST 2023

INFO: Custom library 1 not detected

INFO: Downloading the source code of ffmpeg and external libraries.

DEBUG: Downloading gnu config source.

INFO: Cloning tag v20210814 from repository https://github.com/arthenica/gnu-config into local directory /home/mac/projects/git/ffmpeg-kit/.tmp/source/config

Cloning into '/home/mac/projects/git/ffmpeg-kit/.tmp/source/config'...
Note: switching to '805517123cbfe33d17c989a18e78c5789fab0437'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

INFO: gnu config downloaded successfully

DEBUG: Downloading library source: ffmpeg

DEBUG: Checking if ffmpeg is already downloaded at /home/mac/projects/git/ffmpeg-kit/src/ffmpeg

INFO: /home/mac/projects/git/ffmpeg-kit/src/ffmpeg directory not found

INFO: Cloning tag n6.0 from repository https://github.com/arthenica/FFmpeg into local directory /home/mac/projects/git/ffmpeg-kit/src/ffmpeg

Cloning into '/home/mac/projects/git/ffmpeg-kit/src/ffmpeg'...
Note: switching to 'ea3d24bbe3c58b171e55fe2151fc7ffaca3ab3d2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Updating files: 1% (144/8039)
Updating files: 2% (161/8039)
Updating files: 3% (242/8039)
Updating files: 3% (304/8039)
Updating files: 4% (322/8039)
Updating files: 5% (402/8039)
Updating files: 5% (456/8039)
Updating files: 6% (483/8039)
Updating files: 7% (563/8039)
Updating files: 7% (620/8039)
Updating files: 8% (644/8039)
Updating files: 9% (724/8039)
Updating files: 9% (795/8039)
Updating files: 10% (804/8039)
Updating files: 11% (885/8039)
Updating files: 12% (965/8039)
Updating files: 12% (976/8039)
Updating files: 13% (1046/8039)
Updating files: 14% (1126/8039)
Updating files: 14% (1144/8039)
Updating files: 15% (1206/8039)
Updating files: 16% (1287/8039)
Updating files: 16% (1309/8039)
Updating files: 17% (1367/8039)
Updating files: 18% (1448/8039)
Updating files: 18% (1456/8039)
Updating files: 19% (1528/8039)
Updating files: 20% (1608/8039)
Updating files: 20% (1620/8039)
Updating files: 21% (1689/8039)
Updating files: 22% (1769/8039)
Updating files: 22% (1793/8039)
Updating files: 23% (1849/8039)
Updating files: 24% (1930/8039)
Updating files: 24% (1966/8039)
Updating files: 25% (2010/8039)
Updating files: 26% (2091/8039)
Updating files: 26% (2132/8039)
Updating files: 27% (2171/8039)
Updating files: 28% (2251/8039)
Updating files: 28% (2300/8039)
Updating files: 29% (2332/8039)
Updating files: 30% (2412/8039)
Updating files: 30% (2445/8039)
Updating files: 31% (2493/8039)
Updating files: 32% (2573/8039)
Updating files: 32% (2607/8039)
Updating files: 33% (2653/8039)
Updating files: 34% (2734/8039)
Updating files: 34% (2777/8039)
Updating files: 35% (2814/8039)
Updating files: 36% (2895/8039)
Updating files: 36% (2938/8039)
Updating files: 37% (2975/8039)
Updating files: 38% (3055/8039)
Updating files: 38% (3114/8039)
Updating files: 39% (3136/8039)
Updating files: 40% (3216/8039)
Updating files: 40% (3286/8039)
Updating files: 41% (3296/8039)
Updating files: 42% (3377/8039)
Updating files: 43% (3457/8039)
Updating files: 43% (3459/8039)
Updating files: 44% (3538/8039)
Updating files: 45% (3618/8039)
Updating files: 45% (3643/8039)
Updating files: 46% (3698/8039)
Updating files: 47% (3779/8039)
Updating files: 47% (3825/8039)
Updating files: 48% (3859/8039)
Updating files: 49% (3940/8039)
Updating files: 49% (4007/8039)
Updating files: 50% (4020/8039)
Updating files: 51% (4100/8039)
Updating files: 52% (4181/8039)
Updating files: 52% (4182/8039)
Updating files: 53% (4261/8039)
Updating files: 53% (4336/8039)
Updating files: 54% (4342/8039)
Updating files: 55% (4422/8039)
Updating files: 55% (4494/8039)
Updating files: 56% (4502/8039)
Updating files: 57% (4583/8039)
Updating files: 57% (4634/8039)
Updating files: 58% (4663/8039)
Updating files: 59% (4744/8039)
Updating files: 59% (4796/8039)
Updating files: 60% (4824/8039)
Updating files: 61% (4904/8039)
Updating files: 61% (4938/8039)
Updating files: 62% (4985/8039)
Updating files: 63% (5065/8039)
Updating files: 63% (5077/8039)
Updating files: 64% (5145/8039)
Updating files: 64% (5216/8039)
Updating files: 65% (5226/8039)
Updating files: 66% (5306/8039)
Updating files: 66% (5363/8039)
Updating files: 67% (5387/8039)
Updating files: 68% (5467/8039)
Updating files: 68% (5491/8039)
Updating files: 69% (5547/8039)
Updating files: 69% (5617/8039)
Updating files: 70% (5628/8039)
Updating files: 71% (5708/8039)
Updating files: 71% (5743/8039)
Updating files: 72% (5789/8039)
Updating files: 73% (5869/8039)
Updating files: 73% (5872/8039)
Updating files: 74% (5949/8039)
Updating files: 74% (5997/8039)
Updating files: 75% (6030/8039)
Updating files: 76% (6110/8039)
Updating files: 76% (6140/8039)
Updating files: 77% (6191/8039)
Updating files: 78% (6271/8039)
Updating files: 78% (6275/8039)
Updating files: 79% (6351/8039)
Updating files: 79% (6408/8039)
Updating files: 80% (6432/8039)
Updating files: 81% (6512/8039)
Updating files: 81% (6551/8039)
Updating files: 82% (6592/8039)
Updating files: 83% (6673/8039)
Updating files: 83% (6688/8039)
Updating files: 84% (6753/8039)
Updating files: 84% (6815/8039)
Updating files: 85% (6834/8039)
Updating files: 86% (6914/8039)
Updating files: 86% (6934/8039)
Updating files: 87% (6994/8039)
Updating files: 87% (7070/8039)
Updating files: 88% (7075/8039)
Updating files: 89% (7155/8039)
Updating files: 89% (7206/8039)
Updating files: 90% (7236/8039)
Updating files: 91% (7316/8039)
Updating files: 91% (7324/8039)
Updating files: 92% (7396/8039)
Updating files: 92% (7449/8039)
Updating files: 93% (7477/8039)
Updating files: 94% (7557/8039)
Updating files: 94% (7581/8039)
Updating files: 95% (7638/8039)
Updating files: 95% (7715/8039)
Updating files: 96% (7718/8039)
Updating files: 97% (7798/8039)
Updating files: 97% (7858/8039)
Updating files: 98% (7879/8039)
Updating files: 99% (7959/8039)
Updating files: 99% (8010/8039)
Updating files: 100% (8039/8039)
Updating files: 100% (8039/8039), done.

INFO: ffmpeg library downloaded

DEBUG: Downloading library cpu-features

DEBUG: Downloading library source: cpu-features

DEBUG: Checking if cpu-features is already downloaded at /home/mac/projects/git/ffmpeg-kit/src/cpu-features

INFO: /home/mac/projects/git/ffmpeg-kit/src/cpu-features directory not found

INFO: Cloning tag v0.8.0 from repository https://github.com/arthenica/cpu_features into local directory /home/mac/projects/git/ffmpeg-kit/src/cpu-features

Cloning into '/home/mac/projects/git/ffmpeg-kit/src/cpu-features'...
Note: switching to '936b9ab5515dead115606559502e3864958f7f6e'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

INFO: cpu-features library downloaded

INFO: Starting new build for arm-v7a on API level 24 at Tue Nov 28 20:41:00 IST 2023

INFO: Enabled library cpu-features will be built

DEBUG: Checking if cpu-features is already built and installed at /home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/cpu-features

INFO: /home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/cpu-features directory not found

INFO: Flags detected for cpu-features: already installed=0, rebuild requested by user=, will be rebuilt due to dependency update=

grep: /home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/zlib.h: No such file or directory

INFO: Building cpu-features for arm-linux-androideabi with the following environment variables

SHELL=/bin/bash
GPL_ENABLED=no
WSL2_GUI_APPS_ENABLED=1
WSL_DISTRO_NAME=Ubuntu
WT_SESSION=784c6f81-6a9e-464e-9733-e17842529ef1
DETECTED_NDK_VERSION=
INSTALL_PKG_CONFIG_DIR=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/pkgconfig
NAME=LAPTOP-PIONEER
PWD=/home/mac/projects/git/ffmpeg-kit
LOGNAME=mac
CXX=armv7a-linux-androideabi24-clang++
CXXFLAGS=-std=c++11 -fno-exceptions -fno-rtti -Os -ffunction-sections -fdata-sections
TOOLCHAIN_ARCH=arm
LDFLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -Wl,--gc-sections,--icf=safe -Os -ffunction-sections -fdata-sections -lc -lm -ldl -llog -L/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/arm-linux-androideabi/lib -L/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/24 -L/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/lib -Wl,--hash-style=both -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libunwind.a
HOME=/home/mac
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/1634_interop
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:
WAYLAND_DISPLAY=wayland-0
ZLIB_PACKAGE_CONFIG_PATH=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/pkgconfig/zlib.pc
FFMPEG_KIT_BUILD_TYPE=android
API=24
LD=lld
PKG_CONFIG_LIBDIR=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/pkgconfig
SED_INLINE=sed -i
LESSCLOSE=/usr/bin/lesspipe %s %s
TERM=xterm-256color
TOOLCHAIN=linux-x86_64
LESSOPEN=| /usr/bin/lesspipe %s
USER=mac
LIB_INSTALL_BASE=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm
AR=llvm-ar
AS=armv7a-linux-androideabi24-clang
ORIGINAL_API=24
ARCH=arm-v7a
DISPLAY=:0
SHLVL=3
NM=llvm-nm
ANDROID_SDK_ROOT=/home/mac/Android/Sdk
FFMPEG_KIT_TMPDIR=/home/mac/projects/git/ffmpeg-kit/.tmp
XDG_RUNTIME_DIR=/run/user/1000/
WSLENV=WT_SESSION:WT_PROFILE_ID:
BASEDIR=/home/mac/projects/git/ffmpeg-kit
ANDROID_NDK_ROOT=/home/mac/Android/Sdk/ndk
STRIP=llvm-strip
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files/Python311/Scripts/:/mnt/c/Program Files/Python311/:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/System32/Wbem:/mnt/c/windows/System32/WindowsPowerShell/v1.0/:/mnt/c/windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Users/manav/AppData/Local/Programs/Python/Python310:/mnt/c/Users/manav/AppData/Local/Programs/Python/Python310/Scripts:/mnt/c/MinGW/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/manav/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/manav/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/manav/AppData/Local/spicetify:/mnt/c/adb:/mnt/c/Program Files/MySQL/MySQL Server 8.0/bin:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/PowerShell/7/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/Java/jdk-21/bin:/mnt/c/Program Files/MySQL/MySQL Shell 8.0/bin/:/mnt/c/Users/manav/AppData/Local/Programs/Eclipse Adoptium/jdk-17.0.8.7-hotspot/bin:/mnt/c/Users/manav/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/manav/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/windows/system32:/mnt/c/Users/manav/AppData/Local/spicetify:/mnt/c/Users/manav/AppData/Local/GitHubDesktop/bin:/mnt/c/Program Files/JetBrains/PyCharm Community Edition 2023.2.2/bin:/mnt/c/Program Files/CMake/bin:/snap/bin:/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin
CC=armv7a-linux-androideabi24-clang
CFLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -DFFMPEG_KIT_ARM_V7A -std=c99 -Wno-unused-function -fstrict-aliasing -DANDROID_NDK -fPIC -DANDROID -D__ANDROID__ -D__ANDROID_MIN_SDK_VERSION__=24 -Os -ffunction-sections -fdata-sections
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HOSTTYPE=x86_64
PULSE_SERVER=unix:/mnt/wslg/PulseServer
WT_PROFILE_ID={51855cb2-8cce-5362-8f54-464b92b32386}
RANLIB=llvm-ranlib
OLDPWD=/home/mac/projects/git
_=/usr/bin/env

INFO: System information

INFO: Linux LAPTOP-PIONEER 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux


CMake Error at /home/mac/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:130 (message):
Could not find toolchain file:
/home/mac/Android/Sdk/ndk/build/cmake/android.toolchain.cmake
Call Stack (most recent call first):
CMakeLists.txt:9 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

INFO: Using Android NDK v provided at /home/mac/Android/Sdk/ndk

INFO: Build options:

INFO: Building ffmpeg-kit react.native.v6.0.2-6-g80d6af6 library for Android: Tue Nov 28 21:00:06 IST 2023

INFO: Custom library 1 not detected

INFO: Downloading the source code of ffmpeg and external libraries.

DEBUG: Downloading gnu config source.

INFO: gnu config already downloaded. Source folder found at /home/mac/projects/git/ffmpeg-kit/.tmp/source/config

DEBUG: Downloading library source: ffmpeg

DEBUG: Checking if ffmpeg is already downloaded at /home/mac/projects/git/ffmpeg-kit/src/ffmpeg

INFO: ffmpeg library already downloaded

INFO: ffmpeg already downloaded. Source folder found at /home/mac/projects/git/ffmpeg-kit/src/ffmpeg

DEBUG: Downloading library cpu-features

DEBUG: Downloading library source: cpu-features

DEBUG: Checking if cpu-features is already downloaded at /home/mac/projects/git/ffmpeg-kit/src/cpu-features

INFO: cpu-features library already downloaded

INFO: cpu-features already downloaded. Source folder found at /home/mac/projects/git/ffmpeg-kit/src/cpu-features

INFO: Starting new build for arm-v7a on API level 24 at Tue Nov 28 21:00:07 IST 2023

INFO: Enabled library cpu-features will be built

DEBUG: Checking if cpu-features is already built and installed at /home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/cpu-features

INFO: /home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/cpu-features directory not found

INFO: Flags detected for cpu-features: already installed=0, rebuild requested by user=, will be rebuilt due to dependency update=


INFO: Building cpu-features for arm-linux-androideabi with the following environment variables

SHELL=/bin/bash
GPL_ENABLED=no
WSL2_GUI_APPS_ENABLED=1
WSL_DISTRO_NAME=Ubuntu
WT_SESSION=784c6f81-6a9e-464e-9733-e17842529ef1
DETECTED_NDK_VERSION=
INSTALL_PKG_CONFIG_DIR=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/pkgconfig
NAME=LAPTOP-PIONEER
PWD=/home/mac/projects/git/ffmpeg-kit
LOGNAME=mac
CXX=armv7a-linux-androideabi24-clang++
CXXFLAGS=-std=c++11 -fno-exceptions -fno-rtti -Os -ffunction-sections -fdata-sections
TOOLCHAIN_ARCH=arm
LDFLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -Wl,--gc-sections,--icf=safe -Os -ffunction-sections -fdata-sections -lc -lm -ldl -llog -L/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/arm-linux-androideabi/lib -L/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/24 -L/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/lib -Wl,--hash-style=both -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libunwind.a
HOME=/home/mac
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/1634_interop
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:
WAYLAND_DISPLAY=wayland-0
ZLIB_PACKAGE_CONFIG_PATH=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/pkgconfig/zlib.pc
FFMPEG_KIT_BUILD_TYPE=android
API=24
LD=lld
PKG_CONFIG_LIBDIR=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm/pkgconfig
SED_INLINE=sed -i
LESSCLOSE=/usr/bin/lesspipe %s %s
TERM=xterm-256color
TOOLCHAIN=linux-x86_64
LESSOPEN=| /usr/bin/lesspipe %s
USER=mac
LIB_INSTALL_BASE=/home/mac/projects/git/ffmpeg-kit/prebuilt/android-arm
AR=llvm-ar
AS=armv7a-linux-androideabi24-clang
ORIGINAL_API=24
ARCH=arm-v7a
DISPLAY=:0
SHLVL=3
NM=llvm-nm
ANDROID_TOOLCHAIN_FILE=/home/mac/Android/Sdk/ndk/26.1.10.909125/cmake/android.toolchain.cmake
ANDROID_SDK_ROOT=/home/mac/Android/Sdk
FFMPEG_KIT_TMPDIR=/home/mac/projects/git/ffmpeg-kit/.tmp
XDG_RUNTIME_DIR=/run/user/1000/
WSLENV=WT_SESSION:WT_PROFILE_ID:
BASEDIR=/home/mac/projects/git/ffmpeg-kit
ANDROID_NDK_ROOT=/home/mac/Android/Sdk/ndk
STRIP=llvm-strip
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files/Python311/Scripts/:/mnt/c/Program Files/Python311/:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/System32/Wbem:/mnt/c/windows/System32/WindowsPowerShell/v1.0/:/mnt/c/windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Users/manav/AppData/Local/Programs/Python/Python310:/mnt/c/Users/manav/AppData/Local/Programs/Python/Python310/Scripts:/mnt/c/MinGW/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/manav/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/manav/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/manav/AppData/Local/spicetify:/mnt/c/adb:/mnt/c/Program Files/MySQL/MySQL Server 8.0/bin:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/PowerShell/7/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/Java/jdk-21/bin:/mnt/c/Program Files/MySQL/MySQL Shell 8.0/bin/:/mnt/c/Users/manav/AppData/Local/Programs/Eclipse Adoptium/jdk-17.0.8.7-hotspot/bin:/mnt/c/Users/manav/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/manav/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/windows/system32:/mnt/c/Users/manav/AppData/Local/spicetify:/mnt/c/Users/manav/AppData/Local/GitHubDesktop/bin:/mnt/c/Program Files/JetBrains/PyCharm Community Edition 2023.2.2/bin:/mnt/c/Program Files/CMake/bin:/snap/bin:/home/mac/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin
CC=armv7a-linux-androideabi24-clang
CFLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -DFFMPEG_KIT_ARM_V7A -std=c99 -Wno-unused-function -fstrict-aliasing -DANDROID_NDK -fPIC -DANDROID -D__ANDROID__ -D__ANDROID_MIN_SDK_VERSION__=24 -Os -ffunction-sections -fdata-sections
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HOSTTYPE=x86_64
PULSE_SERVER=unix:/mnt/wslg/PulseServer
WT_PROFILE_ID={51855cb2-8cce-5362-8f54-464b92b32386}
RANLIB=llvm-ranlib
OLDPWD=/home/mac/projects/git
_=/usr/bin/env

INFO: System information

INFO: Linux LAPTOP-PIONEER 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux


CMake Error at /home/mac/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:130 (message):
Could not find toolchain file:
/home/mac/Android/Sdk/ndk/build/cmake/android.toolchain.cmake
Call Stack (most recent call first):
CMakeLists.txt:9 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

@Javernaut
Copy link

@manavchaudhary1 You have to specify an exact NDK distribution instead of the root directory where NDKs are installed.

image

@tanersener tanersener added question Further information is requested android Affect Android platform scripts Affect build scripts labels Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Affect Android platform question Further information is requested scripts Affect build scripts
Projects
None yet
Development

No branches or pull requests

3 participants