undefined reference to `YAML::detail::node_data::push_back(YAML::detail::node&, boost::shared_ptr<YAML::detail::memory_holder>)'
varunk122 opened this issue · 1 comments
varunk122 commented
Errors << mav_trajectory_generation:make /home/varun/catkin_ws/logs/mav_trajectory_generation/build.make.003.log
/home/varun/catkin_ws/devel/lib/libmav_trajectory_generation.so: undefined reference to `YAML::detail::node_data::push_back(YAML::detail::node&, boost::shared_ptr<YAML::detail::memory_holder>)'
/home/varun/catkin_ws/devel/lib/libmav_trajectory_generation.so: undefined reference to `YAML::detail::node_data::convert_to_map(boost::shared_ptr<YAML::detail::memory_holder>)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/kadhir/catkin_ws/devel/lib/mav_trajectory_generation/polynomial_timing_evaluation] Error 1
make[1]: *** [CMakeFiles/polynomial_timing_evaluation.dir/all] Error 2
make: *** [all] Error 2
cd /home/kadhir/catkin_ws/build/mav_trajectory_generation; catkin build --get-env mav_trajectory_generation | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
varunk122 commented
Fix :
git clone https://github.com/ethz-asl/yaml_cpp_catkin
In package.xml file change this line
<exec_depend>yaml_cpp_catkin</exec_depend>
to
<depend>yaml_cpp_catkin</depend>