-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Linux Optional Dependencies
The Webots optional dependencies can be installed with the following script:
sudo scripts/install/linux_optional_compilation_dependencies.sh
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
Install subversion (used by simulation_server.py to checkout GitHub repositories):
apt-get install subversion
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
Web interface with wren.js [work in progress for #2769]
To be able to compile the streaming-viewer, you need python 3, pyclibrary and Emscripten
Enter the following command in a terminal:
pip install pyclibrary
Run the following commands in a terminal:
# Get the emsdk repo
git clone https://github.com/emscripten-core/emsdk.git
# Enter that directory
cd emsdk
# Download and install the latest SDK tools.
./emsdk install latest
# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate latest
Then uncomment the line source $HOME/emsdk/emsdk_env.sh >/dev/null 2>&1
in bashrc.linux
that is in webots/script/install
.
Run the following commands from Webots home folder:
cat scripts/install/bashrc.linux >> ~/.bashrc
source ~/.bashrc