Hey,
sorry for any confusion this post may have cause.
Yes, I'm trying to cross-compile Tesseract on Arch Linux for Windows.
I've installed leptonica via the Arch package manager.
Leptonica Version 1.84.1 is installed on my system.
I've also installed webp via the package manager (libwebp on arch)
I've done the following steps to run into this problem:
1. clone the tesseract repository via git clone
2. create a build folder inside the tesseract folder and navigate into it (mkdir build -> cd build)
3. run cmake ..
This is the full output of the cmake .. on my system:
cmake ..
-- Configuring tesseract version 5.4.1...
-- IPO / LTO supported
-- CMAKE_SYSTEM_PROCESSOR=<x86_64>
-- Found leptonica version: 1.84.1
CMake Error at /home/tesseract/build/CMakeFiles/CMakeScratch/TryCompile-RwJF5R/cmTC_5cec5Targets.cmake:21 (set_target_properties):
The link interface of target "leptonica" contains:
WebP::webp
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/home/tesseract/build/CMakeFiles/CMakeScratch/TryCompile-RwJF5R/CMakeLists.txt:16 (include)
CMake Error at cmake/CheckFunctions.cmake:34 (try_run):
Failed to generate test project build system.
Call Stack (most recent call first):
CMakeLists.txt:409 (check_leptonica_tiff_support)
I hope these information help.