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

Building Cyclone DDS for Android #2026

Open
sahinsengul opened this issue Jun 9, 2024 · 2 comments
Open

Building Cyclone DDS for Android #2026

sahinsengul opened this issue Jun 9, 2024 · 2 comments

Comments

@sahinsengul
Copy link

I tried to build cyclone dds for Android and followed the instructions in "ports/android/README.md" but after building cyclone dds, ddsperf binary file was not created under the build.android/bin/ddsperf directory. Is the document no longer up to date? If not, how can I use cyclone dds on android? thank you in advance for your help

@trittsv
Copy link
Contributor

trittsv commented Jun 26, 2024

Hey what build system are you using? I am crosscompiling cyclonedds via CMake without any problems.

@eboasson
Copy link
Contributor

There's this:

option(BUILD_DDSPERF "Build ddsperf tool" ${not_crosscompiling})

You can build the Cyclone core without building idlc, but for building ddsperf you a need an idlc for the host machine. So this makes some sense, but it is a bit inelegant. It would perhaps be nicer if idlc were a separate package and it would auto-build idlc if not available and not doing a cross-build, etc., etc., but that's not currently the case.

I think your problem can be solved by doing a host build first to get a copy of idlc, then do a cross build for Android (like it says in the README) with -DBUILD_DDSPERF=1 added to the cmake command.

A PR for the Android port README.md with better instructions would be welcome.

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