加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Ubuntu16 ros导航编译时相关问题

(2016-11-25 12:51:44)
标签:

findgazebo

gazebo

pcl_ros_tf

ros

lvtkproj4

分类: Linux-ALL
1.
http://s1/mw690/002ed2pGzy76GQP0Gcgd0&690ros导航编译时相关问题" TITLE="Ubuntu16 ros导航编译时相关问题" />
-- Using these message generators: gencpp;genlisp;genpy
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libxml-2.0'
--   Found libxml-2.0, version 2.9.3
CMake Error at CMakeLists.txt:26 (find_package):
  By not providing "Findgazebo.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gazebo", but
  CMake did not find one.

  Could not find a package configuration file provided by "gazebo" with any
  of the following names:

    gazeboConfig.cmake
    gazebo-config.cmake
解决方法:sudo apt-get install libgazebo7 libgazebo7-dev
2.
http://s13/mw690/002ed2pGzy76GRPNKOw7c&690ros导航编译时相关问题" TITLE="Ubuntu16 ros导航编译时相关问题" />

CMake Warning (dev) at CMakeLists.txt:80 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "pcl_ros_generate_messages_cpp" of target
  "pcl_ros_tf" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/su/Workspace/ros_catkin_ws_full/build_isolated/pcl_ros
==> make -j1 -l1 in '/home/su/Workspace/ros_catkin_ws_full/build_isolated/pcl_ros'
Scanning dependencies of target pointcloud_to_pcd
[  1%] Building CXX object CMakeFiles/pointcloud_to_pcd.dir/tools/pointcloud_to_pcd.cpp.o
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by '/home/su/Workspace/ros_catkin_ws_full/devel_isolated/pcl_ros/lib/pcl_ros/pointcloud_to_pcd'.  Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pointcloud_to_pcd.dir/all' failed
make[1]: *** [CMakeFiles/pointcloud_to_pcd.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'pcl_ros': 
  Command '['/home/su/Workspace/ros_catkin_ws_full/install_isolated/env.sh', 'make', '-j1', '-l1']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/su/Workspace/ros_catkin_ws_full/build_isolated/pcl_ros && /home/su/Workspace/ros_catkin_ws_full/install_isolated/env.sh make -j1 -l1

Command failed, exiting.
解决方法:sudo apt-get install libproj-dev
3.
http://s14/mw690/002ed2pGzy76GTDQokRdd&690ros导航编译时相关问题" TITLE="Ubuntu16 ros导航编译时相关问题" />

==> Processing catkin package: 'pcl_ros'
==> Building with env: '/home/su/Workspace/ros_catkin_ws_full/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/su/Workspace/ros_catkin_ws_full/build_isolated/pcl_ros'
==> make -j1 -l1 in '/home/su/Workspace/ros_catkin_ws_full/build_isolated/pcl_ros'
[  1%] Linking CXX executable /home/su/Workspace/ros_catkin_ws_full/devel_isolated/pcl_ros/lib/pcl_ros/pointcloud_to_pcd
/usr/bin/ld: cannot find -lvtkproj4
collect2: error: ld returned 1 exit status
CMakeFiles/pointcloud_to_pcd.dir/build.make:443: recipe for target '/home/su/Workspace/ros_catkin_ws_full/devel_isolated/pcl_ros/lib/pcl_ros/pointcloud_to_pcd' failed
make[2]: *** [/home/su/Workspace/ros_catkin_ws_full/devel_isolated/pcl_ros/lib/pcl_ros/pointcloud_to_pcd] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pointcloud_to_pcd.dir/all' failed
make[1]: *** [CMakeFiles/pointcloud_to_pcd.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'pcl_ros': 
  Command '['/home/su/Workspace/ros_catkin_ws_full/install_isolated/env.sh', 'make', '-j1', '-l1']' returned non-zero exit status 2

解决方法:sudo ln -s /usr/lib/libvtkproj4.so.5.10 /usr/lib/libvtkproj4.so

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有