mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-07-30 17:32:40 +08:00
OpenMP for macOS
parent
c99703b07b
commit
6c2a5e739b
16
Compiling.md
16
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`.
|
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
|
## macOS with Fink
|
||||||
Fink (as of 2017-04) neither provides Leptonica nor the packages needed for the Tesseract training tools,
|
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.
|
so it cannot be recommended for building Tesseract.
|
||||||
|
|
||||||
## macOS with MacPorts
|
## 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
|
### Install required packages
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user