Before building take a look at cppan.yml file. Create a local copy of it in your project structure.
Prerequisites:
- Download git, cmake and add them to PATH
- Download the latest CPPAN (https://cppan.org/) client from https://cppan.org/client/
- Add cppan to PATH too.
git clone https://github.com/cppan/tesseract_example tesseract_example
cd tesseract_example/with_cmake
cppan
mkdir build && cd build
cmake ..
cmake --build . --config Release
Prerequisites:
- Install git, cmake, the latest CPPAN (https://cppan.org/) client.
- Run
git clone https://github.com/cppan/tesseract_example tesseract_example
cd tesseract_example/with_cmake
cppan
mkdir build && cd build
cmake ..
make -j4
- Download tesseract english data to
tessdatadir near themainbinary. - Copy test image
phototest.tifto working dir. - Run
main phototest.tif