当前位置: 代码迷 >> 综合 >> Could not find package configuration file provided by“i2cpwm_board“ with any of following names[已解决]
  详细解决方案

Could not find package configuration file provided by“i2cpwm_board“ with any of following names[已解决]

热度:105   发布时间:2023-10-28 22:47:06.0

遇到问题:

Errors     << servo_move_keyboard:cmake /home/ubuntu/spotmicro/logs/servo_move_keyboard/build.cmake.000.log
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):Could not find a package configuration file provided by "i2cpwm_board" withany of the following names:i2cpwm_boardConfig.cmakei2cpwm_board-config.cmakeAdd the installation prefix of "i2cpwm_board" to CMAKE_PREFIX_PATH or set"i2cpwm_board_DIR" to a directory containing one of the above files.  If"i2cpwm_board" provides a separate development package or SDK, be sure ithas been installed.
Call Stack (most recent call first):CMakeLists.txt:10 (find_package)
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):Could not find a package configuration file provided by "i2cpwm_board" withany of the following names:i2cpwm_boardConfig.cmakei2cpwm_board-config.cmakeAdd the installation prefix of "i2cpwm_board" to CMAKE_PREFIX_PATH or set"i2cpwm_board_DIR" to a directory containing one of the above files.  If"i2cpwm_board" provides a separate development package or SDK, be sure ithas been installed.
Call Stack (most recent call first):CMakeLists.txt:10 (find_package)
...............................................................................
Failed     << servo_move_keyboard:cmake                  [ Exited with code 1 ]
Failed    <<< servo_move_keyboard                        [ 12.1 seconds ]
Abandoned <<< spot_micro_launch                          [ Unrelated job failed ]
Abandoned <<< spot_micro_motion_cmd                      [ Unrelated job failed ]
Abandoned <<< spot_micro_plot                            [ Unrelated job failed ]
Abandoned <<< spot_micro_rviz                            [ Unrelated job failed ]
Finished  <<< spot_micro_joy                             [ 14.2 seconds ]
Finished  <<< spot_micro_keyboard_command                [ 13.6 seconds ]
Finished  <<< lcd_monitor                                [ 15.5 seconds ]
[build] Summary: 4 of 9 packages succeeded.
[build]   Ignored:   None.
[build]   Warnings:  None.
[build]   Abandoned: 4 packages were abandoned.
[build]   Failed:    1 packages failed. 
[build] Runtime: 26.5 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.

最后发现Mike这位同学确实缺少了这个包,他放了一个文件夹但是里面 是 空 的!!!

在github的项目网站上面可以查看到此处ros-i2cpwmboard文件夹下面是一个空文件。
想要知道是否是空文件只要双击它:双击能进去看到它的下属目录,就不是空文件夹;双击进不去,就是空文件夹。

因此我单独去下载了 i2cpwmbooard for ros-kinetic, 并补充在缺少的位置,再次运行就OK了。
在这里插入图片描述

这次失败得到的教训是,要自己下载好整理好,再上传到树莓派上运行,不然只能根据报错一行一行一处一处的找原因。

希望各位遇到同样缺包的问题时,先去自查一下是否真的缺少这些包(物理),然后再去检查是否缺少这些包的链接或是放置位置错误。

祝大家 ~ 头发多多,BUG少少 ~ !

  相关解决方案