microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.22k stars 6.4k forks source link

[tesseract:arm64-android] Build error #34825

Closed RDCH106 closed 11 months ago

RDCH106 commented 1 year ago

Package: tesseract:arm64-android -> 5.3.1

Host Environment

To Reproduce

vcpkg install tesseract --triplet arm64-android

Failure logs

-- Using cached tesseract-ocr-tesseract-5.3.1.tar.gz.
-- Cleaning sources at C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/compiler/vcpkg/downloads/tesseract-ocr-tesseract-5.3.1.tar.gz
-- Applying patch fix-depend-libarchive.patch
-- Applying patch fix_static_link_icu.patch
-- Using source at C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean
-- Configuring arm64-android
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: C:/compiler/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
    Working Directory: C:/compiler/vcpkg/buildtrees/tesseract/arm64-android-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-dbg-CMakeCache.txt.log
      C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-rel-CMakeCache.txt.log
      C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
  ports/tesseract/portfile.cmake:20 (vcpkg_cmake_configure)
  scripts/ports.cmake:147 (include)
C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-dbg-CMakeCache.txt.log > _See Additional context section_
C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-rel-CMakeCache.txt.log > _See Additional context section_
C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-out.log ``` [1/2] "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir "../../arm64-android-dbg" "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/compiler/vcpkg/packages/tesseract_arm64-android/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DBUILD_TRAINING_TOOLS=OFF" "-DUSE_SYSTEM_ICU=True" "-DCMAKE_REQUIRE_FIND_PACKAGE_LibArchive=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_Leptonica=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ON" "-DLeptonica_DIR=YES" "-DSW_BUILD=OFF" "-DCMAKE_MAKE_PROGRAM=C:/compiler/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/compiler/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=C:/compiler/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=C:/compiler/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/compiler/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a" FAILED: ../../arm64-android-dbg/CMakeCache.txt "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir "../../arm64-android-dbg" "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/compiler/vcpkg/packages/tesseract_arm64-android/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DBUILD_TRAINING_TOOLS=OFF" "-DUSE_SYSTEM_ICU=True" "-DCMAKE_REQUIRE_FIND_PACKAGE_LibArchive=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_Leptonica=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ON" "-DLeptonica_DIR=YES" "-DSW_BUILD=OFF" "-DCMAKE_MAKE_PROGRAM=C:/compiler/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/compiler/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=C:/compiler/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=C:/compiler/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/compiler/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a" -- Setting policy CMP0091 to NEW -- The C compiler identification is Clang 14.0.7 -- The CXX compiler identification is Clang 14.0.7 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Users/rdecelis/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Users/rdecelis/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring tesseract version 5.3.1... -- IPO / LTO not supported: -- CMAKE_SYSTEM_PROCESSOR= -- LTO build is not supported on arm/RBPi. -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Found TIFF: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libtiff.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libtiffd.a (found version "4.5.0") -- Found LibLZMA: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/liblzma.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/liblzma.a (found version "5.4.3") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Found JPEG: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libjpeg.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libjpeg.a (found version "62") -- Found ZLIB: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libz.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libz.a (found version "1.2.13") -- Found LibArchive: C:/compiler/vcpkg/installed/arm64-android/debug/lib/libarchive.a (found version "3.6.2") -- Found BZip2: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libbz2.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libbz2d.a (found version "1.0.8") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Performing Test Iconv_IS_BUILT_IN -- Performing Test Iconv_IS_BUILT_IN - Failed -- Found Iconv: C:/compiler/vcpkg/installed/arm64-android/debug/lib/libiconv.a (found version "1.17") -- Found OpenSSL: C:/compiler/vcpkg/installed/arm64-android/debug/lib/libcrypto.a (found version "3.1.1") -- Found OpenSSL: C:/compiler/vcpkg/installed/arm64-android/debug/lib/libcrypto.a (found suitable version "3.1.1", minimum required is "3") -- Found ZLIB: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libz.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libz.a (found suitable version "1.2.13", minimum required is "1") -- Looking for feenableexcept -- Looking for feenableexcept - found -- -- General configuration for Tesseract 5.3.1 -- -------------------------------------------------------- -- Build type: Debug 64 bits -- Compiler: Clang -- Used standard: C++20 -- CXX compiler options: -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -fPIC -fno-limit-debug-info -Wall -DDEBUG -pedantic -O0 -- Compile definitions = CMAKE_BUILD;HAVE_CONFIG_H -- Linker options: -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -- Install directory: C:/compiler/vcpkg/packages/tesseract_arm64-android/debug -- HAVE_AVX: FALSE -- HAVE_AVX2: FALSE -- HAVE_AVX512F: FALSE -- HAVE_FMA: FALSE -- HAVE_SSE4_1: FALSE -- MARCH_NATIVE_OPT: OFF -- HAVE_NEON: TRUE -- Link-time optimization: -- -------------------------------------------------------- -- Build with sw [SW_BUILD]: OFF -- Build with openmp support [OPENMP_BUILD]: OFF -- Build with libarchive support [HAVE_LIBARCHIVE]: ON -- Build with libcurl support [HAVE_LIBCURL]: ON -- Enable float for LSTM [FAST_FLOAT]: ON -- Enable optimization for host CPU (could break HW compatibility) [ENABLE_NATIVE]: OFF -- Disable disable graphics (ScrollView) [GRAPHICS_DISABLED]: OFF -- Disable the legacy OCR engine [DISABLED_LEGACY_ENGINE]: OFF -- Build training tools [BUILD_TRAINING_TOOLS]: OFF -- Build tests [BUILD_TESTS]: OFF -- Use system ICU Library [USE_SYSTEM_ICU]: True -- Install tesseract configs [INSTALL_CONFIGS]: ON -- -------------------------------------------------------- -- CMake Warning at C:/compiler/vcpkg/installed/arm64-android/share/libarchive/vcpkg-cmake-wrapper.cmake:12 (_find_package): for module LibArchive already called with REQUIRED, thus CMAKE_REQUIRE_FIND_PACKAGE_LibArchive has no effect. Call Stack (most recent call first): C:/compiler/vcpkg/scripts/buildsystems/vcpkg.cmake:807 (include) CMakeLists.txt:817 (find_package) -- Found ZLIB: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libz.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libz.a (found version "1.2.13") -- Found OpenSSL: C:/compiler/vcpkg/installed/arm64-android/debug/lib/libcrypto.a (found version "3.1.1") CMake Error at C:/compiler/vcpkg/scripts/buildsystems/vcpkg.cmake:853 (_find_package): By not providing "FindCpuFeaturesNdkCompat.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "CpuFeaturesNdkCompat", but CMake did not find one. Could not find a package configuration file provided by "CpuFeaturesNdkCompat" with any of the following names: CpuFeaturesNdkCompatConfig.cmake cpufeaturesndkcompat-config.cmake Add the installation prefix of "CpuFeaturesNdkCompat" to CMAKE_PREFIX_PATH or set "CpuFeaturesNdkCompat_DIR" to a directory containing one of the above files. If "CpuFeaturesNdkCompat" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:870 (find_package) -- Configuring incomplete, errors occurred! See also "C:/compiler/vcpkg/buildtrees/tesseract/arm64-android-dbg/CMakeFiles/CMakeOutput.log". See also "C:/compiler/vcpkg/buildtrees/tesseract/arm64-android-dbg/CMakeFiles/CMakeError.log". [2/2] "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir ".." "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/compiler/vcpkg/packages/tesseract_arm64-android" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DBUILD_TRAINING_TOOLS=OFF" "-DUSE_SYSTEM_ICU=True" "-DCMAKE_REQUIRE_FIND_PACKAGE_LibArchive=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_Leptonica=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ON" "-DLeptonica_DIR=YES" "-DSW_BUILD=OFF" "-DCMAKE_MAKE_PROGRAM=C:/compiler/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/compiler/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=C:/compiler/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=C:/compiler/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/compiler/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a" FAILED: ../CMakeCache.txt "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir ".." "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/compiler/vcpkg/packages/tesseract_arm64-android" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DBUILD_TRAINING_TOOLS=OFF" "-DUSE_SYSTEM_ICU=True" "-DCMAKE_REQUIRE_FIND_PACKAGE_LibArchive=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_Leptonica=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ON" "-DLeptonica_DIR=YES" "-DSW_BUILD=OFF" "-DCMAKE_MAKE_PROGRAM=C:/compiler/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/compiler/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=C:/compiler/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=C:/compiler/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/compiler/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a" -- Setting policy CMP0091 to NEW -- The C compiler identification is Clang 14.0.7 -- The CXX compiler identification is Clang 14.0.7 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Users/rdecelis/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Users/rdecelis/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring tesseract version 5.3.1... -- IPO / LTO not supported: -- CMAKE_SYSTEM_PROCESSOR= -- LTO build is not supported on arm/RBPi. -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Found TIFF: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libtiff.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libtiffd.a (found version "4.5.0") -- Found LibLZMA: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/liblzma.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/liblzma.a (found version "5.4.3") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Found JPEG: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libjpeg.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libjpeg.a (found version "62") -- Found ZLIB: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libz.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libz.a (found version "1.2.13") -- Found LibArchive: C:/compiler/vcpkg/installed/arm64-android/lib/libarchive.a (found version "3.6.2") -- Found BZip2: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libbz2.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libbz2d.a (found version "1.0.8") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Performing Test Iconv_IS_BUILT_IN -- Performing Test Iconv_IS_BUILT_IN - Failed -- Found Iconv: C:/compiler/vcpkg/installed/arm64-android/lib/libiconv.a (found version "1.17") -- Found OpenSSL: C:/compiler/vcpkg/installed/arm64-android/lib/libcrypto.a (found version "3.1.1") -- Found OpenSSL: C:/compiler/vcpkg/installed/arm64-android/lib/libcrypto.a (found suitable version "3.1.1", minimum required is "3") -- Found ZLIB: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libz.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libz.a (found suitable version "1.2.13", minimum required is "1") -- Looking for feenableexcept -- Looking for feenableexcept - found -- -- General configuration for Tesseract 5.3.1 -- -------------------------------------------------------- -- Build type: Release 64 bits -- Compiler: Clang -- Used standard: C++20 -- CXX compiler options: -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -fPIC -O3 -DNDEBUG -Wno-unused-command-line-argument -- Compile definitions = CMAKE_BUILD;HAVE_CONFIG_H -- Linker options: -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -- Install directory: C:/compiler/vcpkg/packages/tesseract_arm64-android -- HAVE_AVX: FALSE -- HAVE_AVX2: FALSE -- HAVE_AVX512F: FALSE -- HAVE_FMA: FALSE -- HAVE_SSE4_1: FALSE -- MARCH_NATIVE_OPT: OFF -- HAVE_NEON: TRUE -- Link-time optimization: FALSE -- -------------------------------------------------------- -- Build with sw [SW_BUILD]: OFF -- Build with openmp support [OPENMP_BUILD]: OFF -- Build with libarchive support [HAVE_LIBARCHIVE]: ON -- Build with libcurl support [HAVE_LIBCURL]: ON -- Enable float for LSTM [FAST_FLOAT]: ON -- Enable optimization for host CPU (could break HW compatibility) [ENABLE_NATIVE]: OFF -- Disable disable graphics (ScrollView) [GRAPHICS_DISABLED]: OFF -- Disable the legacy OCR engine [DISABLED_LEGACY_ENGINE]: OFF -- Build training tools [BUILD_TRAINING_TOOLS]: OFF -- Build tests [BUILD_TESTS]: OFF -- Use system ICU Library [USE_SYSTEM_ICU]: True -- Install tesseract configs [INSTALL_CONFIGS]: ON -- -------------------------------------------------------- -- CMake Warning at C:/compiler/vcpkg/installed/arm64-android/share/libarchive/vcpkg-cmake-wrapper.cmake:12 (_find_package): for module LibArchive already called with REQUIRED, thus CMAKE_REQUIRE_FIND_PACKAGE_LibArchive has no effect. Call Stack (most recent call first): C:/compiler/vcpkg/scripts/buildsystems/vcpkg.cmake:807 (include) CMakeLists.txt:817 (find_package) -- Found ZLIB: optimized;C:/compiler/vcpkg/installed/arm64-android/lib/libz.a;debug;C:/compiler/vcpkg/installed/arm64-android/debug/lib/libz.a (found version "1.2.13") -- Found OpenSSL: C:/compiler/vcpkg/installed/arm64-android/lib/libcrypto.a (found version "3.1.1") CMake Error at C:/compiler/vcpkg/scripts/buildsystems/vcpkg.cmake:853 (_find_package): By not providing "FindCpuFeaturesNdkCompat.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "CpuFeaturesNdkCompat", but CMake did not find one. Could not find a package configuration file provided by "CpuFeaturesNdkCompat" with any of the following names: CpuFeaturesNdkCompatConfig.cmake cpufeaturesndkcompat-config.cmake Add the installation prefix of "CpuFeaturesNdkCompat" to CMAKE_PREFIX_PATH or set "CpuFeaturesNdkCompat_DIR" to a directory containing one of the above files. If "CpuFeaturesNdkCompat" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:870 (find_package) -- Configuring incomplete, errors occurred! See also "C:/compiler/vcpkg/buildtrees/tesseract/arm64-android-rel/CMakeFiles/CMakeOutput.log". See also "C:/compiler/vcpkg/buildtrees/tesseract/arm64-android-rel/CMakeFiles/CMakeError.log". ninja: build stopped: subcommand failed. ```

