Robotics StackExchange | Archived questions

undefined reference to YAML while installing rviz

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 linkshttps)://github.com/ros-visualization/rviz.git -b groovy-devel and while catkinmake 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

Asked by BP on 2014-03-12 23:49:04 UTC

Comments

Which version of yaml are you using?

Asked by bchr on 2014-03-13 07:22:35 UTC

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

Asked by BP on 2014-03-13 07:30:25 UTC

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

Asked by BP on 2014-03-13 09:55:19 UTC

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

Asked by BP on 2014-03-19 12:55:56 UTC

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

Asked by fishandmicrochips on 2021-08-06 10:30:02 UTC

Answers

Ok, I manage to do this. However, I do not really know how. I downloaded few versions, finally 1.9.32 compiled but only catkin_make -DCMAKE_BUILD_TYPE=Debug, normal catkin_make couldnt do it.

Asked by BP on 2014-03-19 13:59:51 UTC

Comments