eProsima / Micro-XRCE-DDS-Agent

Micro XRCE-DDS Agent respository. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
113 stars 81 forks source link

Could not run make on macOS #371

Open Latek opened 4 months ago

Latek commented 4 months ago

Issue template

Steps to reproduce the issue

Running the installation according to the guide: https://micro-xrce-dds.docs.eprosima.com/en/latest/installation.html#installing-the-agent-standalone.

Expected behavior

To build the agent without errors.

Actual behavior

[ 66%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/can/CanAgentLinux.cpp.o /Users/szymon/dev/iot/Micro-XRCE-DDS-Agent/src/cpp/transport/can/CanAgentLinux.cpp:24:10: fatal error: 'linux/can.h' file not found

include <linux/can.h>

     ^~~~~~~~~~~~~

1 error generated. make[5]: [CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/can/CanAgentLinux.cpp.o] Error 1 make[4]: [CMakeFiles/microxrcedds_agent.dir/all] Error 2 make[3]: [all] Error 2 make[2]: [uagent-prefix/src/uagent-stamp/uagent-build] Error 2 make[1]: [CMakeFiles/uagent.dir/all] Error 2 make: [all] Error 2

Additional information

I don't need CAN right now. Is there a way to build the agent and include or exclude some transport methods?