When running on Linux (Ubuntu) with .NET8 and the Tesseract NuGet
(wrapper from charlesw/tesseract), I get:
System.DllNotFoundException: Failed to find library "libleptonica-1.82.0.so" for platform x64.
Even when:
- libleptonica-1.82.0.so is placed in runtimes/linux-x64/native/
- NativeLibrary.Load is called manually before TesseractEngine
This seems to be caused by InteropDotNet loader not finding the .so
in expected runtime paths, nor following symlinks or preloaded libs.
Worked around by using external tesseract CLI instead.
When running on Linux (Ubuntu) with .NET8 and the Tesseract NuGet
(wrapper from charlesw/tesseract), I get:
System.DllNotFoundException: Failed to find library "libleptonica-1.82.0.so" for platform x64.
Even when:
This seems to be caused by InteropDotNet loader not finding the .so
in expected runtime paths, nor following symlinks or preloaded libs.
Worked around by using external tesseract CLI instead.