mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-07-25 22:17:03 +08:00
Simplify rules for MacPorts based build
parent
c2cf6a1ba6
commit
c99703b07b
13
Compiling.md
13
Compiling.md
@ -295,7 +295,7 @@ sudo port install leptonica
|
|||||||
git clone https://github.com/tesseract-ocr/tesseract.git
|
git clone https://github.com/tesseract-ocr/tesseract.git
|
||||||
cd tesseract
|
cd tesseract
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --with-extra-libraries=/opt/local/lib
|
./configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
@ -316,16 +316,9 @@ sudo port install icu +devel
|
|||||||
git clone https://github.com/tesseract-ocr/tesseract/
|
git clone https://github.com/tesseract-ocr/tesseract/
|
||||||
cd tesseract
|
cd tesseract
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure \
|
./configure
|
||||||
--with-extra-libraries=/opt/local/lib \
|
|
||||||
--with-extra-includes=/opt/local/include \
|
|
||||||
LDFLAGS=-L/opt/local/lib \
|
|
||||||
CPPFLAGS=-I/opt/local/include
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
make training
|
make training
|
||||||
sudo make training-install
|
sudo make install training-install
|
||||||
```
|
```
|
||||||
|
|
||||||
## macOS with Homebrew
|
## macOS with Homebrew
|
||||||
|
Loading…
Reference in New Issue
Block a user