OpenMP for macOS

Stefan Weil 2018-02-26 18:31:12 +01:00
parent c99703b07b
commit 6c2a5e739b

@ -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
```