ROS2 build fail Turtlebot3 package
Following instructions from: http://emanual.robotis.com/docs/en/pl... For installing ROS2 for Turtlebot3. Turtlebot3 is running Raspbian Stretch with Desktop 4.19.
Error pops up after instructions:
$ cd tb3_sbc_settings
$ ./install.sh
Unable to debug the installation issue of Micro-XRCE-DDS-Agent.
Tried installing the agent package standalone to no avail. MicroXRCEAgent doesn't start the lidar etc services after the ./run.sh command.
Error message after ./install.sh mentioned below. Any leads on how to get the system to build and MicroXRCE activate will be appreciated.
-- Detecting CXX compile features - done
-- Setting build type to 'Release' as none was specified.
-- **Could NOT find tinyxml2 (missing: TINYXML2_LIBRARY TINYXML2_INCLUDE_DIR)**
-- Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libcrypto.so (found version "1.1.1c")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/tb3_sbc_settings/Micro-XRCE-DDS-Agent/build
[ 95%] Performing build step for 'uagent'
Scanning dependencies of target microxrcedds_agent
[ 2%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/Agent.cpp.o
[ 5%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/Root.cpp.o
[ 7%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/processor/Processor.cpp.o
[ 10%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/client/ProxyClient.cpp.o
[ 12%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/participant/Participant.cpp.o
[ 15%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/topic/Topic.cpp.o
[ 17%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/publisher/Publisher.cpp.o
[ 20%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/subscriber/Subscriber.cpp.o
[ 23%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/datawriter/DataWriter.cpp.o
[ 25%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/datareader/DataReader.cpp.o
[ 28%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/object/XRCEObject.cpp.o
[ 30%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/types/XRCETypes.cpp.o
[ 33%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/types/MessageHeader.cpp.o
[ 35%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/types/SubMessageHeader.cpp.o
[ 38%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/message/InputMessage.cpp.o
[ 41%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/message/OutputMessage.cpp.o
[ 43%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/Server.cpp.o
[ 46%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/udp/UDPServerBase.cpp.o
[ 48%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/tcp/TCPServerBase.cpp.o
[ 51%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/serial/SerialServerBase.cpp.o
[ 53%] Building C object CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/serial/serial_protocol.c.o
[ 56%] Building CXX object CMakeFiles/microxrcedds_agent.dir/src/cpp/transport/udp/UDPServerLinux.cpp.o
/home/pi/tb3_sbc_settings/Micro-XRCE-DDS-Agent/src/cpp/transport/udp/UDPServerLinux.cpp: In member function ‘virtual bool eprosima::uxr::UDPv4Agent::recv_message(eprosima::uxr::InputPacket&, int)’:
/home/pi/tb3_sbc_settings/Micro-XRCE-DDS-Agent/src/cpp/transport/udp/UDPServerLinux.cpp:202:52: warning: cast from ‘sockaddr*’ to ‘sockaddr_in*’ increases required alignment of target type [-Wcast-align]
uint32_t addr = ((struct sockaddr_in*)&client_addr)->sin_addr.s_addr;
^~~~~~~~~~~
/home/pi/tb3_sbc_settings/Micro-XRCE-DDS-Agent/src/cpp/transport/udp/UDPServerLinux.cpp:203 ...
As you can see from the link you mentioned, we use Ubuntu by default, not Raspbian. Perhaps you can easily install it by checking for the latest updates.