DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.72k stars 384 forks source link

Installing leptonica on Windows failed with reason prompt 'SW' not found #745

Open liyuan1206010227 opened 1 month ago

liyuan1206010227 commented 1 month ago

The specific error content is as follows:

CMake Error at CMakeLists.txt:216 (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.

What library or dependency does "SW" specifically refer to? How do I need to install "SW" to solve this problem?

zdenop commented 1 month ago

Did you read and follow Readme.md? Or wiki?

liyuan1206010227 commented 1 month ago

Did you read and follow Readme.md? Or wiki?

My mistake, I just checked the README file and found an explanation