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