Skip to content

Commit

Permalink
Update LoadLibs.java
Browse files Browse the repository at this point in the history
Load for homebrew MacOS ARM tesseract. Fixes nguyenq#194
  • Loading branch information
chadbrewbaker authored Nov 29, 2022
1 parent 1d1e5fb commit 3cc4284
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/net/sourceforge/tess4j/util/LoadLibs.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public class LoadLibs {
System.setProperty(JNA_LIBRARY_PATH, userCustomizedPath + File.pathSeparator + targetTempFolder.getPath());
}
}
//Load for homebrew MacOS ARM tesseract
if (Platform.isMac() && Platform.isARM)
System.setProperty(JNA_LIBRARY_PATH,JNA_LIBRARY_PATH+File.pathSeparator+"/opt/homebrew/lib/");
}

/**
Expand Down

0 comments on commit 3cc4284

Please sign in to comment.