Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rsherman726 opened this issue Sep 4, 2023 · 6 comments
Open

Comments

@rsherman726
Copy link

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.

@ronaldofas
Copy link

I'm having the same problem

@wxharry
Copy link

wxharry commented Nov 28, 2023

The following directory structure fix my problem:
Debug

├── x64
│ ├── leptonica-1.82.0.dll
│ └── tesseract50.dll

└── Tesseract.dll

@PhillD2024
Copy link

PhillD2024 commented Jan 26, 2024

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.

@ransherraj
Copy link

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.

@carter-musick
Copy link

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

@Rsge
Copy link

Rsge commented Sep 3, 2024

... 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants