-
Notifications
You must be signed in to change notification settings - Fork 753
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
libleptonica-1.82.0.so on X86 - Exception #633
Comments
If of any use - there is no
|
Attempt of a dirty fix, copied one of those as libleptonica-1.82.0.so and then another one pops
Of course I am doing it wrong, that's not the way it should work
Copied them all to |
Hi Iongion, The code try to get (i've seen with debug) the right OS, but instead it gets Unix system....
I've also tried to set the CheckCustomSearchPath (with a directory inside the project on my PC), but i always receive that the file is not present... Many thanks for the help. |
Setting custom search path isn't going to help here as the root cause is
because dotnet thinks it's Linux for some reason. No idea why, presumably
there's something going on with your setup otherwise there'd be a lot more
reports of this issue (this is the first time I've heard of it in the 10
odd years or so despite to this side of things not changing)
…On Thu, 16 Feb 2023, 19:22 Genko71, ***@***.***> wrote:
Hi Iongion,
i've talk with Charles regarding this issue, andit's very strange.
I'm working on a genuine Microsoft windows 10 pro as you can see below.
[image: image]
<https://user-images.githubusercontent.com/124817980/219305765-92800990-2cbc-4b52-a7f1-24e10eff4a68.png>
The code try to get (i've seen with debug) the right OS, but instead it
gets Unix system....
So it tries to elaborates and load libraries as unix, instead of loading
the leptonica-1.82.0.dll.
Anyway, i've tried to force the code to take the Windows OS road instead
that unix, but i get an exception due to a null value received from this
part of code, especially from the two in bold char.
if (!loadedAssemblies.ContainsKey(fileName))
{
if (platformName == null)
platformName = SystemManager.GetPlatformName();
Logger.TraceInformation("Current platform: " + platformName);
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));
}
return loadedAssemblies[fileName];
I've also tried to set the CheckCustomSearchPath (with a directory inside
the project on my PC), but i always receive that the file is not present...
Many thanks for the help.
Genko
—
Reply to this email directly, view it on GitHub
<#633 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB7HSGTGUJUUDBOWMSIKRLWXXPWFANCNFSM6AAAAAAUX2GHWQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I've another machine in my home with this OS. i've enabled xamarin for VS2019 and activated HAXM Hyper-V, download and installed .net sdk 4.7 and 4.8 as requested. And the code give me back again Unix as OS, when i reach with the debug this point. I've also request support on MSDN Forum and i've received this answer. that is because the android os is linux, and your code is running in a android emulator (linux virtual machine). Maybe i'm doing somethings wrong? Thanks. |
Nope, but you are running it in a Linux VM so that does explain the
behaviour your seeing.
Unfortunately I really can't help you get it running on android or Linux.
Others have got it running using a Linux however not sure about android.
…On Fri, 17 Feb 2023, 21:29 Genko71, ***@***.***> wrote:
I've another machine in my home with this OS.
[image: image]
<https://user-images.githubusercontent.com/124817980/219618636-6b0898bc-ec70-4c8c-b464-86f3645e1be9.png>
i've enabled xamarin for VS2019 and activated HAXM Hyper-V, download and
installed .net sdk 4.7 and 4.8 as requested.
I've created the emulator in VS2019 as show below.
[image: image]
<https://user-images.githubusercontent.com/124817980/219616627-e7ff8982-d2f8-4124-9285-82a1961d83a2.png>
And the code give me back again Unix as OS, when i reach with the debug
this point.
[image: image]
<https://user-images.githubusercontent.com/124817980/219617060-76198b8a-9268-407e-a7bd-099fa92027d4.png>
I've also request support on MSDN Forum and i've received this answer.
*that is because the android os is linux, and your code is running in a
android emulator (linux virtual machine).*
Maybe i'm doing somethings wrong?
Thanks.
Genko
—
Reply to this email directly, view it on GitHub
<#633 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB7HSGQOY5TTSBJ5443ZPTWX5HIBANCNFSM6AAAAAAUX2GHWQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
OK, Excuse me, but i'm new to the develop of Application on mobile. Many thanks |
Hi to all,
i'm executing one of the example for tesseract, i've compiled the source and put it in the assembly of the main project of the solution.
debugging step by step this code :
at this point : using (var engine = new TesseractEngine(configurationFilePath, "eng", EngineMode.Default))
i see that in this part of the code of tesseract (LibraryLoader of InteropDotNet.cs)
the debug show me this information when it reach the comand in Bold (dllHandle = CheckCurrentAppDomain(fileName, platformName);)
and executing it, it gives me back this error:
the $exception.InnerException.Message contains this description : "Failed to find library "libleptonica-1.82.0.so" for platform x86."
Could you please help me?
Many thanks in advance.
Massimo
The text was updated successfully, but these errors were encountered: