moveit_benchmark_gui compile error
I am trying to compile moveit from the source. But when I try to compile moveit_benchmark_gui
, I am getting a linker error as below.
[ 5%] Building CXX object CMakeFiles/moveit_benchmark_gui.dir/src/main_window.cpp.o
Linking CXX executable /home/lonewolf/workspace/ros/secondary_packages/devel_isolated/moveit_ros_benchmarks_gui/lib/moveit_ros_benchmarks_gui/moveit_benchmark_gui
CMakeFiles/moveit_benchmark_gui.dir/src/main_window.cpp.o: In function `benchmark_tool::MainWindow::updateGoalPoseMarkers(float, float)':
main_window.cpp:(.text+0x1167): undefined reference to `rviz::InteractiveMarker::update(float)'
main_window.cpp:(.text+0x11ab): undefined reference to `rviz::InteractiveMarker::update(float)'
main_window.cpp:(.text+0x11ca): undefined reference to `rviz::InteractiveMarker::update(float)'
main_window.cpp:(.text+0x11e9): undefined reference to `rviz::InteractiveMarker::update(float)'
CMakeFiles/moveit_benchmark_gui.dir/src/frame_marker.cpp.o: In function `benchmark_tool::FrameMarker::showDescription(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
frame_marker.cpp:(.text+0x5f6): undefined reference to `rviz::InteractiveMarker::processMessage(visualization_msgs::InteractiveMarker_<std::allocator<void> > const&)'
frame_marker.cpp:(.text+0x645): undefined reference to `rviz::InteractiveMarker::setPose(Ogre::Vector3, Ogre::Quaternion, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
frame_marker.cpp:(.text+0x66a): undefined reference to `rviz::InteractiveMarker::setShowDescription(bool)'
CMakeFiles/moveit_benchmark_gui.dir/src/frame_marker.cpp.o: In function `benchmark_tool::FrameMarker::setColor(float, float, float, float)':
frame_marker.cpp:(.text+0x7cc): undefined reference to `rviz::InteractiveMarker::processMessage(visualization_msgs::InteractiveMarker_<std::allocator<void> > const&)'
frame_marker.cpp:(.text+0x81b): undefined reference to `rviz::InteractiveMarker::setPose(Ogre::Vector3, Ogre::Quaternion, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/moveit_benchmark_gui.dir/src/frame_marker.cpp.o: In function `benchmark_tool::FrameMarker::setPose(Eigen::Transform<double, 3, 2, 0>&)':
frame_marker.cpp:(.text+0x1535): undefined reference to `rviz::InteractiveMarker::setPose(Ogre::Vector3, Ogre::Quaternion, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/moveit_benchmark_gui.dir/src/frame_marker.cpp.o: In function `benchmark_tool::FrameMarker::buildFrom(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, geometry_msgs::Pose_<std::allocator<void> > const&, double, std_msgs::ColorRGBA_<std::allocator<void> > const&)':
frame_marker.cpp:(.text+0x1f11): undefined reference to `rviz::InteractiveMarker::InteractiveMarker(Ogre::SceneNode*, rviz::DisplayContext*)'
frame_marker.cpp:(.text+0x1f87): undefined reference to `rviz::InteractiveMarker::processMessage(visualization_msgs::InteractiveMarker_<std::allocator<void> > const&)'
frame_marker.cpp:(.text+0x1f98): undefined reference to `rviz::InteractiveMarker::setShowVisualAids(bool)'
frame_marker.cpp:(.text+0x1fa6): undefined reference to `rviz::InteractiveMarker::setShowAxes(bool)'
frame_marker.cpp:(.text+0x1fb4): undefined reference to `rviz::InteractiveMarker::setShowDescription(bool)'
CMakeFiles/moveit_benchmark_gui.dir/src/frame_marker.cpp.o: In function `benchmark_tool::GripperMarker::buildFrom(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, geometry_msgs::Pose_<std::allocator<void> > const&, double, std_msgs::ColorRGBA_<std::allocator<void> > const&)':
frame_marker.cpp:(.text+0x382e): undefined reference to `rviz::InteractiveMarker::InteractiveMarker(Ogre::SceneNode*, rviz::DisplayContext*)'
frame_marker.cpp:(.text+0x38a2): undefined reference to `rviz::InteractiveMarker::processMessage(visualization_msgs::InteractiveMarker_<std::allocator<void> > const&)'
frame_marker.cpp:(.text+0x38b0): undefined reference to `rviz::InteractiveMarker::setShowAxes(bool)'
frame_marker.cpp:(.text+0x38c1): undefined reference to `rviz::InteractiveMarker::setShowVisualAids(bool)'
frame_marker.cpp:(.text+0x38cf): undefined reference to `rviz::InteractiveMarker::setShowDescription ...
@lonewolf: please accept the answer by @130s by ticking the checkmark next to it.