Autoware在Ubuntu14.04中編譯安裝遇到的一些問題及解決辦法
阿新 • • 發佈:2018-12-11
-
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.
在主資料夾下直接查詢FindEigen3.cmake檔案,然後把它複製到報錯的CMakeLists.txt對應的路徑下,在CMakeLists.txt中新增
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${EIGEN3_INCLUDE_DIRS})
然後重新編譯就好.