tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Failed to find library "leptonica-1.82.0.dll" for platform x64.

Open rsherman726 opened this issue 1 year ago • 6 comments

I have the asp.net demo with Tesseract 5.2 and I get: Failed to find library "leptonica-1.82.0.dll" for platform x64. And I can't get past that error. There is no Leptonica dll in the bin Directory. Tesseract is there but no Leptonica. I have Visual Studio 2022. I have the current VC Redist x86 & x64 installed and re-installed and still the same error.

rsherman726 avatar Sep 04 '23 23:09 rsherman726

I'm having the same problem

ronaldofas avatar Sep 25 '23 20:09 ronaldofas

The following directory structure fix my problem: Debug │ ├── x64 │ ├── leptonica-1.82.0.dll │ └── tesseract50.dll │ └── Tesseract.dll

wxharry avatar Nov 28 '23 17:11 wxharry

Did you have to MANUALLY copy the leptonica-1.82.0.dll and tesseract50.dll to the x64 folder to solve this problem? I am having the same issues as you but I am trying to automate the install of the files through the visual studio setup/installer project. unfortunately, the leptonica-1.82.0.dll and tesseract50.dll are not seen as a dependency in the project because they are copied when running the project in debug mode from the solution packages folder to the bin folder by Visual Studio. All attempts by our developers to solve this problem have failed.

PhillD2024 avatar Jan 26 '24 05:01 PhillD2024

Hi, I am getting this error. If any idea, please suggest. System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.' DllNotFoundException: Failed to find library "leptonica-1.82.0.dll" for platform x86.

ransherraj avatar Apr 16 '24 09:04 ransherraj

I was having this issue running on a VM with Windows Server and installing the VC Redist was what I needed

carter-musick avatar Apr 17 '24 21:04 carter-musick

... installing the VC Redist was what I needed

Completely unintuitive at first, given the error message, but this worked for me, too.

Directory structure as given by wxharry: [Main EXE Dir] │ ├── x64 │ ├── leptonica-1.82.0.dll │ └── tesseract50.dll │ └── Tesseract.dll

Release version was working on my debugging machine like this, but not on the server. Installed Visual C++ Redistributable 2015-2022 x64 there and it worked perfectly.

Rsge avatar Sep 03 '24 13:09 Rsge