目录
二、GeographicLib安装与CmakeList.txt配置
一、Virtualbox 共享文件夹无权限访问
在终端输入:(将jiaping替换成用户名,运行然后重启。)
sudo usermod -a -G vboxsf jiaping
二、GeographicLib安装与CmakeList.txt配置
1.下载GeographicLib库
sudo apt-get update
sudo apt-get install libgeographic-dev
2.配置CmakeList.txt,添加如下代码
find_package(GeographicLib REQUIRED)
include_directories(${GeographicLib_INCLUDE_DIRS})
list(APPEND ALL_TARGET_LIBRARIES ${GeographicLib_LIBRARIES})
target_link_libraries(${PROJECT_NAME}
${GeographicLib_LIBRARIES}
)
3.下载依赖(Ubuntu 20 对应noetic)
sudo apt-get install ros-noetic-geographic-*
sudo apt-get install geographiclib-*
sudo apt-get install libgeographic-*
4.由于GeographicLib.cmake目录并未在Cmake下 ,会找不到
sudo ln -s /usr/share/cmake/geographiclib/FindGeographicLib.cmake /usr/share/cmake-3.16/Modules/
三、pip3 install 下载太慢
pip3 install -U setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple
--- stderr: lanelet2_maps
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:305 (message):
catkin_package() include dir 'include' does not exist relative to
'/home/lyz/autoware.ai/src/vendor/lanelet2/lanelet2_maps'
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
CMakeLists.txt:59 (catkin_package)
---