ethz-asl / yaml_cpp_catkin

Yaml cpp catkin package
5 stars 26 forks source link

unable to build with ros melodic #10

Open tstellanova opened 5 years ago

tstellanova commented 5 years ago
Workspace configuration appears valid.
--------------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.                                                                                    
[build] Updating package table.                                                                                               
Starting  >>> catkin_simple                                                                                                   
Finished  <<< catkin_simple                  [ 8.5 seconds ]                                                                  
Starting  >>> yaml_cpp_catkin                                                                                                 
______________________________________________________________________________________________________________________________
Errors     << yaml_cpp_catkin:make /home/todd/proj/yaml_sand/logs/yaml_cpp_catkin/build.make.000.log                          
Cloning into 'yaml_cpp_src'...
Note: checking out '11607eb5bf1258641d80f7051e7cf09e317b4746'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 11607eb... fix some warnings in public headers (#486)
/usr/bin/ld: cannot find -lyaml-cpp
collect2: error: ld returned 1 exit status
make[5]: *** [util/read] Error 1
make[4]: *** [util/CMakeFiles/read.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all] Error 2
make[2]: *** [yaml_cpp_src-prefix/src/yaml_cpp_src-stamp/yaml_cpp_src-build] Error 2
make[1]: *** [CMakeFiles/yaml_cpp_src.dir/all] Error 2
make: *** [all] Error 2
cd /home/todd/proj/yaml_sand/build/yaml_cpp_catkin; catkin build --get-env yaml_cpp_catkin | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
..............................................................................................................................
Failed     << yaml_cpp_catkin:make           [ Exited with code 2 ]                                                           
Failed    <<< yaml_cpp_catkin                [ 1 minute and 47.4 seconds ]                                                    
[build] Summary: 1 of 2 packages succeeded.                                                                                   
[build]   Ignored:   None.                                                                                                    
[build]   Warnings:  None.                                                                                                    
[build]   Abandoned: None.                                                                                                    
[build]   Failed:    1 packages failed.                                                                                       
[build] Runtime: 1 minute and 56.0 seconds total.                                                                             
[build] Note: Workspace packages have changed, please re-source setup files to use them.
tstellanova commented 5 years ago

Worked around by installing libyaml-cpp using apt: sudo apt-get install libyaml-cpp-dev

jstiefel commented 4 years ago

I'm having the same issue if libyaml-cpp-dev is not available. But isn't installing this library making this ROS package somehow redundant?

zeyulong commented 9 months ago

https://github.com/jbeder/yaml-cpp/tree/11607eb5bf1258641d80f7051e7cf09e317b4746