-
Some of the things I've tried are in lucasw/ros_one2z#2 - I think have zenoh-cpp built and installed correctly and have a libzenohc.so and zenohc.hxx, zenoh.h, and zenoh.hxx, some lib/cmake zenoh files (but they don't provide a zenoh_INCLUDE_DIRECTORY or similar? I had to specify the include path on the cmake command line for my project) in my custom install destination, but I'm not sure what to put in my CMakeLists.txt to find and link to it. Should it be something like this?
(It seems like zenoh-c and zenoh-cpp ought to install to Currently with that I get
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The problem seems to be that zenoh-c was not included before. The zenoh-cpp is a wrapper for zenoh-c and zenoh-pico and can work without any of these components. If zenoh-c is missing, the target zenohcxx::zenohc::lib is not defined too. See https://github.com/eclipse-zenoh/zenoh-cpp/blob/main/CMakeLists.txt#40, same logic is in the installed package. There is issue about insufficient diagnostic when required library is not included: eclipse-zenoh/zenoh-cpp#58 There are also few examples of simplest possible CMakeLists.txt's for zenoh-cpp: https://github.com/eclipse-zenoh/zenoh-cpp/tree/main/examples/simple |
Beta Was this translation helpful? Give feedback.
The problem seems to be that zenoh-c was not included before. The zenoh-cpp is a wrapper for zenoh-c and zenoh-pico and can work without any of these components. If zenoh-c is missing, the target zenohcxx::zenohc::lib is not defined too. See https://github.com/eclipse-zenoh/zenoh-cpp/blob/main/CMakeLists.txt#40, same logic is in the installed package.
There is issue about insufficient diagnostic when required library is not included: eclipse-zenoh/zenoh-cpp#58
There are also few examples of simplest possible CMakeLists.txt's for zenoh-cpp: https://github.com/eclipse-zenoh/zenoh-cpp/tree/main/examples/simple