charlesw / tesseract

A .Net wrapper for tesseract-ocr
Apache License 2.0
2.25k stars 741 forks source link

No package 'lept' found #512

Open JosepBalague opened 4 years ago

JosepBalague commented 4 years ago

CMakeOutput.log

Just follwing your script but I'm getting the error "No package 'lept' found"

Please can you help me? leptonica-1.78.0d.lib is available in /LIBPATH:"C:\tempo\vcpkg\installed\x86-windows\debug\lib"

Cheers

imatge

imatge

imatge

charlesw commented 4 years ago

What version of Tesseract source are you using? Looks like there may have been some breaking changes since I wrote the notes.

On Tue, 31 Mar 2020, 01:14 Josep, notifications@github.com wrote:

CMakeOutput.log https://github.com/charlesw/tesseract/files/4403330/CMakeOutput.log

Just follwing your script but I'm getting the error "No package 'lept' found"

Please can you help me? leptonica-1.78.0d.lib is available in /LIBPATH:"C:\tempo\vcpkg\installed\x86-windows\debug\lib"

Cheers

[image: imatge] https://user-images.githubusercontent.com/4932314/77922335-330ccf00-72a1-11ea-82b4-a05d1b430dfe.png

[image: imatge] https://user-images.githubusercontent.com/4932314/77922534-76673d80-72a1-11ea-8931-5130f28e9923.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/charlesw/tesseract/issues/512, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7HSEXBFIYV2ZMT2M54P3RKCSMRANCNFSM4LWT4ENA .

JosepBalague commented 4 years ago

git checkout -b 4.1.0 4.1.0

charlesw commented 4 years ago

Okay, ill check it out when I can. Probably this weekend.

Note that the method I use and is described on the wiki only uses vcpkg to build leptonica, not Tesseract. Which is probably why it didn't find the vcpkg version of leptonica.

It should however have found the version of leptonica you built first unless they changed the lib name or something.

On Tue, 31 Mar 2020, 18:25 Josep, notifications@github.com wrote:

git checkout -b 4.1.0 4.1.0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/charlesw/tesseract/issues/512#issuecomment-606449592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7HSACYTOWL2AIUMHC75DRKGLFXANCNFSM4LWT4ENA .

JosepBalague commented 4 years ago

@charlesw, did you find the bug?

charlesw commented 4 years ago

No the instructions provided worked fine for me using the following versions of the library leptonica 1.79 and tesseract 4.1.0.

I had a quick look at your cmake log and it doesn't appear to be complete so not sure what you specific issue is however I suspect it's environmental. Just to be clear the environment I'm using is the following:

The general gist is that leptonica is built using vcpkg to provide the dependent image libs (libtiff etc), while tesseract is built without without vcpkg and so should find leptonica version you just built by looking in the directory specified by the -DCMAKE_INSTALL_PREFIX option.

I'm also assuming your using the instructions outlined here: https://github.com/charlesw/tesseract/wiki/Compiling-Tesseract-and-Libleptonica-(using-vcpkg)

charlesw commented 4 years ago

Actually there has been some changes in leptonica 1.79 and tesseract 4.1.1, working on preping a release over the next couple days time permitting. Will release some updated instructions then however the instructions should have worked as is for 1.78 and 4.1.0.

Stay tuned...

JosepBalague commented 4 years ago

👍 Thanks

Yes, I'm using your link https://github.com/charlesw/tesseract/wiki/Compiling-Tesseract-and-Libleptonica-(using-vcpkg)

comhk commented 3 years ago

In my case, pkgconfig just couldn't find the compiled lept. I tried pkg-config --list-all and lept wasn't in the list. Having set PKG_CONFIG_PATH=C:\your\path\to\installed\build\x64\lib\pkgconfig helped me solve the problem.