From bf7502cb8b07b433ee2bdf05419a49c961b3f06b Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Wed, 19 Sep 2018 06:13:30 -0400 Subject: [PATCH] Add instructions for static linking on Windows --- Compiling.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Compiling.md b/Compiling.md index fac8615..7303db7 100644 --- a/Compiling.md +++ b/Compiling.md @@ -145,7 +145,16 @@ to point to your tessdata directory (example: if your tessdata path is '/usr/loc #### For visual studio project using tesseract 1. Setup [Vcpkg](https://github.com/Microsoft/vcpkg/blob/master/README.md) the Visual C++ Package Manager. -2. Run `vcpkg install tesseract:x64-windows`for 64bit version. Using --head for master branch. +2. Run `vcpkg install tesseract:x64-windows` for 64-bit. Use --head for the master branch. + +#### Static linking + +To build a self-contained `tesseract.exe` executable (without any DLLs or runtime dependencies), use Vcpkg as above with the following command: + +- `vcpkg install tesseract:x64-windows-static` for 64-bit +- `vcpkg install tesseract:x86-windows-static` for 32-bit + +Use --head for the master branch. It may still require one DLL for the OpenMP runtime, `vcomp140.dll` (which you can find in the Visual C++ Redistributable 2015). #### Build training tools