您好我正在尝试使用自制软件在我的MAC上安装ROS。虽然我收到了此消息:
CMake Error at CMakeLists.txt:7 (find_package):
By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Eigen3", but
CMake did not find one
Could not find a package configuration file provided by "Eigen3" with any
of the following names:
Eigen3Config.cmake
eigen3-config.cmake
Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
"Eigen3_DIR" to a directory containing one of the above files. If "Eigen3"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/Users/Jishnu/ros_catkin_ws/build_isolated/pcl_ros/CMakeFiles/CMakeOutput.log".
<== Failed to process package 'pcl_ros':
Command '['/Users/Jishnu/ros_catkin_ws/install_isolated/env.sh', ' cmake', '/Users/Jishnu/ros_catkin_ws/src/perception_pcl/pcl_ros', '- DCATKIN_DEVEL_PREFIX=/Users/Jishnu/ros_catkin_ws/devel_isolated/pcl_ros', '-DCMAKE_INSTALL_PREFIX=/Users/Jishnu/ros_catkin_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1
我是ROS的初学者,所以有人可以帮我解决这个问题。我已检查是否安装了Eigen,已安装版本3.2.4
答案 0 :(得分:2)
This为我解决了这个问题。
这似乎已经解决了,但我会分享我是如何得到这个的 工作:在ros build工作区的其他地方,我找到了一份副本 FindEigen3.cmake:
ros_catkin_ws $ cp SRC / orocos_kinematics_dynamics / orocos_kdl /配置/ FindEigen3.cmake
src / perception_pcl / pcl_ros / cfg /然后我删除了以下内容 CMakeLists:find_package(需要特征3)用来自的这些行替换它 orocos CMakeLists
find_package(Eigen 3 QUIET)if(NOT Eigen_FOUND)
包括:($ {} PROJ_SOURCE_DIR /cfg/FindEigen3.cmake)
set(Eigen_INCLUDE_DIR $ {EIGEN3_INCLUDE_DIR})endif() include_directories($ {Eigen_INCLUDE_DIR})说实话,我 没有改变配置 - &gt; cfg当我做我的构建,但似乎有 工作
答案 1 :(得分:0)
我为解决这个问题所做的是: