当我厌倦了运行Tess4j 示例程序时,出现以下错误。
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'TessBaseAPICreate': /usr/local/lib/libtesseract.so: undefined symbol: TessBaseAPICreate
at com.sun.jna.Function.<init>(Function.java:179)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:350)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:330)
at com.sun.jna.Library$Handler.invoke(Library.java:203)
at $Proxy0.TessBaseAPICreate(Unknown Source)
at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:253)
at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:220)
at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:166)
at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:151)
at Test.main(Test.java:12)
Java Result: 1
我正在使用 Redhat Linux 32 位。