#971·openalpr

Cannot perform cmake command on Mac OS Ventura M2

Author: sjmc11Created Mar 24, 2023Updated Nov 26, 2025

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