嗨,我正试着用homebrew.While安装在我的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的初学者,所以有人能帮我解决这个问题吗?我已经检查了艾根是否安装了,3.2.4版本已经安装了
发布于 2015-08-26 00:45:30
这帮我解决了这个问题。
这个问题似乎已经解决了,但我将分享我是如何做到这一点的:在ros构建工作区的其他地方,我找到了FindEigen3.cmake的一个副本: src/orocos_kinematics_dynamics/orocos_kdl/config/FindEigen3.cmake ros_catkin_ws$ cp src/知觉_pcl/pcl_ros/cfg/然后我从CMakeLists中删除以下内容: Find_package(所需的特征3)用来自orocos CMakeLists的这些线替换它 Find_package(特征3安静)如果(不是Eigen_FOUND) include(${PROJ_SOURCE_DIR}/cfg/FindEigen3.cmake) set(Eigen_INCLUDE_DIR ${EIGEN3_INCLUDE_DIR}) endif() include_directories(${Eigen_INCLUDE_DIR})非常诚实,我在构建时没有更改配置-> cfg,但它似乎已经成功了。
发布于 2017-05-11 02:02:25
我为解决这个问题所做的是:
https://stackoverflow.com/questions/31882689
复制相似问题