title: Building OpenCV with Tesseract with Git Bash
body: <p>I am trying to build a <code>Tesseract</code> lib according to this manual: <a href="https://docs.opencv.org/3.4/db/d4c/tutorial_install_tesseract.html" rel="nofollow noreferrer">Tesseract (master) installation by using git-bash (version&gt;=2.14.1) and cmake (version &gt;=3.9.1)</a> (certainly, I've also installed OpenCV with its contribute modules beforehand, which went smoothly).</p>
  <p>No matter what I do and how it fails for the same reason - when it comes to <code>leptonica</code> on which <code>Tesseract</code> depends, I see the error which looks like this:</p>
  <blockquote>
  <p>Could not find a package configuration file provided by &quot;SW&quot; with any of the following names:</p>
  <p>SWConfig.cmake</p>
  <p>sw-config.cmake</p>
  </blockquote>
  <p>I've put <code>sw.exe</code> to a location indicated by PATH, but it didn't help - the error remains. Is it possible that an sw cmake config file is missing from the repo?</p>