micro-ROS colcon build error client & agent workspace
Hi, I am new to micro-ROS and i am trying to work the tutorial: https://github.com/micro-ROS/micro-ROS-doc/blob/master/docs/install_and_run.md
My machine has Linux 18.04 and dashing installed. Tried this with crystal too. While compiling the workspace my error is:
Starting >>> rmw_microxrcedds
--- stderr: rmw_microxrcedds
Error running 'clang-tidy': No such file or directory
make[2]: *** [gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
make[1]: *** [gtest/CMakeFiles/gtest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Error running 'clang-tidy': No such file or directory
make[2]: *** [gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o] Error 1
make[1]: *** [gtest/CMakeFiles/gtest_main.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< rmw_microxrcedds [ Exited with code 2 ]
Summary: 71 packages finished [10.3s]
1 package failed: rmw_microxrcedds
1 package had stderr output: rmw_microxrcedds
48 packages not processed
Please guide me what to do next. I can't really find anything on this and want this to work for further work.
Asked by Viplav04 on 2019-08-05 09:31:37 UTC
Answers
Error running 'clang-tidy': No such file or directory
According to the error message you don't have clang-tidy installed and the build script uses it.
micro-ROS/micro-ROS-doc#7 reports the same issue.
You can install clang-tidy
using sudo apt install clang-tidy
(on Ubuntu Bionic).
It would probably be a good idea to notify the maintainers/developers of micro-ROS that they don't list all their requirements/dependencies in the installation instructions.
Asked by gvdhoorn on 2019-08-05 14:37:30 UTC
Comments
I fixed this error by commenting out the clang-tidy in the Cmake file of microxrdds directory.
Now I have a new error with one of the generators while building the workspace as follows :
Traceback (most recent call last):
File "/opt/ros/crystal/share/rosidl_generator_py/cmake/../../../lib/rosidl_generator_py/rosidl_generator_py", line 8, in
How to resolve this?
Asked by Viplav04 on 2019-08-07 05:36:47 UTC
We're currently working on a new build system for micro-ROS, cf. https://answers.ros.org/question/330181/micro-ros-embedded-board-tutorial-error/?answer=330226#post-id-330226
Could you please give it a try? Feel free to open issues at https://github.com/micro-ROS/micro-ros-build/issues in case of problems such as missing dependencies.
Asked by ralph-lange on 2019-08-08 02:52:57 UTC
Comments
Hi,
I don't know if it's magic or what
after installing clang-tidy,
the new error while building the client workspace is: builtin_interface failed
Traceback (most recent call last): File "/opt/ros/crystal/share/rosidl_generator_py/cmake/../../../lib/rosidl_generator_py/rosidl_generator_py", line 8, in
but somehow I tried building the agent workspace in a new terminal after cloning the repositories and error in 1st terminal. Then built the client workspace after building agent workspace in the new terminal and it worked. My micro-Ros example is working.
Asked by Viplav04 on 2019-08-08 03:05:31 UTC
Comments