Replies: 2 comments 5 replies
-
Hi, sorry for the late reply. I understand you need to build zenoh-c for Android? Btw, we recently released an alpha version of a Kotlin bindings for Zenoh that work very well for Android (https://github.com/eclipse-zenoh/zenoh-kotlin). I don't know the internals of your project but maybe you want to take a look into it, hopefully it can be helpful. There, to build the native libraries, we* use the Rust Android Gradle plugin which uses the Android NDK. *edit note: we use the Rust Android Gradle plugin... |
Beta Was this translation helpful? Give feedback.
-
Hi, no worries, thanks for taking your time. The app is written in C++ using OpenXR to interface with the device, so no Kotlin sadly (but maybe a JNI bridge from Kotlin to C++ would be possible but I smell a lot of work coming from this side). What I really like about zenoh compared to DDS implementations used in ROS2 is the ability to route outside of LAN, but this is not a strong requirement from the project. So far I've tried cross-compiling to aarch64-linux-android even though readme says it is not supported, but aarch64-unknown-linux-gnu is and I figured it maybe could be done though I'm currently not knowledgeable enough. Another thing I've considered is to try to use zenoh-pico, which is natively C, but this implementation also doesnt support Android builds at the moment. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've been wondering, whether it would be possible to cross-compile to aarch64-linux-android. I'm currently building a VR app in C++ that should be able to listen on some ROS2 topics and visualize them. The readme discusses cross-compiling to aarch64-unknown-linux-gnu which is working fine, but when I try to do an Android build, I'm getting errors in the linker stage.
Sorry, I'm not exactly familar with how Rust libraries compile in cmake, so I'm a bit confused.
Beta Was this translation helpful? Give feedback.
All reactions