Error looking up function 'TessTextRendererCreate' on Mac

220 views
Skip to first unread message

Hang Wen

unread,
Sep 4, 2015, 6:59:00 AM9/4/15
to tesseract-ocr
Hi, 

I got the following error when trying to initialize TessAPI1() on Mac:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'TessTextRendererCreate': dlsym(0x7fb8dad55ca0, TessTextRendererCreate): symbol not found
at com.sun.jna.Function.<init>(Function.java:208)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:536)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:513)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:499)
at com.sun.jna.Native.register(Native.java:1509)
at com.sun.jna.Native.register(Native.java:1396)
at com.sun.jna.Native.register(Native.java:1156)
at net.sourceforge.tess4j.TessAPI1.<clinit>(TessAPI1.java:39)

I've referred to this post, and made sure libtesseract.dylib  is in my system path. But I still got this error.

The TessAPI() works fine.

I have 3.02.02_3 and tess4j 2.0.1

Thank you for any ideas.

Quan Nguyen

unread,
Sep 4, 2015, 7:55:24 AM9/4/15
to tesseract-ocr
You'd need Tess4J 1.5, which is compatible with Tess 3.02.

zdenko podobny

unread,
Sep 4, 2015, 8:54:59 AM9/4/15
to tesser...@googlegroups.com

Or other way around: TessTextRendererCreate is tesseract 3.04 (C-API) function, so you need to upgrade your tesseract library.

Zdenko

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/bb2c354c-f5e6-42fb-bb30-c138e463cf96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages