一、问题描述
编译 Autoware 时遇到如下错误:
CMake Error at /opt/cmake-3.13.0/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Armadillo (missing: ARMADILLO_LIBRARY ARMADILLO_INCLUDE_DIR)
Call Stack (most recent call first):
/opt/cmake-3.13.0/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/opt/cmake-3.13.0/share/cmake-3.13/Modules/FindArmadillo.cmake:77 (find_package_handle_standard_args)
CMakeLists.txt:22 (find_package)
二、解决方法
先安装相关的库:
sudo apt install libopenblas-dev liblapack-dev
下载该库,并进行安装。注意,该库不能在编译autoware的工作空间autoware.ai下进行下载安装,需要换个其他的路径(比如 /home/third_library)
wget http://sourceforge.net/projects/arma/files/armadillo-9.880.1.tar.xz
tar -xvf armadillo-9.880.1.tar.xz
cd armadillo-9.880.1
./configure
make
sudo make install
这样就成功安装 armadillo 了~~~~
参考链接:
[1] 基于Ubuntu16.04TLS的激光雷达与相机用Autoware 1.12.0进行联合标定遇到的Bug与解决方案。(最后完美运行) https://blog.csdn.net/CCCrunner/article/details/108896363