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

Question: Does this plugin work with android builds? #11

Open
MurkesM opened this issue Dec 5, 2022 · 7 comments
Open

Question: Does this plugin work with android builds? #11

MurkesM opened this issue Dec 5, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@MurkesM
Copy link

MurkesM commented Dec 5, 2022

No description provided.

@MurkesM
Copy link
Author

MurkesM commented Dec 12, 2022

If not is there a way to get it to work on android?

@Looooong
Copy link
Owner

As far as I know, FreeImage seems to only support Windows, Linux and MacOS. You need to find a way to build FreeImage library that targets Android.

@MurkesM
Copy link
Author

MurkesM commented Dec 13, 2022

There is another async image loader package that has android support for free image and bc I liked this package better for working with I just grabbed the specific android file needed to make it compatible and put it in this package. The other package: https://github.com/mlavik1/unity-async-textureimport-package
Anyone whos trying to do the same can check out the issue I opened on the other package. mlavik1/unity-async-textureimport-package#1
Unity_lDjN1q7gUA
Unity_r4gTohjaRA

@mlavik1
Copy link

mlavik1 commented Dec 13, 2022

Also, @Looooong if you want to support Android in your releases, feel free to just grab the Android binaries from here: https://github.com/mlavik1/unity-async-textureimport-package/actions/runs/3685186662
(the artifacts called "arm64-v8a-unity-2021", "armeabi-v7a-unity-2022" etc. )

There are different binaries for 2021.2+ and 2022.2+ since they use different versions of NDK

Maybe I should set up a separate repository that provies FreeImage binaries for Unity.

@Looooong
Copy link
Owner

@mlavik1 Thanks for the binaries. Btw, do you happen to have a binary for MacOS or iOS as well?

@Looooong
Copy link
Owner

@mlavik1

Maybe I should set up a separate repository that provies FreeImage binaries for Unity.

I second this decision. I think that it's not possible to bundle android binary into this package, because different version of Unity requires different version of NDK.

@Looooong Looooong self-assigned this Dec 15, 2022
@Looooong Looooong added the enhancement New feature or request label Dec 15, 2022
@mlavik1
Copy link

mlavik1 commented Dec 15, 2022

@mlavik1 Thanks for the binaries. Btw, do you happen to have a binary for MacOS or iOS as well?

No, but I'll try adding that to the build actions. I'll have no way of testing the generated binaries though, since I don't own a Mac, but I suppose they should just work anyway.

And yes, you're right. It would maybe be possible if you rename the .so files depending on the UnityVersion, and then load them differently depending on the Unity version, but it's probably better to just create different .unitypackages for each version of Unity.

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

No branches or pull requests

3 participants