tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Latest version (4.1.1) doesn't work on Linux

Open arthrp opened this issue 4 years ago • 4 comments

When trying to run it, you get the following error:

 ---> System.DllNotFoundException: Failed to find library "libleptonica-1.80.0.so" for platform x64.
   at InteropDotNet.LibraryLoader.LoadLibrary(String fileName, String platformName)
   at InteropRuntimeImplementer.LeptonicaApiSignaturesInstance.LeptonicaApiSignaturesImplementation..ctor(LibraryLoader loader)

And sure enough, there's no libleptonica-1.80.0.so in my x64 folder.

arthrp avatar Nov 18 '20 17:11 arthrp

https://github.com/charlesw/tesseract/issues/503#issuecomment-613430901 This should help

fleimeris avatar Nov 22 '20 19:11 fleimeris

@fleimeris It would if there was libleptonica-1.80 in my distro's repos. But thanks.

arthrp avatar Nov 22 '20 21:11 arthrp

Yeah, expecting people to install the correct dependency from their distribution's repositories is not sustainable. As I note here, this project should be bundling its dependencies inside the nupkg for distribution. That will ensure that it always has the right version of whatever it needs distributed along with it.

Library versions can change during distro upgrades which would freeze which one(s) this project could work with. Which comes with its own set of frustrations and risks.

atrauzzi avatar Mar 15 '21 15:03 atrauzzi

x64.zip I compiled it for linux

chenjing1294 avatar Mar 16 '23 12:03 chenjing1294