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] Support for Android? #53

Open
conor888 opened this issue Aug 17, 2022 · 3 comments
Open

[Question] Support for Android? #53

conor888 opened this issue Aug 17, 2022 · 3 comments

Comments

@conor888
Copy link

Not a bug report, just a question.

I'm currently trying to include RDMnet libraries into a project, and have built the library and included successfully so far for macOS, iOS, and Windows. The last piece I need is to compile RDMnet for Android, and I'm running into two problems:

  1. Build error complaining about uuid/uuid.h not being found. Apparently, this is not included in the C++ NDK used to compile for Android, but is included in the AOSP sources, so I just downloaded from there and dropped it in ./external/EtcPal/include/ just to get the build to succeed.
  2. Build errors complaining about avahi-client/client.h not being found. I understand this is expected for Linux builds, but I'm wondering if this is necessary on Android, as Android has its own "Network Service Discovery". Is this sufficient for mDNS support, or would I need to build avahi-client for Android and include the headers to build?

Thanks for any insight you can provide!

@ChristianReese
Copy link
Contributor

Hello @conorahern8 -

Thanks for reaching out to us. When developing this library, iOS and Android were not on the initial list of platforms to be supported specifically. It would seem iOS is supported by proxy of our Mac support - we were hoping the same would hold true for Android via the Linux support, but it sounds like there are some extra setup you'd need to do to get Avahi support in place. We're planning to eventually support these platforms officially (and feel free to look into it if you'd like - PRs are always welcome).

Christian

@conor888
Copy link
Author

conor888 commented Aug 17, 2022

Thanks for the reply!

I ended up getting the library to compile using RDMnet's own mDNS implementation, with the RDMNET_FORCE_LIGHTWEIGHT_DNS_QUERIER=YES cmake option. Haven't actually tested to see if everything is working on Android, but it finally built successfully which is promising.

@ChristianReese
Copy link
Contributor

Glad to hear it! Please keep us posted.

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

2 participants