Could not find the required component ‘tf2_geometry_msgs‘. The following CMake error indicates that(
Posted 振华OPPO
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not find the required component ‘tf2_geometry_msgs‘. The following CMake error indicates that(相关的知识,希望对你有一定的参考价值。
报错信息 |
---|
Could NOT find tf2_geometry_msgs(missing: tf2_geometry_msgs_DIR)
-- Could not find the required component 'tf2_geometry_msgs'.
The following CMake error indicates that you either need to
install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"tf2_geometry_msgs" with any of the following names:
tf2_geometry_msgsConfig.cmake
tf2_geometry_msgs-config.cmake
Add the installation prefix of "tf2_geometry_msgs" to CMAKE_PREFIX_PATH or
set "tf2_geometry_msgs_DIR" to a directory containing one of the above
files. If "tf2_geometry_msgs" provides a separate development package or
SDK, be sure it has been installed.
解决方案 |
---|
sudo apt install ros-melodic-tf2-geometry-msgs
ps:如果是ros的其他版本,只需要将melodic换成你的版本即可,然后将后面替换成你缺少的包名,注意要把包名中的 _ 换成 - 才可以。这句我全网只找到一篇,还是外网的一个问答。
以上是关于Could not find the required component ‘tf2_geometry_msgs‘. The following CMake error indicates that(的主要内容,如果未能解决你的问题,请参考以下文章
ERROR: Could not find a version that satisfies the requirement xxx (from versions: none)
pip Could not find a version that satisfies the requirement *(from -r requirements.txt)
pip Could not find a version that satisfies the requirement *(from -r requirements.txt)
pip Could not find a version that satisfies the requirement *(from -r requirements.txt)
pip Could not find a version that satisfies the requirement *(from -r requirements.txt)
[报错处理]Could not find a version that satisfies the requirement xml (from versions)