Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Questions about build errors #7

Open
ghost opened this issue Mar 19, 2021 · 1 comment
Open

Questions about build errors #7

ghost opened this issue Mar 19, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 19, 2021

Nice to meet you.
I am asking a question from Japan.
I cloned your github and built it. However, I get an error that the include file does not exist.

【Environment】
ubuntu20.04
ROS2 foxy

【Nonexistent file name】
rosidl_generator_cpp/message_initialization.hpp

【error description】

Starting >>> raspimouse_msgs
Starting >>> cartographer_ros_msgs
Finished <<< raspimouse_msgs [4.23s]                                 
Starting >>> raspimouse_description
Finished <<< raspimouse_description [1.27s]
Starting >>> rplidar_ros
Finished <<< cartographer_ros_msgs [6.44s]
Starting >>> raspimouse
Finished <<< rplidar_ros [2.50s]                                   
Starting >>> cartographer_ros
--- stderr: raspimouse   
/home/user/ros/foxy/src/raspimouse_ros2/raspimouse_driver/raspimouse/src/raspimouse_component.cpp:25:10: fatal error: rosidl_generator_cpp/message_initialization.hpp: There are no such files or directories.
   25 | #include <rosidl_generator_cpp/message_initialization.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/raspimouse_component.dir/build.make:63: CMakeFiles/raspimouse_component.dir/src/raspimouse_component.cpp.o] エラー 1
make[1]: *** [CMakeFiles/Makefile2:107: CMakeFiles/raspimouse_component.dir/all] エラー 2
make: *** [Makefile:141: all] エラー 2
---
Failed   <<< raspimouse [3.64s, exited with code 2]
Aborted  <<< cartographer_ros [3.87s]                             

Summary: 4 packages finished [12.2s]
  1 package failed: raspimouse
  1 package aborted: cartographer_ros
  1 package had stderr output: raspimouse
  4 packages not processed

If you have a solution, I would appreciate it if you could let me know.

@youtalk
Copy link
Owner

youtalk commented Mar 19, 2021

I think your ROS setup is not completed.
Please follow the installation: https://docs.ros.org/en/dashing/Installation/Linux-Install-Debians.html
Then set up these package: https://github.com/youtalk/raspimouse_ros2/blob/master/README.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant