Robotics StackExchange | Archived questions

package 'yaml-cpp' not found

I am doing this exercise from below link

http://wiki.ros.org/nao/Tutorials/Installation/compileFromVirtualNao

After compile it, the command is below:

src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DCATKIN_ENABLE_TESTING=OFF -DCMAKE_INSTALL_PREFIX=~/my_workspace/ros_toolchain_install -j4

There are some error:

-- Found gtest: gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.15
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   filesystem
-- checking for module 'yaml-cpp'
--   package 'yaml-cpp' not found
CMake Error at CMakeLists.txt:28 (if):
  if given arguments:

    "VERSION_GREATER" "0.5"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
<== Failed to process package 'camera_calibration_parsers': 
  Command '['/home/nao/nao_ros_ws/install_isolated/env.sh', 'cmake', '/home/nao/nao_ros_ws/src/image_common/camera_calibration_parsers', '-DCATKIN_DEVEL_PREFIX=/home/nao/nao_ros_ws/devel_isolated/camera_calibration_parsers', '-DCMAKE_INSTALL_PREFIX=/home/nao/nao_ros_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1

Reproduce this error by running:
==> cd /home/nao/nao_ros_ws/build_isolated/camera_calibration_parsers && /home/nao/nao_ros_ws/install_isolated/env.sh cmake /home/nao/nao_ros_ws/src/image_common/camera_calibration_parsers -DCATKIN_DEVEL_PREFIX=/home/nao/nao_ros_ws/devel_isolated/camera_calibration_parsers -DCMAKE_INSTALL_PREFIX=/home/nao/nao_ros_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'

Command failed, exiting.

I have already install yaml-cpp.

I have tried version 0.2.6 and 0.5.1 downloaded from below

https://code.google.com/p/yaml-cpp/downloads/list

However, the errors are still happened. Can anyone help me to fix it? Thank You very much.

Asked by yinkwongc on 2015-10-13 11:13:40 UTC

Comments

Cross-post from here?

Asked by gvdhoorn on 2015-10-13 13:05:22 UTC

yes. It is..

Asked by yinkwongc on 2015-10-13 21:22:20 UTC

Answers

I was getting "package 'yaml-cpp' not found" when building something else. I solved it by

sudo apt-get install libyaml-cpp-dev

Asked by Girts L on 2016-03-19 16:41:12 UTC

Comments

q60037 has CMakeLists.txt instructions

Asked by lucasw on 2017-11-02 12:29:32 UTC