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

DllNotFoundException for 'librhino3dm_native' on Android (.NET MAUI) #633

Open
if-mindesk opened this issue Jul 24, 2024 · 4 comments
Open
Assignees

Comments

@if-mindesk
Copy link

Hi,
I built a minimal .NET MAUI app that reads a 3dm file using File3dm.Read function.
On Windows it runs fine but when I try on Android phone using one of the emulators available with VS it fails with the exception DllNotFoundException for 'librhino3dm_native'.
You can find the repro project in the attached file.
I verified that the generated apk contains the librhino3dm_native.so file inside the folder lib-> x86_64.
To use it press the 'Pick rhino 3dm file' button and select a 3dm file.

TestRhino3dm.zip

I don't know if the issue is caused by the rhino nuget package or by MAUI.
Anyway any help will be useful.

@if-mindesk
Copy link
Author

Since I don't know if the problem is caused by Maui or by Rhino package I also opened an issue on MAUI dotnet/android#9536

@fraguada fraguada added the dotnet label Aug 9, 2024
@fraguada
Copy link
Member

fraguada commented Aug 9, 2024

Many times this error is thrown even though you might have a native library in a folder. It is thrown because it does not find a compatible native library. We are not currently building an Android compatible dotnet library. We used to do this, but stopped due to some complexities in the build pipeline. It is probably a good time to revisit this.

@fraguada fraguada self-assigned this Aug 9, 2024
@if-mindesk
Copy link
Author

if-mindesk commented Aug 13, 2024

Hi,
do you have an estimate of when when a preview of an Android compatible dotnet library will be available?
The old Rhino3dmIO.Android can't be used with .NET 7 and 8 because it depends on System.Drawing.Common that is only supported on Windows.

Thank you

@fraguada
Copy link
Member

fraguada commented Sep 2, 2024

No, I don't have an estimate.

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

No branches or pull requests

2 participants