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.81k stars 393 forks source link

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

Open liyuan1206010227 opened 6 months ago

liyuan1206010227 commented 6 months 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 6 months ago

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

liyuan1206010227 commented 6 months ago

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

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