Skip to content

Commit e1b577e

Browse files
committed
Doc and script for a static build of super-zaje.
1 parent ebf4ee7 commit e1b577e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cmd/super-zaje/static_build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ CGO_ENABLED=1 GOOS=linux go build -a -tags netgo -ldflags \
4545
'-extldflags "-static -ldeflate -ltiff -L/usr/local/lib -ldeflate -lsharpyuv -lwebp -lLerc -llzma -ljbig -ltesseract -lleptonica -lpng -lzstd -ljpeg -lz -lgif -lsharpyuv -lwebp"' super-zaje.go
4646
```
4747

48-
**Note: to run `super-zaje` on your target machines, you will need to copy `/usr/local/share/tessdata` from the build machine.
48+
**Note: to run `super-zaje` on your target machines, you will need to copy [eng.traineddata](https://github.com/tesseract-ocr/tessdata/raw/refs/heads/main/eng.traineddata) to `/usr/local/share/tessdata`.
4949
You can also set the `TESSDATA_PREFIX` ENV dir if you wish to copy it to a different location.**

cmd/super-zaje/static_build_debian.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ cd tesseract
2727
--disable-openmp --without-curl --without-archive --disable-doc \
2828
'CXXFLAGS=-DTESS_EXPORTS -g0 -O3 -ffast-math'
2929
make && make install
30+
wget -q https://github.com/tesseract-ocr/tessdata/raw/refs/heads/main/eng.traineddata -P /usr/local/share/tessdata
31+
3032

3133
cd "$TMPDIR"
3234

0 commit comments

Comments
 (0)