tess4j icon indicating copy to clipboard operation
tess4j copied to clipboard

Update LoadLibs.java

Open chadbrewbaker opened this issue 2 years ago • 1 comments

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

chadbrewbaker avatar Nov 29 '22 19:11 chadbrewbaker

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

nguyenq avatar Dec 04 '22 02:12 nguyenq