Android/iOS support

Issue #85 new
Tony Hoyle created an issue

I did a package for iOS and android. It just piggy backs on the source from bitbucket but it's only a couple of file changes.

Changed files are in https://github.com/TonyHoyle/AssimpNet.Mobile/tree/master/AssimpNet.Android/Unmanaged

There's also a couple of extra csproj files higher up in the tree.

As it needs separate csproj files for the two platforms I quite understand if you don't want to merge it (mobile has specific requirements wrt. library support and locations on both platforms, so although the code is the same the projects can't be).

Android is mostly the same as Linux with some extra rules - the libraries must end in .so (no version number) and be in the package in the /lib/<architecture>/ tree, which is searched automatically at runtime.

iOS must be statically linked.. you dlopen(null) the framework to get a special handle which can be used to find the functions. The project is a xamarin binding library, which does the right bits internally to make this work (not entirely sure what, but it doesn't work as a normal class library).

I've not done a lot of testing.. I really just needed to load some fbx files to create meshes locally, although can't see why it would break as such, being almost entirely the same code.

Comments (1)

  1. Nicholas Woodfield repo owner

    Thanks, maybe file a PR and keep those separate csproj’s in a separate folder. Officially unsupported by me but there in the repo for others to use?

  2. Log in to comment