Ask Your Question
0

micro-ROS colcon build error client & agent workspace

asked 2019-08-05 09:31:37 -0500

Viplav04 gravatar image

updated 2019-08-05 14:34:20 -0500

gvdhoorn gravatar image

Hi, I am new to micro-ROS and i am trying to work the tutorial: https://github.com/micro-ROS/micro-RO...

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-08-08 02:52:57 -0500

ralph-lange gravatar image

We're currently working on a new build system for micro-ROS, cf. https://answers.ros.org/question/3301...

Could you please give it a try? Feel free to open issues at https://github.com/micro-ROS/micro-ro... in case of problems such as missing dependencies.

edit flag offensive delete link more

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 <module> from rosidl_generator_py import generate_py ModuleNotFoundError: No module named 'rosidl_generator_py'

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.

Viplav04 gravatar imageViplav04 ( 2019-08-08 03:05:31 -0500 )edit
0

answered 2019-08-05 14:37:30 -0500

gvdhoorn gravatar image
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.

edit flag offensive delete link more

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 <module> from rosidl_generator_py import generate_py ModuleNotFoundError: No module named 'rosidl_generator_py'

How to resolve this?

Viplav04 gravatar imageViplav04 ( 2019-08-07 05:36:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-08-05 09:31:37 -0500

Seen: 30 times

Last updated: Aug 08