Hi,
I'm trying to build tesseract.exe on Windows/VS2017 using the /MT flag to
avoid needing the VC++ runtime library. I have modified cppan.yml as
follows:
local_settings:
use_shared_libs: false
short_local_names: true
use_cache: false
#generator: Visual Studio 14 2015 Win64
silent: false
#copy_import_libs: true
build:
c_flags: /W0 /MT
cxx_flags: /W0 /MT
libtesseract:
shared_only: true
The modifications work fine to statically link libtesseract, but adding /MT
to cxx_flags seems to have no effect. When I look at the the build output
from cppan.exe there is plenty of /MD but no /MT, and the output exe is
unchanged.
Does anyone have any idea what the problem might be, or another approach to
avoid needing the runtime library?
--
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 [email protected].
To post to this group, send email to [email protected].
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/c3912fc2-238e-4816-9ec8-3fa4d1b8fde9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.