Inside ports/tesseract, I added HEAD_REF master: vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO tesseract-ocr/tesseract REF 4.1.1 SHA512 017723a2268be789fe98978eed02fd294968cc8050dde376dee026f56f2b99df42db935049ae5e72c4519a920e263b40af1a6a40d9942e66608145b3131a71a2 PATCHES fix-tiff-linkage.patch fix-text2image.patch fix-training-tools.patch HEAD_REF master ) calling vcpkg --head install tesseract:x86-windows gives the following output: ... -- Using source at C:/Users/XWTSB02/Desktop/vcpkg/buildtrees/tesseract/src/head/master-a96131c853.clean CMake Deprecation Warning at scripts/cmake/vcpkg_check_features.cmake:182 (message): calling `vcpkg_check_features` without the `FEATURES` keyword has been deprecated.
Please add the `FEATURES` keyword to the call. Call Stack (most recent call first): ports/tesseract/portfile.cmake:18 (vcpkg_check_features) scripts/ports.cmake:142 (include) -- Configuring x86-windows CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message): Command failed: ninja -v Working Directory: C:/Users/XWTSB02/Desktop/vcpkg/buildtrees/tesseract/x86-windows-rel/vcpkg-parallel-configure Error code: 1 See logs for more information: C:\Users\XWTSB02\Desktop\vcpkg\buildtrees\tesseract\config-x86-windows-out.log Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:324 (vcpkg_execute_required_process) ports/tesseract/portfile.cmake:28 (vcpkg_configure_cmake) scripts/ports.cmake:142 (include) Error: Building package tesseract:x86-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: tesseract:x86-windows Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e Additionally, attach any relevant sections from the log files above. And config-x86...out.log gives the following: ... Configuring tesseract version 5.0.0-alpha-20201231... -- IPO / LTO supported -- Performing Test COMPILER_SUPPORTS_MARCH_NATIVE -- Performing Test COMPILER_SUPPORTS_MARCH_NATIVE - Failed -- target changed from "" to "auto" -- Detected CPU: skylake -- Performing Test check_cxx_compiler_flag__arch_AVX2 -- Performing Test check_cxx_compiler_flag__arch_AVX2 - Success CMake Error at C:/Users/XWTSB02/Desktop/vcpkg/scripts/buildsystems/vcpkg.cmake:861 (_find_package): By not providing "FindSW.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SW", but CMake did not find one. Could not find a package configuration file provided by "SW" with any of the following names: SWConfig.cmake sw-config.cmake Add the installation prefix of "SW" to CMAKE_PREFIX_PATH or set "SW_DIR" to a directory containing one of the above files. If "SW" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:296 (find_package) ... I found SWConfig.cmake at C:\Users\XWTSB02\.sw\storage\etc\sw\static, so I added it to environment variables as SW and as SW_DIR, still the same error occurs... Em quarta-feira, 24 de março de 2021 às 14:14:15 UTC, Fábio Ramos escreveu: > Hello, I've tried using vcpkg to install tesseract 5 but I couldn't. > I've tried used the tag ''-head' in the command vcpkg install > tesseract-x86-windows --head, but it always goes for 4.1.1.. any help? > I found a post with the same problem, but he answered that he tweaked some > files and worked... I just don't know which files. > I found inside versions a way to specify a baseline and a port, and there > is also a tesseract.json. > Any help? > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/ee312cad-5f14-4cfc-89e7-cff1310a583bn%40googlegroups.com.