Ubuntu20.04源码安装SUMO
作者根据github官方教程进行安装https://github.com/eclipse/sumo
克隆sumo的github仓库
cd ~
git clone --recursive https://github.com/DLR-TS/SUMOLibraries
如果下载速度较慢或不下载,使用下方码云Gitee命令
cd ~
git clone https://gitee.com/tsbc/sumo.git
然后安装所需依赖
sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev swig
之后进行编译安装
cd ~/sumo
export SUMO_HOME="$PWD"
mkdir build/cmake-build && cd build/cmake-build
cmake ../..
make -j$(nproc)
编译安装完之后进入~/sumo/bin
文件夹运行./sumo-gui
cd ~/sumo/bin
./sumo-gui
成功看到界面,安装完成