Hydra icon indicating copy to clipboard operation
Hydra copied to clipboard

[QUESTION] undefined reference to `YAML::detail::node_data::empty_scalar[abi:cxx11]()'

Open lyxichigoichie opened this issue 1 year ago • 3 comments

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

lyxichigoichie avatar Aug 16 '24 08:08 lyxichigoichie

Hello,i meet the same problem,do you solve your problem?

zszz3 avatar Dec 02 '24 14:12 zszz3

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. myerror

OS: Ubuntu 20.04 in VMware ROS distro: Noetic Conda used: Miniconda

Walkism avatar Dec 14 '24 12:12 Walkism

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. myerror

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.

zszz3 avatar Dec 14 '24 13:12 zszz3