Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 417

catkin_make error : undefinded...

$
0
0
hello,I want to control my irobot-create2 move,so i use the tutorial,but itis error when i catkin_make,such as: CMakeFiles/basic_commands.dir/src/basic_commands.cpp.o: In function `change_mode(std::string)': basic_commands.cpp:(.text+0x94): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x178): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0x278): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x374): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0x43c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x538): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0x5f8): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x6f4): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0x7b4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x8b0): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0x970): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0xa6c): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0xb2c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0xc28): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0xcf8): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0xe5c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/basic_commands.dir/src/basic_commands.cpp.o: In function `main': basic_commands.cpp:(.text+0x1178): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)' basic_commands.cpp:(.text+0x11fc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x12d0): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)' basic_commands.cpp:(.text+0x1314): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)' basic_commands.cpp:(.text+0x13dc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x14cc): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' basic_commands.cpp:(.text+0x160c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x174c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' basic_commands.cpp:(.text+0x1874): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/basic_commands.dir/src/basic_commands.cpp.o: In function `bool ros::NodeHandle::param(std::string const&, std::string&, std::string const&) const': basic_commands.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x20): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const' basic_commands.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x3c): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const' collect2: error: ld returned 1 exit status irobotcreate2ros-master/CMakeFiles/basic_commands.dir/build.make:176: recipe for target '/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/basic_commands' failed make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/basic_commands] Error 1 CMakeFiles/Makefile2:926: recipe for target 'irobotcreate2ros-master/CMakeFiles/basic_commands.dir/all' failed make[1]: *** [irobotcreate2ros-master/CMakeFiles/basic_commands.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... CMakeFiles/irobotcreate2_lightweight.dir/src/irobotcreate2_lightweight.cpp.o: In function `tf::quaternionTFToMsg(tf::Quaternion const&, geometry_msgs::Quaternion_>&)': irobotcreate2_lightweight.cpp:(.text+0xcc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/irobotcreate2_lightweight.dir/src/irobotcreate2_lightweight.cpp.o: In function `main': irobotcreate2_lightweight.cpp:(.text+0x4b0): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)' irobotcreate2_lightweight.cpp:(.text+0x534): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text+0x610): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)' irobotcreate2_lightweight.cpp:(.text+0x838): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text+0x980): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text+0xaa8): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text+0xca0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/irobotcreate2_lightweight.dir/src/irobotcreate2_lightweight.cpp.o: In function `bool ros::NodeHandle::param(std::string const&, std::string&, std::string const&) const': irobotcreate2_lightweight.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x20): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const' irobotcreate2_lightweight.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x3c): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const' CMakeFiles/irobotcreate2_lightweight.dir/src/irobotcreate2_lightweight.cpp.o: In function `void ros::Publisher::publish>>(nav_msgs::Odometry_> const&) const': irobotcreate2_lightweight.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0xb0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x1d4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x2dc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x408): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2_lightweight.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x52c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/irobotcreate2_lightweight.dir/src/irobotcreate2_lightweight.cpp.o:irobotcreate2_lightweight.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x650): more undefined references to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' follow collect2: error: ld returned 1 exit status CMakeFiles/keyboard_node.dir/src/keyboard_node.cpp.o: In function `keyboard_handler::keyboard_handler()': keyboard_node.cpp:(.textirobotcreate2ros-master/CMakeFiles/irobotcreate2_lightweight.dir/build.make:176: recipe for target '/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/irobotcreate2_lightweight' failed +0x50)make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/irobotcreate2_lightweight] Error 1 : undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)' CMakeFiles/keyboard_node.dir/src/keyboard_node.cpp.o: In function `keyboard_handler::keyboard_reading()': keyboard_node.cpp:(.text+0x5e8): undefined reference to `ros::console::CMakeFiles/Makefile2:963: recipe for target 'irobotcreate2ros-master/CMakeFiles/irobotcreate2_lightweight.dir/all' failed initializeLogLocation(make[1]: *** [irobotcreate2ros-master/CMakeFiles/irobotcreate2_lightweight.dir/all] Error 2 ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' keyboard_node.cpp:(.text+0x738): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/keyboard_node.dir/src/keyboard_node.cpp.o: In function `main': keyboard_node.cpp:(.text+0x9f8): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)' keyboard_node.cpp:(.text+0xa84): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/keyboard_node.dir/src/keyboard_node.cpp.o: In function `void ros::Publisher::publish>>(geometry_msgs::Twist_> const&) const': keyboard_node.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0xb0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' keyboard_node.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x1d4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' keyboard_node.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x2dc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' keyboard_node.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x408): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/keyboard_node.dir/src/keyboard_node.cpp.o:keyboard_node.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x52c): more undefined references to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' follow collect2: error: ld returned 1 exit status irobotcreate2ros-master/CMakeFiles/keyboard_node.dir/build.make:124: recipe for target '/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/keyboard_node' failed make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/keyboard_node] Error 1 CMakeFiles/Makefile2:1654: recipe for target 'irobotcreate2ros-master/CMakeFiles/keyboard_node.dir/all' failed make[1]: *** [irobotcreate2ros-master/CMakeFiles/keyboard_node.dir/all] Error 2 CMakeFiles/irobotcreate2.dir/src/irobotcreate2.cpp.o: In function `tf::quaternionTFToMsg(tf::Quaternion const&, geometry_msgs::Quaternion_>&)': irobotcreate2.cpp:(.text+0xcc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/irobotcreate2.dir/src/irobotcreate2.cpp.o: In function `main': irobotcreate2.cpp:(.text+0xc24): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)' irobotcreate2.cpp:(.text+0xca8): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0xd94): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)' irobotcreate2.cpp:(.text+0xdd8): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)' irobotcreate2.cpp:(.text+0x11c0): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const' irobotcreate2.cpp:(.text+0x1208): undefined reference to `ros::NodeHandle::getParam(std::string const&, XmlRpc::XmlRpcValue&) const' irobotcreate2.cpp:(.text+0x12ac): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x142c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x153c): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' irobotcreate2.cpp:(.text+0x1664): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const' irobotcreate2.cpp:(.text+0x16ac): undefined reference to `ros::NodeHandle::getParam(std::string const&, XmlRpc::XmlRpcValue&) const' irobotcreate2.cpp:(.text+0x1750): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x18d0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x19e0): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' irobotcreate2.cpp:(.text+0x21d4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x231c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x2444): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x25c0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x269c): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' irobotcreate2.cpp:(.text+0x28b0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x38f8): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x3a38): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' irobotcreate2.cpp:(.text+0x3c20): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text+0x3d60): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream, std::allocator> const&, char const*, int, char const*)' CMakeFiles/irobotcreate2.dir/src/irobotcreate2.cpp.o: In function `bool ros::NodeHandle::param(std::string const&, std::string&, std::string const&) const': irobotcreate2.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x20): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const' irobotcreate2.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x3c): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const' CMakeFiles/irobotcreate2.dir/src/irobotcreate2.cpp.o: In function `bool ros::NodeHandle::param(std::string const&, int&, int const&) const': irobotcreate2.cpp:(.text._ZNK3ros10NodeHandle5paramIiEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramIiEEbRKSsRT_RKS4_]+0x20): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const' irobotcreate2.cpp:(.text._ZNK3ros10NodeHandle5paramIiEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramIiEEbRKSsRT_RKS4_]+0x3c): undefined reference to `ros::NodeHandle::getParam(std::string const&, int&) const' CMakeFiles/irobotcreate2.dir/src/irobotcreate2.cpp.o: In function `bool ros::NodeHandle::param(std::string const&, bool&, bool const&) const': irobotcreate2.cpp:(.text._ZNK3ros10NodeHandle5paramIbEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramIbEEbRKSsRT_RKS4_]+0x20): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const' irobotcreate2.cpp:(.text._ZNK3ros10NodeHandle5paramIbEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramIbEEbRKSsRT_RKS4_]+0x3c): undefined reference to `ros::NodeHandle::getParam(std::string const&, bool&) const' CMakeFiles/irobotcreate2.dir/src/irobotcreate2.cpp.o: In function `void ros::Publisher::publish>>(std_msgs::String_> const&) const': irobotcreate2.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_]+0xb0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_]+0x1d4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_]+0x2dc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_]+0x408): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' irobotcreate2.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_]+0x52c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/irobotcreate2.dir/src/irobotcreate2.cpp.o:irobotcreate2.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs7String_ISaIvEEEEEvRKT_]+0x650): more undefined references to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' follow collect2: error: ld returned 1 exit status irobotcreate2ros-master/CMakeFiles/irobotcreate2.dir/build.make:176: recipe for target '/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/irobotcreate2' failed make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/irobotcreate2/irobotcreate2] Error 1 CMakeFiles/Makefile2:2787: recipe for target 'irobotcreate2ros-master/CMakeFiles/irobotcreate2.dir/all' failed make[1]: *** [irobotcreate2ros-master/CMakeFiles/irobotcreate2.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed so ,i want to get some help,and i am so sorry that my English is poor. best wish.

Viewing all articles
Browse latest Browse all 417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>