Tesseract-OCR_for_Windows icon indicating copy to clipboard operation
Tesseract-OCR_for_Windows copied to clipboard

How can I build a DLL ?

Open tothpaul opened this issue 6 years ago • 0 comments

Hello,

I'm not a C++ developper, I've used this code to build Tesseract with VS2015 without problem, and I have a working exe...but what I need is a DLL :)

What have I to do to build a static DLL (without dependency) ?

I've tried to play with cppan but I have an error "list does not recongize sub-commande FILTER" even when I use the provided cppan.yml without any change.

Thanks

EDIT: I've found :)

  1. open tesseract.sln in VS2015
  2. select libtesseract
  3. open properties
  4. General/ Target Extension = .dll, Configuration Type = Dynamic Library (.dll)
  5. C/C++ Preprocessor/ Preprocessor Definitions: add TESS_EXPORTS

Build project :)

tothpaul avatar Jun 05 '18 07:06 tothpaul