ethz-asl / mav_trajectory_generation

Polynomial trajectory generation and optimization, especially for rotary-wing MAVs.
Apache License 2.0
528 stars 222 forks source link

undefined reference to `YAML::detail::node_data::push_back(YAML::detail::node&, boost::shared_ptr<YAML::detail::memory_holder>)' #115

Closed kadhirumasankar closed 3 years ago

kadhirumasankar commented 3 years ago

I got this error while running catkin build:

Errors     << mav_trajectory_generation:make /home/kadhir/catkin_ws/logs/mav_trajectory_generation/build.make.003.log                                                                   
/home/kadhir/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/kadhir/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 -

When following the installation instructions, I first ran into Could not find a package configuration file provided by "yaml_cpp_catkin". To solve that, I ran git clone https://github.com/ethz-asl/yaml_cpp_catkin.git inside ~/catkin_ws/src, and then reran catkin build, which is when I got this error. What steps do I take to fix it? Any help would be greatly appreciated!

kadhirumasankar commented 3 years ago

Fixed the error by reverting to a previous copy of catkin_ws that I had made, and following the instructions in #106