X3派编译中遇到的错误

1、没有安装mavros

(Make Errer at /opt/ros/noetic/share/catkin/cmake/catkinconfig.cmake:83 (find package):
Could not find a package configuration file provided by "mavras msgs" withany of the following names:
mavros msgs(onf1g.cmakemavros msgs-conf1g,cmake
Add the installation prefix of "mavros msgs" tO CMAKE PREFIX PATH QF Set"mavros msgs DIR" to a directory containing one of the above files、 If"mavros msgs" proyides a separate development package or spk, he sure ithas been instelled.

参考上一章mavros安装-CSDN博客

2、

cpp:8:10: fatal errar: move base msgs/MoveBaseAction.h: No such file or directoi
8 |#include<move base msgs/MoveBaseAction.h>
compllatlon terminated.&make[2]: *** [offboard single position/CMakeFiles/offboard single position.dir/build.make:63;offboard single position/CMakeFiles/offboard single positron.dir/src/offboard single position.cpp.ol Error lmake[1]:*** [CMakeFiles/Makefile2:443: offboard single position/CakeFiles/offboard single position,dir/all] Error 2

make:*** [Makefile;141; all] Error 2

Invoking "make -j4 -l4” failed

解决方法:其中noetic改为自己ros版本

sudo apt-get install ros-noetic-move-base-msgs

3、 Error at /opt/ros/noetic/share/catkin/cmake/catkinconf1g.cmake:83 (find_package):
Could not find a package configuration file provided by"async_web_server_cpp" with any of the following names :
async web_server_cppConfig.cmake                                                                                          async web server cpp-config.cmake
Add the installation prefix of "async web server cpp" tO CMAKE PREFIX PATHor set "async web server cpp DIR" to a directory containing one of theabove files, If "async web server cpp" provides a separate developmentpackage or SDK,be sure it has been installed.

解决方法:其中noetic改为自己ros版本

sudo apt-get install ros-noetic-async-web-server-cpp

4、Could not find a package configuration file provided by "boost python3"
(requested version 1.71.0)with any of the following names:
boost python3config.cmake                                                                                                        boost python3-config.cmake
Add the installation prefix of "boost python3" to CMAKE PREFIX PATH or set"boost python3 DIR" to a directory containing one of the above files. If"boost python3" provides a separate development package or sok, be sure ithas been installed

解决方法:将 vision opencv/cv_bridge/CMakeLists.txt 中的如下语句:

if(NOT ANDROID)
  find_package(PythonLibs)
  if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
    find_package(Boost REQUIRED python)
  else()
    find_package(Boost REQUIRED python3)
  endif()
else()
find package(Boost REQUIRED)
endif()

改为

if(NOT ANDROID)
  find_package(PythonLibs)
  #if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
    find_package(Boost REQUIRED python)
  #else()
  # find_package(Boost REQUIRED python3)
  #endif()
else()
find package(Boost REQUIRED)
endif()

5、Could not find a package configuration file provided by "serial" with anyof the following names:
seraalConf1g.tmake                                                                                                                  serial-tonf1g.cmake
Add the installation prefix of "serial" to CMAKE PREFIX PATH Or set"serial_DIR" to a directory containing one of the above files. If "serial"provides a separate development package or SDK, be sure it has been installed.

解决方法:

sudo apt-get install ros-noetic-serial

6、Could not find a package configuration file provided by61"ddynamic reconfigure" with any of the following names:
ddynamic reconfigureconfig.cmake                                                                                              ddynamic reconfigure-conf1g.cmake
Add the installation prefix of "ddynamic reconfigure" tO CMAKE PREFIX PATHor set "ddynamic reconfigure DIR" to a directory containing one of theabove files, If "ddynamic reconfigure" provides a separate developmentpackage or SDK,be sure it has been installed.

解决方法:

sudo apt-get install ros-noetic-ddynamic-reconfigure

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值