streams.log 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [0.005s] Invoking command in '/home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback': CMAKE_PREFIX_PATH=/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg:/home/wub/work/1_nzzn/2_code/13_LG/install/g29_ros2_feedback:/opt/ros/humble /usr/bin/cmake --build /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback -- -j12 -l12
  2. [0.023s] -- Found ament_cmake: 1.3.11 (/opt/ros/humble/share/ament_cmake/cmake)
  3. [0.110s] -- Found std_msgs: 4.8.0 (/opt/ros/humble/share/std_msgs/cmake)
  4. [0.125s] -- Found rosidl_generator_c: 3.1.6 (/opt/ros/humble/share/rosidl_generator_c/cmake)
  5. [0.126s] -- Found rosidl_adapter: 3.1.6 (/opt/ros/humble/share/rosidl_adapter/cmake)
  6. [0.130s] -- Found rosidl_generator_cpp: 3.1.6 (/opt/ros/humble/share/rosidl_generator_cpp/cmake)
  7. [0.136s] -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
  8. [0.144s] -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
  9. [0.160s] -- Found rclcpp: 16.0.12 (/opt/ros/humble/share/rclcpp/cmake)
  10. [0.176s] -- Found rmw_implementation_cmake: 6.1.2 (/opt/ros/humble/share/rmw_implementation_cmake/cmake)
  11. [0.177s] -- Found rmw_fastrtps_cpp: 6.2.7 (/opt/ros/humble/share/rmw_fastrtps_cpp/cmake)
  12. [0.237s] -- Using RMW implementation 'rmw_fastrtps_cpp' as default
  13. [0.261s] -- Found g29_msg: 0.0.0 (/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg/share/g29_msg/cmake)
  14. [0.296s] -- Found ament_lint_auto: 0.12.12 (/opt/ros/humble/share/ament_lint_auto/cmake)
  15. [0.346s] -- Added test 'cppcheck' to perform static code analysis on C / C++ code
  16. [0.346s] -- Configured cppcheck include dirs: $<BUILD_INTERFACE:/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/include>
  17. [0.346s] -- Configured cppcheck exclude dirs and/or files:
  18. [0.346s] -- Added test 'lint_cmake' to check CMake code style
  19. [0.347s] -- Added test 'uncrustify' to check C / C++ code style
  20. [0.347s] -- Configured uncrustify additional arguments:
  21. [0.347s] -- Added test 'xmllint' to check XML markup files
  22. [0.347s] -- Configuring done
  23. [0.353s] -- Generating done
  24. [0.356s] -- Build files have been written to: /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback
  25. [0.374s] Consolidate compiler generated dependencies of target g29_ros2_feedback_node
  26. [0.387s] [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o
  27. [1.887s] In file included from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  28. [1.888s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h: In constructor ‘Joystick_pub::Joystick_pub(const string&, const string&)’:
  29. [1.888s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:56:17: warning: ‘Joystick_pub::filename’ will be initialized after []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;]
  30. [1.888s] 56 | std::string filename; // 设备文件名
  31. [1.888s] | ^~~~~~~~
  32. [1.888s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:39:41: warning:  base ‘rclcpp::Node’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;]
  33. [1.888s] 39 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  34. [1.888s] | ^
  35. [1.888s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:38:1: warning:  when initialized here []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;]
  36. [1.888s] 38 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  37. [1.888s] | ^~~~~~~~~~~~
  38. [1.899s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp: In member function ‘void Joystick_pub::publish()’:
  39. [1.899s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:158:20: error: ‘sensor_msgs’ has not been declared
  40. [1.899s] 158 | auto message = sensor_msgs::msg::Joy();
  41. [1.899s] | ^~~~~~~~~~~
  42. [2.401s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  43. [2.401s] gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  44. [2.401s] gmake: *** [Makefile:146:all] 错误 2
  45. [2.403s] Invoked command in '/home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback' returned '2': CMAKE_PREFIX_PATH=/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg:/home/wub/work/1_nzzn/2_code/13_LG/install/g29_ros2_feedback:/opt/ros/humble /usr/bin/cmake --build /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback -- -j12 -l12