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
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...