Build Tesseract for windows

浏览: 140 发布日期: 2016-10-28 分类: windows

ref: https://github.com/tesseract-...

cd tesseract
cppan
mkdir build && cd build
cmake .. -DSTATIC=1

master branch支持CPPAN,不用再一个个下库了。但是可能是机器太慢的原因?总是卡在71个check那里,查了cmake log也没有有用的信息。最后用taskmanager查看有三个cmake进程,手动终止了两个占用内存最小的才过了。

$ cmake .. -DSTATIC=1
-- Building for: Visual Studio 14 2015
-- The C compiler identification is MSVC 19.0.23026.0
-- The CXX compiler identification is MSVC 19.0.23026.0
-- Check for working C compiler using: Visual Studio 14 2015
-- Check for working C compiler using: Visual Studio 14 2015 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 14 2015
-- Check for working CXX compiler using: Visual Studio 14 2015 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing 71 checks using 8 threads
-- This process may take up to 5 minutes depending on your hardware
返回顶部