eProsima / Micro-XRCE-DDS

An XRCE DDS implementation. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
156 stars 17 forks source link

I cannot build ShapesDemo example from Micro-XRCE-DDS #105

Closed pavelpgt closed 3 years ago

pavelpgt commented 3 years ago

I followed the steps from Installing Agent and Client and add -DUCLIENT_PROFILE_UDP=ON to the cmake ..

Unfortunately, whatever I do, I am still getting

CMake Warning at examples/ShapesDemo/CMakeLists.txt:29 (message):
Can not compile example: The UCLIENT_PROFILE_UDP, UCLIENT_PROFILE_TCP and UCLIENT_PROFILE_SERIAL must be enabled.

Do you have any suggestions, how to build the shapes demo example?

Pavel

pablogs9 commented 3 years ago

Hello @pavelpgt,

I have been testing the examples and everything seems to be ok. Please make sure that you are using master branch and that you set -DUXRCE_BUILD_EXAMPLES=ON. Here you can check my session testing that:

https://asciinema.org/a/Yn3n3K3f2f3wJjMA79yptUBQz

Let me know if this solves your issue.

PD: I have found that by default this repo does not build the agent executable, just the agent library. Solved in https://github.com/eProsima/Micro-XRCE-DDS/pull/106.

pavelpgt commented 3 years ago

Hello Pablo,

thank you for the verification of the build. I forgot to mention that I use OS Windows 10. I created a recording as well: asciinema.org video. It is 18 minutes long but you can see, that ShapesDemo example is not built due to a problem with option -DUCLIENT_PROFILE_UDP=ON (can be seen in 1:52 min)

Do you have any suggestions?

pablogs9 commented 3 years ago

Ok, understood...

This demo requires all the transports profiles to be activated, namely: UDP, TCP, and Serial. But we do not have support for XRCE-Client Serial transport under Windows.

I have solved it in https://github.com/eProsima/Micro-XRCE-DDS-Client/pull/262. Can you test this branch?

pablogs9 commented 3 years ago

I'm closing since eProsima/Micro-XRCE-DDS-Client#262 is merged, reopen if you find any problem.