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

Compile plugin on Android #14

Open
i02bahip opened this issue Jun 23, 2020 · 3 comments
Open

Compile plugin on Android #14

i02bahip opened this issue Jun 23, 2020 · 3 comments

Comments

@i02bahip
Copy link

i02bahip commented Jun 23, 2020

Hi!
First, thanks for this amazing plugin!. Once I have managed to compile the plugin for windows, now I want to compile it for android, but I can't see clear instructions to do that. I can see in Android folder a build.bat and cleanup.bat. The first generate the .so file and the second move it to the "correct" folder. I'm able to do that, but I think I need to do something more that I don't know, b'cos when I build and run on my phone the first test scene, the videotest texture doesn't appear in the cube, only a solid color. So, any update in "how to compile on Android" steps would be appreciated for the unexperienced people in unity.. like me :)

Thanks!

@mrayy
Copy link
Owner

mrayy commented Jun 24, 2020

The Android branch I was working on it like 7months ago, and I had it running back then. I forgot to document it back then, but in the git repo, I have the pre-built .so libraries included. Could you try to use the already existing ones and build them for android and test?

@i02bahip
Copy link
Author

Hi Again!

I've tried to compile in the "android" branch with ndk r17c. I have assumed the following:

  • For compile the android libraries, I need to launch the "build.bat", and then "cleanup.bat".
  • I suppose the main target is to create a .so file and replace it in some place.

The first doubt, is I don't know even if that assumptions are right or not.
The second doubt, is what "build.bat" and "cleanup.bat" I need to launch, b'cos I see them in Android folder, and in Android/Gstreamer folder too. I can generate "libgstreamer_android.so" with both build.bat but with none of them seems that the plugin works when I replace this .so in "..mrayGStreamerUnity\Unity\UnityTests\Assets\Plugins\Android" (and actually, I don't know if is the right place) I build and run an android application for the first test scenario, and I only see a solid purple color as texture.

In summary... I have a lot of doubts! haha. So this is why I would appreciated so much a little help, like the right steps to follow to compile the library in android.

Thanks again!! Regards. (and sorry for my cheap english! haha)

@keli95566
Copy link

Hi there! @i02bahip were you able to build on Android? I ran into the same problem here and could very gratefully use some help, especially for building arm64 and opengles3!! Thank you so much!!

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

3 participants