Additional context

config-x64-windows-dbg-CMakeCache.txt.log config-arm64-android-rel-CMakeCache.txt.log config-arm64-android-out.log

Adela0814 commented 1 year ago

I'm not able to repro this issue. Vcpkg version: vcpkg package management program version 2023-10-18-27de5b69dac4b6fe8259d283cd4011e6d20a84ce Compiler: Clang 14.0.7

RDCH106 commented 1 year ago

I'm not able to repro this issue. Vcpkg version: vcpkg package management program version 2023-10-18-27de5b69dac4b6fe8259d283cd4011e6d20a84ce Compiler: Clang 14.0.7

Did you compile for arm64-android?

I try to retrieve the last changes for the build process of the tesseract port.

RDCH106 commented 1 year ago

Using vcpkg-2023.10.19:

C:\compiler\vcpkg>vcpkg.exe install tesseract --triplet arm64-android
Computing installation plan...
cpu-features is only supported on '!(arm | uwp)', which does not match arm64-android. This usually means that there are known build failures, or runtime problems, when building other platforms. To ignore this and attempt to build cpu-features anyway, rerun vcpkg with `--allow-unsupported`.

If I try adding the suggested flag --allow-unsupported:

C:\compiler\vcpkg>vcpkg.exe install tesseract --triplet arm64-android --allow-unsupported
Computing installation plan...
warning: cpu-features is only supported on '!(arm | uwp)', which does not match arm64-android. This usually means that there are known build failures, or runtime problems, when building other platforms. Proceeding anyway due to `--allow-unsupported`.
The following packages will be built and installed:
    tesseract:arm64-android -> 5.3.2
