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

NuttX example doesn't compile - missing Micro-CDR #13

Open
maxikrie opened this issue Jan 8, 2021 · 1 comment
Open

NuttX example doesn't compile - missing Micro-CDR #13

maxikrie opened this issue Jan 8, 2021 · 1 comment

Comments

@maxikrie
Copy link

maxikrie commented Jan 8, 2021

I am trying to compile the microxrceclient for NuttX from the master branch, which fails as it is missing a reference to the Micro-CDR library. Particularly client_main.c is missing a reference to #include <ucdr/microcdr.h>, but I suspect at a later stage there will also be linker errors.

I can see in microxrcedds/Makefile:97 that libmicrocdr.a is mentioned but it is nowhere built comparably to libmicroxrcedds_client.a, which is built from sources.

Can you please clarify?

@maxikrie
Copy link
Author

maxikrie commented Jan 11, 2021

It seems that this issue was also raised in #7 (comment) - unfortunately with no resolution.

In the meantime, I was able to shed some light on this issue and managed to compile the app. It seems that if Micro-CDR is present on the system (through install of Micro-XRCE-DDS), Micro-CDR is not pulled into the build of NuttX apps. I am not an expert with Cmake, but I feel this issue is seeded within Micro-XRCE-DDS-Client/CMakeLists.txt and Micro-XRCE-DDS-Client/cmake/SuperBuild.cmake, which are pulled into apps/microxrcedds.

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