You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building tesseract with the "Debug" build type fails on Windows when using MSVC (at least) with the message:
Expand
D:/home/.conan2/p/b/tesse9094796c026b0/b/build/CMakeFiles/CMakeScratch/TryCompile-f8clg0/cmTC_2e2e3Targets.cmake:21
(set_target_properties):
The link interface of target "leptonica" contains:
CONAN_LIB::leptonica_leptonica-1.83.1d_DEBUG
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):
D:/home/.conan2/p/b/tesse9094796c026b0/b/build/CMakeFiles/CMakeScratch/TryCompile-f8clg0/CMakeLists.txt:18 (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:410 (check_leptonica_tiff_support)
-- Configuring incomplete, errors occurred!
tesseract/5.3.3: ERROR:
Package '540fd90f5592e87fac971774d379d1fa485d1bdc' build failed
tesseract/5.3.3: WARN: Build folder D:\home\.conan2\p\b\tesse9094796c026b0\b\build
ERROR: tesseract/5.3.3: Error in build() method, line 147
cmake.configure()
ConanException: Error 1 while executing
This doesn't occur when using the "Release" build type. I've attempted to replicate this using GCC on Linux, but the build succeeds, so this issue seems to be specific to MSVC "Debug" builds.
I have not yet verified whether using other compilers on Windows leads to similar issues.
Description
Building
tesseract
with the "Debug" build type fails on Windows when using MSVC (at least) with the message:Expand
This doesn't occur when using the "Release" build type. I've attempted to replicate this using GCC on Linux, but the build succeeds, so this issue seems to be specific to MSVC "Debug" builds.
I have not yet verified whether using other compilers on Windows leads to similar issues.
Package and Environment Details
Conan profile
[settings]
arch=x86_64
build_type=Debug
compiler=msvc
compiler.cppstd=20
compiler.runtime=dynamic
compiler.version=193
os=Windows
Steps to reproduce
Run
in a new stub CMake project under the VS2022 PowerShell dev environment.
conanfile.txt
Logs
Short version of log (subsequent run with most compilation done):
Click to expand log
Full build log with all compilation messages (almost 43k lines):
output-debug0.log
The text was updated successfully, but these errors were encountered: