使用YARP安装ICub的问题

问题描述 投票:1回答:1

我正在尝试遵循创建icub makerfile http://wiki.icub.org/wiki/Linux:Installation_from_sources,但出现错误,并且已经执行了所有步骤

这是错误,我现在不知道该怎么办...

 CMake Error at CMakeLists.txt:15 (find_package):
   By not providing "FindYARP.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "YARP", but
   CMake did not find one.

   Could not find a package configuration file provided by "YARP" (requested
   version 3.2.0) with any of the following names:

     YARPConfig.cmake
     yarp-config.cmake

   Add the installation prefix of "YARP" to CMAKE_PREFIX_PATH or set
   "YARP_DIR" to a directory containing one of the above files.  If "YARP"
   provides a separate development package or SDK, be sure it has been
   installed.

cmake installation configure yarp
1个回答
0
投票
如果您没有安装YARP,那就是问题。如果已安装,则取决于安装方式。

如果从二进制软件包中安装了YARP,应该会自动找到它。

    如果从源构建了YARP并将其安装在“标准”位置(即Linux上的/usr/usr/local,则应该会自动找到它。
  • 如果从源构建了YARP并将其安装在非标准位置(<installation prefix>),则可以选择以下选项之一:
  • CMAKE_PREFIX_PATH环境变量设置为<installation prefix>(如果您打算在同一路径中安装多个软件包,则建议使用。)>

      YARP_DIR环境变量设置为<installation prefix>/lib/cmake/YARP
  • -DYARP_DIR=<installation prefix>/lib/cmake/YARP传递到cmake
  • 运行ccmake而不是cmake,搜索YARP_DIR并将其设置为<installation prefix>/lib/cmake/YARP
  • 如果您是从来源(在<build folder>文件夹中)构建的YARP并没有安装,则可以选择以下选项之一:
  • YARP_DIR环境变量设置为<build folder>

      -DYARP_DIR=<build folder>传递到cmake
  • 运行ccmake而不是cmake,搜索YARP_DIR并将其设置为<build folder>
© www.soinside.com 2019 - 2024. All rights reserved.