Detecting compiler hash for triplet arm64-android...
Restored 0 package(s) from C:\Users\rdecelis\AppData\Local\vcpkg\archives in 435 us. Use --debug to see more details.
Installing 1/1 tesseract:arm64-android...
Building tesseract:arm64-android...
warning: -- Using community triplet arm64-android. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\compiler\vcpkg\triplets\community\arm64-android.cmake
-- Using cached tesseract-ocr-tesseract-5.3.2.tar.gz.
-- Cleaning sources at C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.2-8246f0314f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/compiler/vcpkg/downloads/tesseract-ocr-tesseract-5.3.2.tar.gz
-- Applying patch fix-depend-libarchive.patch
-- Applying patch fix_static_link_icu.patch
-- Applying patch fix-aarch64-mfpu-not-available.patch
-- Using source at C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.2-8246f0314f.clean
-- Configuring arm64-android
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: C:/compiler/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
    Working Directory: C:/compiler/vcpkg/buildtrees/tesseract/arm64-android-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-dbg-CMakeCache.txt.log
      C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-rel-CMakeCache.txt.log
      C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
  ports/tesseract/portfile.cmake:21 (vcpkg_cmake_configure)
  scripts/ports.cmake:147 (include)

error: building tesseract:arm64-android failed with: BUILD_FAILED
Elapsed time to handle tesseract:arm64-android: 3.5 s

config-x64-windows-dbg-CMakeCache.txt.log config-arm64-android-rel-CMakeCache.txt.log config-arm64-android-out.log

github-actions[bot] commented 11 months ago

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.