Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot perform cmake command on Mac OS Ventura M2 #971

Open
sjmc11 opened this issue Mar 24, 2023 · 0 comments
Open

Cannot perform cmake command on Mac OS Ventura M2 #971

sjmc11 opened this issue Mar 24, 2023 · 0 comments

Comments

@sjmc11
Copy link

sjmc11 commented Mar 24, 2023

Following the guidance for compilation instruction on OSX

I've been able to run all the commands up until the cmake step. I get the following error:

Tesseract_INCLUDE_BASEAPI_DIR=/opt/homebrew/include
Tesseract_INCLUDE_CCSTRUCT_DIR=Tesseract_INCLUDE_CCSTRUCT_DIR-NOTFOUND
Tesseract_INCLUDE_CCMAIN_DIR=Tesseract_INCLUDE_CCMAIN_DIR-NOTFOUND
Tesseract_INCLUDE_CCUTIL_DIR=Tesseract_INCLUDE_CCUTIL_DIR-NOTFOUND
Tesseract_INCLUDE_DIRS=/opt/homebrew/include;/opt/homebrew/include
Tesseract_LIB=/opt/homebrew/lib/libtesseract.dylib
Leptonica_LIB=/opt/homebrew/lib/liblept.dylib
Tesseract_LIBRARIES=/opt/homebrew/lib/libtesseract.dylib;/opt/homebrew/lib/liblept.dylib;/opt/homebrew/lib/libtesseract.dylib;/opt/homebrew/lib/liblept.dylib

CMake Error at cmake_modules/LibFindMacros.cmake:74 (message):
  Required library Tesseract NOT FOUND.

  Install the library (dev version) and try again.  If the library is already
  installed, use ccmake to set the missing variables manually.
Call Stack (most recent call first):
  cmake_modules/FindTesseract.cmake:120 (libfind_process)
  CMakeLists.txt:80 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

I've got tesseract installed via homebrew to the following path: /opt/homebrew/Cellar/tesseract/5.3.0_1/bin/tesseract.

I'm running an M2 on Ventura. Any guidance or pointers would be appreciated.

tesseract --version returns the following:

tesseract 5.3.0
 leptonica-1.82.0
  libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 2.1.4) : libpng 1.6.39 : libtiff 4.4.0 : zlib 1.2.11 : libwebp 1.3.0 : libopenjp2 2.5.0
 Found NEON
 Found libcurl/7.86.0 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.47.0
@sjmc11 sjmc11 changed the title Cannot perform cmake command Cannot perform cmake command on Mac OS Ventura M2 Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant