undefined reference to YAML while installing rviz [closed]
I had a bug with rviz (reported in my previous question) that was fixed in a newer version of rviz, I do: $ git clone (cant publish links_https)://github.com/ros-visualization/rviz.git -b groovy-devel
and while catkin_make
i get:
(...)
Linking CXX executable /home/user/old_rviz/devel/lib/rviz/rviz
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::detail::node_data::mark_defined()'
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::detail::memory::create_node()'
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::Load(std::basic_istream<char, std::char_traits<char> >&)'
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::detail::node_data::begin()'
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::detail::node_data::set_null()'
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::detail::node_data::end()'
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::detail::memory_holder::merge(YAML::detail::memory_holder&)'
/home/user/old_rviz/devel/lib/librviz.so: undefined reference to `YAML::detail::node_data::empty_scalar'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/old_rviz/devel/lib/rviz/rviz] Error 1
make[1]: *** [rviz/src/rviz/CMakeFiles/executable.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 5 jobserver tokens available; should be 4!
I've tried to reinstall YAML but i crashed ROS so i had to reinstall it. Can some1 help? I don't know what i can do and I dont want to break ROS again.
//edit 1
I did: download yaml 0.5.1
mkdir build
cd build
cmake ..
sudo cmake --build . --config Release
but this did not help
Which version of yaml are you using?
Version: 0.2.7-5precise-20120502-0513-+0000 so it's old. While searching google there where signs that i need newer (dont remember, 0.5 propably) version. But I have the newest from ubuntu repos (for ubuntu LTS 12.4).
ok i thought that if i have another yaml version i shouldnt build another1 but it seems that i can- i downloaded and build 0.5 /edit sadly, same error
how can i link this new yaml to new rviz? I need this to make my thesis and I really dont know how to get it work
I'm also having this problem. How did you link the YAML library into librviz? Someone else has submitted this bug into the gentoo bugzilla file tracker: https://bugs.gentoo.org/804678