From af7cc1ce4c3e7df432027062f90cb4778de01328 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Mon, 1 Apr 2019 22:38:01 +0300 Subject: [PATCH] Fix windows build. --- src/textord/imagefind.h | 2 ++ sw.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/textord/imagefind.h b/src/textord/imagefind.h index 65be65dde8..e5d003c283 100644 --- a/src/textord/imagefind.h +++ b/src/textord/imagefind.h @@ -22,6 +22,8 @@ #include "debugpixa.h" +#include + struct Boxa; struct Pix; struct Pixa; diff --git a/sw.cpp b/sw.cpp index 7be3fdab4a..741b016861 100644 --- a/sw.cpp +++ b/sw.cpp @@ -78,7 +78,10 @@ void build(Solution &s) libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep; if (s.Settings.TargetOS.Type == OSType::Windows) + { libtesseract.Public += "ws2_32.lib"_l; + libtesseract.Protected += "NOMINMAX"_def; + } libtesseract.Variables["TESSERACT_MAJOR_VERSION"] = libtesseract.Variables["PACKAGE_MAJOR_VERSION"]; libtesseract.Variables["TESSERACT_MINOR_VERSION"] = libtesseract.Variables["PACKAGE_MINOR_VERSION"];