Replies: 1 comment 3 replies
-
Sorry not going to be much use with the Linux support. Recommend you have a
look on the issue tracker on how to set this up. You will need to provide
the library the nuget package only includes windows version as you noticed.
…On Mon, 13 Feb 2023, 22:01 Genko71, ***@***.***> wrote:
Hi to all,
i've big problem with dinamic link to the x86 dll for leptonica.
The example process starts with :
using (var engine = new TesseractEngine(@"./tessdata", "eng",
EngineMode.Default))
But i receive immediately an exception due to a null value received from
this process (module LibraryLoader inside InteropDotNet):
IntPtr dllHandle = CheckCustomSearchPath(fileName, platformName);
if (dllHandle == IntPtr.Zero)
dllHandle = CheckExecutingAssemblyDomain(fileName, platformName);
if (dllHandle == IntPtr.Zero)
dllHandle = CheckCurrentAppDomain(fileName, platformName);
if (dllHandle == IntPtr.Zero)
dllHandle = CheckCurrentAppDomainBin(fileName, platformName);
if (dllHandle == IntPtr.Zero)
dllHandle = CheckWorkingDirecotry(fileName, platformName);
if (dllHandle != IntPtr.Zero)
loadedAssemblies[fileName] = dllHandle;
else
throw new DllNotFoundException(string.Format("Failed to find library \"{0}\" for platform {1}.", fileName, platformName));
One more thing is that in the module UnixLibraryLoaderLogic inside
InteropDotNet the below code check the operating system type, and choose
the File extension for the leptonica libraries...the strange thing is that
there isn't a file in the project with extension .dylib or .os, but only
.dll
private static readonly string FileExtension =
SystemManager.GetOperatingSystem() == OperatingSystem.MacOSX ? ".dylib" :
".so";
other thing is that this code add the constant "lib" before the name of
the libraries:
if (!fileName.StartsWith("lib", StringComparison.OrdinalIgnoreCase))
fileName = "lib" + fileName;
So, the final name to search of the leptonica libraries,will be :
libleptonica.1.8.20.os, that does't exist.
Thank in advance for the help.
—
Reply to this email directly, view it on GitHub
<#635>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB7HSHRYWOTJYAGEJOC2NLWXIIAFANCNFSM6AAAAAAU2DRTCU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi to all,
i've big problem with dinamic link to the x86 dll for leptonica.
The example process starts with :
using (var engine = new TesseractEngine(@"./tessdata", "eng", EngineMode.Default))
But i receive immediately an exception due to a null value received from this process (module LibraryLoader inside InteropDotNet):
One more thing is that in the module UnixLibraryLoaderLogic inside InteropDotNet the below code check the operating system type, and choose the File extension for the leptonica libraries...the strange thing is that there isn't a file in the project with extension .dylib or .os, but only .dll
private static readonly string FileExtension = SystemManager.GetOperatingSystem() == OperatingSystem.MacOSX ? ".dylib" : ".so";
other thing is that this code add the constant "lib" before the name of the libraries:
So, the final name to search of the leptonica libraries,will be : libleptonica.1.8.20.os, that does't exist.
Thank in advance for the help.
Beta Was this translation helpful? Give feedback.
All reactions