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

Libmagic not compatibile with Xamarin on mobile devices #38

Open
Derpzz opened this issue Oct 15, 2020 · 0 comments
Open

Libmagic not compatibile with Xamarin on mobile devices #38

Derpzz opened this issue Oct 15, 2020 · 0 comments

Comments

@Derpzz
Copy link

Derpzz commented Oct 15, 2020

As discovered in #36 trying to run code using this dependency will sometimes cause this or a similar error message to appear:

System.DllNotFoundException: 'libmagic-1 assembly: type: member:(null)'

Since this is almoast the same issue as in #36 it can easily be fixed on Win-x64 machines running Xamarin.UWP by simply moving the libmagic files to the current bin folder as previously discussed.

But on Xamarin.Android the libmagic files need to be inserted into the apk file manually with an apk editor each time the app is build and are only supported by x64 devices, so that they have to be recompiled for ARM Android. I have not managed to get it working successfully yet and I have no way to test compability for iOS devices but expect the same issue there as well.

I actually neither know how to create the shared libraries for android that I guess are needed nor do I know if there is a simpler method to fix this issue. If anyone has an idea how to fix this issue and what to do with the libmagic .so and .mgc files on these mobile platforms I would be happy to hear about it :)

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

No branches or pull requests

1 participant