-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
this is my first report here, so I'm not sure if it is the right place.
System information (version)
- OpenCV => 3.4.0
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
Detailed description
the suggested script will not work as of now because the current leptonica version is 1.75.3 and not 1.74.4
thus when including it as a library it will fail to be found and the openCV compilation will fail after a long time.
another error can be found at the line that reads:
cmake --build $RepoSource --target install --config release
we should replace the "$RepoSource" with "." so it should be, otherwise it will look for Build/leptonica/leptonica instead of just Build/leptonica:
cmake --build . --target install --config release
Steps to reproduce
go to https://docs.opencv.org/3.4.0/db/d4c/tutorial_install_tesseract.html and follow the instructions
you will see: -DLept_LIBRARY="${myRepo}"/Install/leptonica/lib/leptonica-1.74.4.lib
as a side note there is also: -DTesseract_LIBRARY="${myRepo}"/Install/tesseract/lib/tesseract400.lib
so what happens is that currently when you pull the latest leptonica git repository it will create leptonica-1.75.3.lib in the install folder and not leptonica-1.74.4.lib