zenoh-c icon indicating copy to clipboard operation
zenoh-c copied to clipboard

Zenoh unresolved reference to shm in Android 13.

Open Mallets opened this issue 1 year ago • 4 comments

Discussed in https://github.com/eclipse-zenoh/roadmap/discussions/138

Originally posted by ashirvad-acsia May 29, 2024 While adopting the zenoh pub sub middleware implementation for Android 13 we are facing the following issues while integrating zenoh library: Undefined reference to shm - shared memory APIs :shared_memory::unix::create_mapping::he2aa66c0237b54c1: error: undefined reference to 'shm_open' To resolve this issue we tried to disable the shared memory feature in the cmakelist file by the following modification: declare_cache_var(ZENOHC_BUILD_WITH_SHARED_MEMORY FALSE BOOL "Enable shared-memory zenoh-c feature")
However the build error remains same for the shm dependency. Could anybody please suggest a solution?

We are using the following environment: Zeno C API with a C++ wrapper for our middleware C++ implementation Target : Android 13 - running in an emulator

Mallets avatar May 30 '24 08:05 Mallets

@yellowhatter this issue seems to be blocked by the capability of zenoh-c to fully disable shared-memory support.

Mallets avatar May 30 '24 08:05 Mallets

@milyin @DenisBiryukov91 FYI

yellowhatter avatar May 30 '24 12:05 yellowhatter

@yellowhatter this issue seems to be blocked by the capability of zenoh-c to fully disable shared-memory support.

Being able to build this natively in Android is pretty important. Thanks for moving it to the roadmap discussions for 1.0.0.

sjames avatar Jun 02 '24 05:06 sjames

@Mallets @sjames WIP: https://github.com/eclipse-zenoh/zenoh-c/issues/406

yellowhatter avatar Jun 02 '24 17:06 yellowhatter

Closed by #406

Mallets avatar Sep 13 '24 09:09 Mallets