Compiling the Tesseract lib for Windows - tvn-cosine/tesseract.net GitHub Wiki

Compiling using Visual Studio

1. Install CMake

  1. Download the latest version of CMake from https://cmake.org/.
  2. Install the latest version and ensure that Path environment variable are set.

2. Install cppan

  1. Download the latest version of cppan from https://cppan.org/.
  2. Extract zip
  3. Manually add the location where you extracted cppan to the Path environment variable.

3. Restart your computer

4. Build the Tesseract library

  1. Open Command Prompt
  2. Change directory to desired build location
  3. Run the following command in the command window
cppan --build pvt.cppan.demo.google.tesseract.libtesseract-master

To build a 64x library

  1. Add a cppan.yml file in the directory that is the desired build location with the following contents:
local_settings:
    generator: Visual Studio 15 2017 Win64
  1. Perform step 4