summaryrefslogtreecommitdiff
path: root/cmd/rescribe/EMBEDDING_NOTES.md
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-08-18 22:37:40 +0100
committerNick White <git@njw.name>2021-08-18 22:37:40 +0100
commitbde651bbde9df3a8c33b705dbe33bbcaf4e3e73d (patch)
tree758e90523a801d2a715d3bfcffe55c33872eef7e /cmd/rescribe/EMBEDDING_NOTES.md
parent767b60db23311adaf1035e821bc189877d63b7f0 (diff)
rescribe: Update documentation on how to deal with M1 signing, and move makefile to where it makes sense
Diffstat (limited to 'cmd/rescribe/EMBEDDING_NOTES.md')
-rw-r--r--cmd/rescribe/EMBEDDING_NOTES.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/rescribe/EMBEDDING_NOTES.md b/cmd/rescribe/EMBEDDING_NOTES.md
index 930f2d7..e3c3425 100644
--- a/cmd/rescribe/EMBEDDING_NOTES.md
+++ b/cmd/rescribe/EMBEDDING_NOTES.md
@@ -24,6 +24,12 @@ You can find the path names to replace using `otool -L`.
This is all taken from a great guide on how to do this:
http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/
+Additionally, at least with OSX on arm64 (M1), one needs to re-
+sign the tesseract executable and libraries after changing them,
+or OSX will prevent them from being run. You can do this with
+the codesign tool, like this:
+ codesign -f -s - liblept.5.dylib
+
The embedded tessdata is much easier to create, it's just a
standard tessdata from an install on any platform, plus any
additional .traineddata files you want to include.