CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:95 (message):

出现的问题:


Inspiron-N5110:~$ ~/gym-gazebo/gym_gazebo/envs/installation$ bash setup_kinetic.bash 
Creating symlink "/home/bob/gym-gazebo/gym_gazebo/envs/installation/catkin_ws/src/CMakeLists.txt" pointing to "/opt/ros/kinetic/share/catkin/cmake/toplevel.cmake"
WARNING: Metapackage "ecl_tools" must buildtool_depend on catkin.
WARNING: Metapackage "ecl_tools" should not have other dependencies besides a buildtool_depend on catkin and run_depends.
WARNING: Metapackage "ecl_lite" must buildtool_depend on catkin.
WARNING: Metapackage "ecl_lite" should not have other dependencies besides a buildtool_depend on catkin and run_depends.
Packages "mav_msgs" not found in the workspace
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:95 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.
Call Stack (most recent call first):
  CMakeLists.txt:63 (catkin_workspace)

出现这个错误的原因是ecl升级了。造成了cmake版本比配。、

打开gazebo.repos,修改如下部分:

ecl_lite:

type: git

url: https://github.com/stonier/ecl_lite

version: release/0.61-indigo-kinetic

ecl_navigation:

type: git

url: https://github.com/stonier/ecl_navigation

version: devel

ecl_tools:

type: git

url: https://github.com/stonier/ecl_tools

version: release/0.61-indigo-kinetic 

(将ecl_core、 ecl_lite 和ecl_tools 的版本号(version)改成: release/0.61-indigo-kinetic

你可能感兴趣的:(CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:95 (message):)