nguyenq / tess4j

Java JNA wrapper for Tesseract OCR API
Apache License 2.0
1.58k stars 372 forks source link

Update LoadLibs.java #240

Open chadbrewbaker opened 1 year ago

chadbrewbaker commented 1 year ago

Load for homebrew MacOS ARM tesseract. Fixes https://github.com/nguyenq/tess4j/issues/194

nguyenq commented 1 year ago

Are you sure this is a valid path JNA_LIBRARY_PATH+File.pathSeparator+"/opt/homebrew/lib/" as it would resolve to "jna.library.path:/opt/homebrew/lib/" ?

Tess4J relies on JNA to find and load native libraries, so we feel this issue is best addressed there to add this support.

https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/NativeLibrary.java https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/Platform.java