Compiling the Tesseract lib for Windows - tvn-cosine/tesseract.net GitHub Wiki
Compiling using Visual Studio
1. Install CMake
- Download the latest version of CMake from https://cmake.org/.
- Install the latest version and ensure that Path environment variable are set.
2. Install cppan
- Download the latest version of cppan from https://cppan.org/.
- Extract zip
- Manually add the location where you extracted cppan to the Path environment variable.
3. Restart your computer
4. Build the Tesseract library
- Open Command Prompt
- Change directory to desired build location
- Run the following command in the command window
cppan --build pvt.cppan.demo.google.tesseract.libtesseract-master
To build a 64x library
- 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
- Perform step 4