-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Linux Optional Dependencies
To build the JAVA API you will need to install the Java Development Kit:
→ Ubuntu 18.04:
sudo apt install openjdk-11-jdk
→ Ubuntu 16.04:
sudo apt install openjdk-8-jdk
A recent version (>= 10) of Node.js npm is needed to build webots.min.js
:
On Ubuntu 18.04, you can install it with this command:
sudo apt-get install npm
On Ubuntu 16.04, please use:
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
rm nodesource_setup.sh
To install Python 3.6, 3.7 and 3.8 on Ubuntu 16.04 (and Python 3.8 on Ubuntu 18.04), you will need to add a new PPA:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.6-dev python3.7-dev python3.8-dev
This is needed only to run Webots as a web service (simulation_server.py in the cloud).
Install the following for Python 3:
sudo apt install python3-pip
sudo -H pip3 install --upgrade pip
sudo -H pip3 install websocket-client tornado nvidia-ml-py3 psutil requests distro
Install firejail 0.9.56.2.LTS from sources (default APT version 0.9.52 is buggy!):
wget https://github.com/netblue30/firejail/archive/0.9.56.2-LTS.tar.gz
tar xzf 0.9.56.2-LTS.tar.gz
cd firejail-0.9.56.2-LTS/
./configure && make && sudo make install-strip
cd ..
rm -r 0.9.56.2-LTS.tar.gz firejail-0.9.56.2-LTS
This is needed only if you want to use the automobile tools (including the OpenStreetMap importer)
Follow the instructions here: https://www.cyberbotics.com/doc/automobile/openstreetmap-importer