赞
踩
beginner_tutorials/CMakeFiles/listener.dir/build.make:62: recipe for target ‘beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o’ failed
make[2]: *** [beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o] Error 1
CMakeFiles/Makefile2:443: recipe for target ‘beginner_tutorials/CMakeFiles/listener.dir/all’ failed
make[1]: *** [beginner_tutorials/CMakeFiles/listener.dir/all] Error 2
Makefile:138: recipe for target ‘all’ failed
make: *** [all] Error 2
Invoking “make -j4 -l4” failed
jack@jack-Robot:~/my_ws$ catkin_make Base path: /home/jack/my_ws Source space: /home/jack/my_ws/src Build space: /home/jack/my_ws/build Devel space: /home/jack/my_ws/devel Install space: /home/jack/my_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/jack/my_ws/build" #### #### #### Running command: "make -j4 -l4" in "/home/jack/my_ws/build" #### [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target std_msgs_generate_messages_eus [ 0%] Built target std_msgs_generate_messages_lisp [ 0%] Built target std_msgs_generate_messages_py [ 0%] Built target std_msgs_generate_messages_nodejs [ 0%] Built target _beginner_tutorials_generate_messages_check_deps_Num [ 0%] Built target _beginner_tutorials_generate_messages_check_deps_AddTwoInts [ 11%] Built target beginner_tutorials_generate_messages_cpp [ 29%] Built target beginner_tutorials_generate_messages_eus [ 52%] Built target beginner_tutorials_generate_messages_py [ 64%] Built target beginner_tutorials_generate_messages_lisp Scanning dependencies of target listener [ 76%] Built target beginner_tutorials_generate_messages_nodejs [ 82%] Building CXX object beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o [ 94%] Built target talker [ 94%] Built target beginner_tutorials_generate_messages /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp:9:3: error: stray ‘\302’ in program ROS_INFO("I heard: [%s]", msg>data.c_str()); ^ /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp:9:3: error: stray ‘\255’ in program In file included from /opt/ros/kinetic/include/ros/ros.h:40:0, from /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp:1: /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp: In function ‘void chatterCallback(const ConstPtr&)’: /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp:9:35: error: ‘data’ was not declared in this scope ROS_INFO("I heard: [%s]", msg>data.c_str()); ^ /opt/ros/kinetic/include/ros/console.h:346:165: note: in definition of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’ ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__) ^ /opt/ros/kinetic/include/ros/console.h:379:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’ ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \ ^ /opt/ros/kinetic/include/ros/console.h:561:35: note: in expansion of macro ‘ROS_LOG_COND’ #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__) ^ /opt/ros/kinetic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’ #define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) ^ /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp:9:3: note: in expansion of macro ‘ROS_INFO’ ROS_INFO("I heard: [%s]", msg>data.c_str()); ^ beginner_tutorials/CMakeFiles/listener.dir/build.make:62: recipe for target 'beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o' failed make[2]: *** [beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o] Error 1 CMakeFiles/Makefile2:443: recipe for target 'beginner_tutorials/CMakeFiles/listener.dir/all' failed make[1]: *** [beginner_tutorials/CMakeFiles/listener.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed
jack@jack-Robot:~/my_ws$ catkin_make Base path: /home/jack/my_ws Source space: /home/jack/my_ws/src Build space: /home/jack/my_ws/build Devel space: /home/jack/my_ws/devel Install space: /home/jack/my_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/jack/my_ws/build" #### #### #### Running command: "make -j4 -l4" in "/home/jack/my_ws/build" #### [ 0%] Built target std_msgs_generate_messages_eus [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target std_msgs_generate_messages_lisp [ 0%] Built target std_msgs_generate_messages_py [ 0%] Built target _beginner_tutorials_generate_messages_check_deps_Num [ 0%] Built target _beginner_tutorials_generate_messages_check_deps_AddTwoInts [ 0%] Built target std_msgs_generate_messages_nodejs [ 11%] Built target beginner_tutorials_generate_messages_cpp [ 35%] Built target beginner_tutorials_generate_messages_py [ 58%] Built target beginner_tutorials_generate_messages_lisp [ 64%] Built target beginner_tutorials_generate_messages_eus Scanning dependencies of target listener [ 76%] Built target beginner_tutorials_generate_messages_nodejs [ 88%] Built target talker [ 94%] Building CXX object beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o [ 94%] Built target beginner_tutorials_generate_messages /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp:9:3: error: stray ‘\302’ in program ROS_INFO("I heard: [%s]", msg->data.c_str()); ^ /home/jack/my_ws/src/beginner_tutorials/src/listener.cpp:9:3: error: stray ‘\255’ in program beginner_tutorials/CMakeFiles/listener.dir/build.make:62: recipe for target 'beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o' failed make[2]: *** [beginner_tutorials/CMakeFiles/listener.dir/src/listener.cpp.o] Error 1 CMakeFiles/Makefile2:443: recipe for target 'beginner_tutorials/CMakeFiles/listener.dir/all' failed make[1]: *** [beginner_tutorials/CMakeFiles/listener.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed
ROS_INFO("I heard: [%s]", msg->data.c_str());
至 此 , 一 把 辛 酸 泪 的 错 误 暂 时 告 一 段 落 . . . . . . 至此,一把辛酸泪的错误暂时告一段落...... 至此,一把辛酸泪的错误暂时告一段落......
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。