Open OmidNejadabbasi opened 1 year ago
windows android seems fail for a long time... it's path problem. Use msys2 for a try?
ffmpeg doesn't use a standard build system, and the android triplets are tested with linux hosts. You may need to give WSL a try instead until this port is fixed.
@dg0yt I installed ndk on WSL and after running the same command on wsl vcpkg it gave this error :
Computing installation plan...
The following packages will be built and installed:
ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:arm64-android -> 5.1.2#9
* pkgconf:arm64-android -> 1.8.0#5
* vcpkg-cmake:arm64-android -> 2023-05-04
* vcpkg-cmake-get-vars:arm64-android -> 2023-03-02
* vcpkg-pkgconfig-get-modules:arm64-android -> 2023-09-06
* vcpkg-tool-meson:arm64-android -> 0.63
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet arm64-android...
error: while detecting compiler information:
The log file content at "/home/omidn/vcpkg/buildtrees/detect_compiler/stdout-arm64-android.log" is:
-- Configuring arm64-android-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: /home/omidn/vcpkg/downloads/tools/cmake-3.27.1-linux/cmake-3.27.1-linux-x86_64/bin/cmake /home/omidn/vcpkg/scripts/detect_compiler -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/omidn/vcpkg/packages/detect_compiler_arm64-android -DCMAKE_MAKE_PROGRAM=/home/omidn/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/omidn/vcpkg/scripts/toolchains/android.cmake -DVCPKG_TARGET_TRIPLET=arm64-android -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/home/omidn/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=static -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=arm64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/home/omidn/vcpkg -DZ_VCPKG_ROOT_DIR=/home/omidn/vcpkg -D_VCPKG_INSTALLED_DIR=/home/omidn/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -DANDROID_ABI=arm64-v8a
Working Directory: /home/omidn/vcpkg/buildtrees/detect_compiler/arm64-android-rel
Error code: 1
See logs for more information:
/home/omidn/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-CMakeCache.txt.log
/home/omidn/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-out.log
/home/omidn/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:344 (vcpkg_execute_required_process)
scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
scripts/ports.cmake:147 (include)
error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.
@dg0yt I installed ndk on WSL and after running the same command on wsl vcpkg it gave this error :
Computing installation plan... The following packages will be built and installed: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:arm64-android -> 5.1.2#9 * pkgconf:arm64-android -> 1.8.0#5 * vcpkg-cmake:arm64-android -> 2023-05-04 * vcpkg-cmake-get-vars:arm64-android -> 2023-03-02 * vcpkg-pkgconfig-get-modules:arm64-android -> 2023-09-06 * vcpkg-tool-meson:arm64-android -> 0.63 Additional packages (*) will be modified to complete this operation. Detecting compiler hash for triplet arm64-android... error: while detecting compiler information: The log file content at "/home/omidn/vcpkg/buildtrees/detect_compiler/stdout-arm64-android.log" is: -- Configuring arm64-android-rel CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: /home/omidn/vcpkg/downloads/tools/cmake-3.27.1-linux/cmake-3.27.1-linux-x86_64/bin/cmake /home/omidn/vcpkg/scripts/detect_compiler -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/omidn/vcpkg/packages/detect_compiler_arm64-android -DCMAKE_MAKE_PROGRAM=/home/omidn/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/omidn/vcpkg/scripts/toolchains/android.cmake -DVCPKG_TARGET_TRIPLET=arm64-android -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/home/omidn/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=static -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=arm64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/home/omidn/vcpkg -DZ_VCPKG_ROOT_DIR=/home/omidn/vcpkg -D_VCPKG_INSTALLED_DIR=/home/omidn/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -DANDROID_ABI=arm64-v8a Working Directory: /home/omidn/vcpkg/buildtrees/detect_compiler/arm64-android-rel Error code: 1 See logs for more information: /home/omidn/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-CMakeCache.txt.log /home/omidn/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-out.log /home/omidn/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-err.log Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:344 (vcpkg_execute_required_process) scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake) scripts/ports.cmake:147 (include) error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.
/home/omidn/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-out.log
-- The C compiler identification is unknown -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- Check for working C compiler: /Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - broken -- Configuring incomplete, errors occurred!
Android ndk need to be r25... r26 is not working now. And it seems your android ndk broken. Test with other packages
@LilyWangLL It's really a bug for ffmpeg on windows. I found it last year.
@LeenHawk Version 25.2.9519653 of ndk had the same issue. "clang is broken"
have you had any successful build on windows for android ?
@LeenHawk Version 25.2.9519653 of ndk had the same issue. "clang is broken"
have you had any successful build on windows for android ?
emm,I have successfully built yesterday… I’m sure that your ndk has something wrong on wsl.
@LeenHawk Version 25.2.9519653 of ndk had the same issue. "clang is broken"
have you had any successful build on windows for android ?
Make sure you can build some other package like gsl…
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Adding ffmpeg CI testing for android in #39703.
Package: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:arm64-android -> 5.1.2#9
Host Environment
To Reproduce
vcpkg install --host-triplet=arm64-android ffmpeg
Failure logsC:\Users\omidne\.vcpkg-clion\vcpkg\buildtrees\ffmpeg\build-arm64-android-rel-err.log
``` ./build.sh: line 2: $'\r': command not found ./build.sh: line 3: set: - : invalid option set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] ./build.sh: line 4: $'\r': command not found ./build.sh: line 6: $'\r': command not found ./build.sh: line 8: $'\r': command not found ./build.sh: line 9: syntax error near unexpected token `$'{\r'' ./build.sh: line 9: `cygpath() { ' ```