Build a shared library / use pkg-config?

16 views
Skip to first unread message

Mika Raento

unread,
Nov 22, 2009, 12:37:27 PM11/22/09
to tesseract-ocr
Dear ocropus

I'be been playing with versions of tesseract and ocropus and I noticed
that if I compile tesseract with leptonica the ocropus ./configure
fails to find the tesseract libs. This is because if statically
linking to tesseract, you must also link to leptonica and give the '-
llept' after '-ltesseract_api' on the linker which is not what ocropus
does. If tesseract is a shared library that links to leptonica
(dynamically) there's no problem.

Creating a shared library is trivial at least on linux - maybe we
should do that in the future?

Alternatively if tesseract produced a pkg-config file and get ocropus
to use that for getting the link flags.

What think you?

Mika Raento
Reply all
Reply to author
Forward
0 new messages