From 6c2a5e739bcdce1a64322e318f8075a4773744e9 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 26 Feb 2018 18:31:12 +0100 Subject: [PATCH] OpenMP for macOS --- Compiling.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Compiling.md b/Compiling.md index 9a1a7d8..2bd6da8 100644 --- a/Compiling.md +++ b/Compiling.md @@ -276,12 +276,28 @@ Xcode and the related command line tools provides the compiler (`llvm-gcc`) and The Xcode Command Line Tools can be installed by running `xcode-select --install`. +Note that Tesseract 4 can be built with OpenMP support, but that requires additional installations. + ## macOS with Fink Fink (as of 2017-04) neither provides Leptonica nor the packages needed for the Tesseract training tools, so it cannot be recommended for building Tesseract. ## macOS with MacPorts +### Prepare support for OpenMP (optional) + +``` +# Install cmake if it is not available. +sudo install cmake +git clone https://github.com/llvm-mirror/openmp.git +cd openmp +mkdir build +cd build +cmake .. +make +sudo make install +``` + ### Install required packages ```