-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
macOS Optional Dependencies
To use the Python API you will need to install the latest version of Python 3.7, 3.8 and 3.9 from https://www.python.org And the brew version too:
brew update
brew install [email protected] [email protected] [email protected]
To use the JAVA API you will need to install the Java SE Development Kit 1.8.191
for Mac OS X
from:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
This dependency is required to build the webots.min.js
file, on the develop
branch only.
Install it with brew
:
brew install node
appdmg
is required to create the Webots .dmg
package:
npm install -g appdmg
In order to launch Webots directly from Finder you could create a Webots.app directory with symbolic links to the Webots local repository content as following:
cd ~
mkdir Webots.app
cd Webots.app/
ln -s ${WEBOTS_HOME}/Contents Contents
ln -s ${WEBOTS_HOME}/resources resources
ln -s ${WEBOTS_HOME}/lib lib
ln -s ${WEBOTS_HOME}/bin bin
ln -s ${WEBOTS_HOME}/change_logs change_logs
ln -s ${WEBOTS_HOME}/doc doc
ln -s ${WEBOTS_HOME}/include include
ln -s ${WEBOTS_HOME}/projects projects
ln -s ${WEBOTS_HOME}/util util
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/bash_profile.mac >> ~/.bash_profile
cat scripts/install/bash_profile.mac >> ~/.zprofile
source ~/.bash_profile