ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

undefined reference to YAML while installing rviz [closed]

asked 2014-03-12 23:49:04 -0600

BP gravatar image

updated 2014-03-13 10:13:02 -0600

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

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by BP
close date 2014-04-04 03:14:34

Comments

Which version of yaml are you using?

bchr gravatar image bchr  ( 2014-03-13 07:22:35 -0600 )edit

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

BP gravatar image BP  ( 2014-03-13 07:30:25 -0600 )edit

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

BP gravatar image BP  ( 2014-03-13 09:55:19 -0600 )edit

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

BP gravatar image BP  ( 2014-03-19 12:55:56 -0600 )edit

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

fishandmicrochips gravatar image fishandmicrochips  ( 2021-08-06 10:30:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-03-19 13:59:51 -0600

BP gravatar image

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.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-03-12 23:49:04 -0600

Seen: 1,582 times

Last updated: Mar 19 '14