CMakeのでプロジェクトでたTesseractを使用する唯一の(または最も簡単な)方法は、(hereから)たTesseractソースをダウンロードするようです 次の手順でビルド:
cd <Tesseract source directory>
mkdir build
cd build
cmake ../
make
sudo make install
は「Tesseract_DIR」を指定します環境変数をtesseractのために作成したディレクトリにコピーします。すべてがちょうどcmakeのでプロジェクトをビルドした後
find_package(Tesseract 3.05 REQUIRED) # 3.05 is currently the latest version of the git repository.
include_directories(${Tesseract_INCLUDE_DIRS})
target_link_libraries(<your_program_executable> ${Tesseract_LIBRARIES}) # you can link here multiple libraries as well.
:
は、次に、あなたのプロジェクトのCMakeLists.txtファイルに次の行を持っている必要があります。
おかげで、私はそれを試してみましょう! – ATv