@danren-aa120
2020-11-13T06:47:19.000000Z
字数 1153
阅读 508
ROS
Dependencies for Running
* cmake >= 3.11.3 //要在CMakeLists.txt中改成3.10
* All OSes: click here for installation instructions
* make >= 4.1 (Linux, Mac), 3.81 (Windows)
* Linux: make is installed by default on most Linux distros
* Mac: install Xcode command line tools to get make
* Windows: Click here for installation instructions
* gcc/g++ >= 7.4.0
* Linux: gcc / g++ is installed by default on most Linux distros
* Mac: same instructions as make - install Xcode command line tools
* Windows: recommend using MinGW
* IO2D //要把主目录下的P0267_RefImpl拷过去,里面的build不要拷,放在新电脑的主目录下
* Installation instructions for all operating systems can be found here
* This library must be built in a place where CMake find_package
will be able to find it
CMakeLists.txt中要检查有没有:
link_directories(
${catkin_LIB_DIRS})要加上!! catkin_LIB_DIR是变量,存放find_package找出的路径.
具体可看11111www.mamicode.com/info-detail-1743116.html
第一步:
打开https://github.com/cpp-io2d/P0267_RefImpl/blob/master/BUILDING.md网址,找到中的Cairo/Xlib on Linux部分,安装一系列!!
如已把P0267_RefImpl拷过去到home,则不用git clone --recurse-submodules https://github.com/cpp-io2d/P0267_RefImpl(但其它的一系列也得安装),直接:
第二步:
mkdir build
cd build
cmake --config build "-DCMAKE_BUILD_TYPE=build" ..
cmake --build .
sudo make install?
注意程序global_routing.cpp中读取.osm文件的地址要更改