how to static link tesseract dependencies?

987 views
Skip to first unread message

blues

unread,
Jul 9, 2018, 5:40:18 AM7/9/18
to tesseract-ocr
Hi All,

I followed the instruction for Windows to build tesseract 3.05 with cppan + cmake. the output exe, dll dynamically links to many other dlls. (which downloaded by cppan)

pvt.cppan.demo.danbloomberg.leptonica-1.74.4.dll
- pvt.cppan.demo.tiff-4.0.9.dll
- pvt.cppan.demo.png-1.6.34.dll
- pvt.cppan.demo.jpeg-9.2.0.dll 
- etc...

I would like to static links those dependencies. so I have fewer files to deploy.
how do I do that with cppan + cmake or any other way?

Zdenko Podobny

unread,
Jul 9, 2018, 7:58:12 AM7/9/18
to tesser...@googlegroups.com
I think I did it in the past: I wanted to have only leptonica and tesseract library.
Try to build leptonica with static linking and than force tesseract build to use your leptonica build/installation...


Zdenko


po 9. 7. 2018 o 11:40 blues <blue...@gvdigital.com> napísal(a):
--
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 https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/16aa2b16-cc50-4944-a214-58555bf05b74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

THintz

unread,
Aug 31, 2018, 9:03:28 AM8/31/18
to tesseract-ocr
Reply all
Reply to author
Forward
0 new messages