目录

Ubuntu从源码安装Webots

Ubuntu从源码安装Webots

参考地址

1. 下载源码

git clone -b R2021a --recurse-submodules -j8 https://github.com/cyberbotics/webots.git
git clone git@github.com:cyberbotics/webots.git
cd webots
git checkout R2021a
git submodule init
git submodule update

https://i-blog.csdnimg.cn/direct/205a79e1000549bd8c79b5f2fa2d57ea.png

https://i-blog.csdnimg.cn/direct/0faf42d645db4acc918e74ce13a764d8.png

2. 编译安装

sudo ./scripts/install/linux_compilation_dependencies.sh 
sudo apt install python3-pip
sudo -H pip3 install --upgrade pip
sudo -H pip3 install tornado psutil requests distro pynvml
cat scripts/install/bashrc.linux >> ~/.bashrc
nano ~/.bashrc # 更新源码及qt路径
source ~/.bashrc
make -j8

https://i-blog.csdnimg.cn/direct/a46fb1aee5ad491e8f6ebcf5d7c06acb.png

https://i-blog.csdnimg.cn/direct/12d14da26ff0457880c8afbe4336b754.png

https://i-blog.csdnimg.cn/direct/00c948fa8eb04f6c868587ce97718398.png

3. 运行启动

webots