Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

How can I build a DLL ? #21

Open
tothpaul opened this issue Jun 5, 2018 · 0 comments
Open

How can I build a DLL ? #21

tothpaul opened this issue Jun 5, 2018 · 0 comments

Comments

@tothpaul
Copy link

tothpaul commented Jun 5, 2018

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant