[QUESTION] undefined reference to `YAML::detail::node_data::empty_scalar[abi:cxx11]()'
while I was building kimera_pgmo_ros package, it always report
/usr/bin/ld: /home/lyxichigoichie/Documents/Scene_Graph/Hydra/devel/lib/libconfig_utilities.so: undefined reference to `YAML::detail::node_data::empty_scalar[abi:cxx11]()
and then failed to build the project. Anyone has the same problem?
OS: Ubuntu20 ROS: noetic
Hello,i meet the same problem,do you solve your problem?
I encountered a similar problem when building the config_utilities package, and the culprit for me was adding the Conda virtual environment to PATH.
I solved the problem by simply commenting out the line export PATH=~/miniconda3/bin:$PATH in the ~/.bashrc file (which I had added for convenience) and then restarting the terminal.
Additionally, the problem can be reproduced by executing export PATH=~/miniconda3/bin:$PATH in the terminal and rebuilding the package.
The image below is a piece of my error log in the terminal. The full log is extremely long, comprising probably hundreds of lines of error reports, but almost all of them follow the format:
/usr/bin/ld: ..... : undefined reference to 'YAML::detail::......'
which also applies to the current issue.
I hope these information proves helpful to someone.
OS: Ubuntu 20.04 in VMware ROS distro: Noetic Conda used: Miniconda
I encountered a similar problem when building the config_utilities package, and the culprit for me was adding the Conda virtual environment to PATH. I solved the problem by simply commenting out the line
export PATH=~/miniconda3/bin:$PATHin the ~/.bashrc file (which I had added for convenience) and then restarting the terminal. Additionally, the problem can be reproduced by executingexport PATH=~/miniconda3/bin:$PATHin the terminal and rebuilding the package.The image below is a piece of my error log in the terminal. The full log is extremely long, comprising probably hundreds of lines of error reports, but almost all of them follow the format:
/usr/bin/ld: ..... : undefined reference to 'YAML::detail::......'which also applies to the current issue. I hope these information proves helpful to someone.OS: Ubuntu 20.04 in VMware ROS distro: Noetic Conda used: Miniconda
Thank you for your help. With your help, I solved this problem! I wish you good luck in your research.
