我正在尝试遵循创建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.
如果从二进制软件包中安装了YARP,应该会自动找到它。
/usr
或/usr/local
,则应该会自动找到它。<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>