gpt4 book ai didi

java - Tesseract:UnsatisfiedLinkError - undefined symbol :TessBaseAPICreate

转载 作者:行者123 更新时间:2023-11-29 09:09:35 26 4
gpt4 key购买 nike

当我疲倦地运行时出现以下错误 Tess4j sample program .

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 位。

最佳答案

看起来像绑定(bind)错误 - 找到了共享库,但内容与 java 预期的不同。您将必须仔细检查版本。

关于java - Tesseract:UnsatisfiedLinkError - undefined symbol :TessBaseAPICreate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13119722/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com