Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
找不到“的CMake包配置文件”;“3”;_Cmake_Osx Mavericks_Ros - Fatal编程技术网

找不到“的CMake包配置文件”;“3”;

找不到“的CMake包配置文件”;“3”;,cmake,osx-mavericks,ros,Cmake,Osx Mavericks,Ros,当我输入此命令时: cd /Users/mona/ros_catkin_ws/build_isolated/pcl_ros && /Users/mona/ros_catkin_ws/install_isolated/env.sh cmake /Users/mona/ros_catkin_ws/src/perception_pcl/pcl_ros -DCATKIN_DEVEL_PREFIX=/Users/mona/ros_catkin_ws/devel_isolated/pcl_r

当我输入此命令时:

cd /Users/mona/ros_catkin_ws/build_isolated/pcl_ros && /Users/mona/ros_catkin_ws/install_isolated/env.sh cmake /Users/mona/ros_catkin_ws/src/perception_pcl/pcl_ros -DCATKIN_DEVEL_PREFIX=/Users/mona/ros_catkin_ws/devel_isolated/pcl_ros -DCMAKE_INSTALL_PREFIX=/Users/mona/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'
我收到这个错误:

-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
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/mona/ros_catkin_ws/build_isolated/pcl_ros/CMakeFiles/CMakeOutput.log".
运行此命令是为了安装
ROS

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
你知道怎么解决吗


请在此处查看问题的更多详细信息:

您必须安装Eigen3。它提供FindEigen3.cmake文件。发生此错误是因为要配置的项目依赖于Egeng3


如果安装了Egeng3,请按照错误消息将Egeng3添加到CMake的搜索路径。

对于linux用户,这可能会像对我一样有帮助:只需通过以下命令安装Egeng3库的开发人员包


sudo apt install libeigen3 dev

您好,您能为我提供更多详细信息,比如安装Eigen3的命令吗?我从eigen站点安装了tar.gz文件,并按照安装文件中告诉我的项目进行了操作,但我仍然能够找到它。你可以阅读更多关于我在这里所做的事情。非常感谢您的帮助。您始终可以在当前项目中手动复制FindEigen3.cmake文件。或者,您可以将路径添加到搜索路径中的文件中。