Here is the error after I ran cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME ..
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1")
-- Checking for module 'lept'
-- Found lept, version 1.72
-- Checking for module 'tesseract'
-- Found tesseract, version 3.04.01
-- Checking for module 'opencv>=2.4'
-- Package 'opencv>=2.4' not found
CMake Error at /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindPkgConfig.cmake:360 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindPkgConfig.cmake:522 (_pkg_check_modules_internal)
CMakeLists.txt:7 (pkg_check_modules)
On macOS Sierra
install xcode for g++ brew install tesseract --all-languages brew install leptonica
Here is the error after I ran
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME ..
CMakeOutput.log