How to Compile Tesseract Git Project on Windows

Jan 28, 2016 No Comments by 119 Views

I’ve spend almost 2 day struggling how to compile tesseract project on Windows, encountered too many errors, missing ddl, path issue, etc.. To make it short, here are the easy and complete step on how to compile Tesseract Github Project on Windows 10, 8, 7 or XP.


Program Requirement:

First Thing, you need to have a C++ Compiler for tesseract and a Linux Terminal to your Windows in order to run Linux code. You need to download the following program:

1. Visual Studio Community 2015, You can download it for FREE from this link (

2. Cygwin Terminal at (setup-x86_64.exe for 64bit and setup-x86.exe for 32bit)
I’ve tried using “Git for Windows”, “Cmake” and “MingW”, but I have hard time looking for missing DLL.


After you download the programs, We have to activate first the C++ libraries from Visual Studio and install other dependencies program from Cygwin.

1. Install Visual Studio Community 2015, after installation open the Visual Studio and go to File > New > Project, Then go to “Visual C++”, then install.

2. Now Install Cygwin (Install it on drive C), then check the following item to install: Devel, Archieve and Graphics (You can filter out what you only need, but I suggest to install everything from this category).



Now that we already have the compiler and linux terminal. We can now compile tesseract.

1. On Cygwin, the default folder location of terminal can be found at (C:\cygwin64\home\YOUR_USERNAME).

2. (Optional) If you want linux code to work in your Command Prompt, you have to add the bin directory of Cygwin to the Environment Variables on your computer.. Just go to properties of My Computer, then Advanced system Settings, then click “Environment Variables”.  A window will pop up, below find and edit “Path”.. Now click “New” then browse the bin directory of Cygwin (C:\cygwin64\bin\). then OK.


3. Open Cygwin Terminal and Type the following Codes:

git clone
git clone
cd leptonica
mkdir build
cd build
cmake ..
cmake --build .
cd ../
cd ../
cd tesseract
mkdir build
cmake .. -DLeptonica_DIR=~/leptonica/build
cmake --build .

4. Now that you have successfully compile Tesseract, Last thing we have to do is to get the trained data containing the languages. Open Cygwin Terminal and do the following code

cd tesseract
cd build
cd bin
git clone tessdata

5. When done, go to your cygwin folder (C:\cygwin64\home\YOUR_USERNAME\leptonica\build\bin) and copy the DLL (cyglept173.dll)

6. Paste it on (C:\cygwin64\home\YOUR_USERNAME\tesseract\build\bin)

7. Now that we have the files to run tesseract on Windows, Let’s try running it.


8. Paste any JPG, GIF, PNG files on (C:\cygwin64\home\YOUR_USERNAME\tesseract\build\bin) you wish to convert to text. You can grab my example image below. Don’t forget to paste the image on (tesseract\build\bin)

9. Now open Command Prompt, then code the following:
cd c:
cd cygwin64
cd home
cd tesseract
cd build
cd bin
tesseract "YOUR_IMAGE.jpg" stdout -l eng -psm 6

You can alternatively output the result into text files by this:

tesseract "YOUR_IMAGE.jpg" "RESULT.txt" -l eng -psm 6

10. And here’s the final output:

So, everything works now! Thank you for taking time doing my instruction, If you have problem please leave a comment below.

Compiled Tesseract:
You can also download my compiled version at this link:

Please don’t mind the code below, its for search engine so other people can see this post if they encounter one of the error below from missing dependencies library.

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

C++, Geeks, Programming Read more

Detective Conan – Edogawa Conan Missing Case English Subtitle Download

Jan 27, 2016 No Comments by 32 Views

If you are looking for English Subtitle of the Detective Conan 5th TV Special “The Disappearance of Conan Edogawa: The Worst Two Days in History” or other name “Edogawa Missing Case”. You can finally download the English translated subtitle (.srt) here.


Download link below
English Subtitle (

English Subtitle via Google Translate (

If the subtitle is not synch with your video, you can resynch it with this web tool (

Uncategorized Read more

How to fixed Hinge Problem on Laptop (DIY)

Jan 11, 2016 No Comments

Some laptop on the long run will give you hinge problem, the cause of it is by too much heat from the fan and makes the plastic weak and easy to break. Since the broken parts of the laptop is plastic and the hinges needs so much support in order to hold the pressure from [...]

Read more

Alberto’s Pizza Gensan Delivery Contact Number

Jan 11, 2016 No Comments

Craving for Cheap and Delicious Pizza? You can order at Alberto’s Pizza, located infront of Lagao Wet Market (“Lagao Talipapa or Lagao Roundball”). Their specialties is thin-crust pizza and have different selection of pizza from Hunggarian, Taco’s, Chicken, Cookies, Bacon, Mushroom, Sisig, Sardines and a lot more.. You can contact their landline at (083) 878-0412. Alberto’s [...]

Read more

Playing Video’s Becomes Dark/Black on First Run from Browsers (Windows 10, 8.1)

Jan 09, 2016 No Comments

If you having problem playing Videos on the web browsers (Chrome, Edge, Firefox) that becomes “BLACK/DARK” on the first play, this problem exist on Windows 10 or Windows 8 OS. I tried different solution like reformatting my PC, installing latest flash player, codec, installing latest driver for my videocard AMD also tried changing it to [...]

Read more

Bayfront Gensan Noodle House Pick Up Order Contact Information

Jan 08, 2016 No Comments

Are you looking for some real foods? Maybe Bayfront’s Meals are for you! You can order a head by calling “Bayfront Noodle House” contact number (083) 552-2301 and pick up your orders at their stores at P Acharon Boulevard, General Santos City infront of Matutum Hotel (unfortunately delivery is not yet available). Check their Menu’s [...]

Read more

Samsung Gear S2 – Stuck at 99% on Samsung Gear Manager

Nov 25, 2015 No Comments

*Update – Good News! Found a solution to the problem. I successfully install the update by using a VPN from Avast. Just search on Google Playstore “Avast Secureline” and take the 7 day trial then connect to a US based countries. Then try downloading again the update from Samsung Gear Manager. Please leave comment when [...]

Read more

How to Disable Autoplay Video on Facebook

Oct 08, 2015 No Comments

Are you annoyed with those videos on your timeline from auto-playing? What is bad is - it also eats your internet bandwidth while those videos play. You can actually disable this auto-play feature from your Facebook settings. Please follow the instruction below to disable it. 1. Go to your Facebook Settings 2. On the left corner [...]

Read more

Gensan Chowking Delivery Contact Number

Sep 02, 2015 No Comments

If you are looking for Chowking Delivery Contact number, you come in the right place.. Check the contact number below and dial - to get your orders! Chowking Highway Contact Number: Bayantel: 301-8888 PLDT: 554-7418 Smart: 09292148857 Globe: 09176420503

Read more

McDonald’s Gensan Delivery Contact Information

Aug 02, 2015 No Comments

Hello Generals! You are probably looking for McDonald’s (MCDO) delivery contact number in Gensan. Below are the list of contact number where you can order: McDonald’s Gensan Highway Telephone: (083) 552-6236 If you have something to add or suggestion, don’t hesitate to write a comment below!

Read more Protection Status
© 2011 - All about General Santos City. Sitemap | Privacy Policy | Guidelines

Coded and Designed by Erwin Bantilan