Autoware在Ubuntu14.04中编译安装遇到的一些问题及解决办法


  • cv_brige依赖boost 1.54

我之前安装的boost1.66,貌似cv_brige依赖boost1.54,导致编译出错。

解决办法:卸载安装的boost1.66之后,重新下载boost1.54编译安装即可。

卸载boost:boost库一般安装在/usr/local/include/boost和/usr/local/lib中,因此只需要删除相应的文件即可。

sudo rm –rf /usr/local/include/boost

sudo rm –rf /usr/local/lib/libboost_*

安装boost1.54:可以选择下载源码编译安装,也可以通过apt-get安装,网上教程也较多,此处不详细解释。

sudo apt-get  install libboost-dev
  • computing/planning/motion/packages/op_utilities对eigen3的依赖:

编译输出问题如下:

By not providing"FindEigen3.cmake" in CMAKE_MODULE_PATH this project has

asked CMake tofind a package configuration file provided by "Eigen3", but

CMake did not findone.

Could not find apackage configuration file provided by "Eigen3" with any

of the followingnames:

Eigen3Config.cmake

eigen3-config.cmake

Add theinstallation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set

"Eigen3_DIR"to a directory containing one of the above files. If "Eigen3"

provides aseparate development package or SDK, be sure it has been

installed.

 

解决办法:参考https://blog.csdn.net/qq_42037180/article/details/81045556

在主文件夹下直接查找FindEigen3.cmake文件,然后把它复制到报错的CMakeLists.txt对应的路径下,在CMakeLists.txt中添加

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${EIGEN3_INCLUDE_DIRS})

 

然后重新编译就好.

 

 

你可能感兴趣的:(ros,cmake,Linux)