- Install NPM
- Run the following commands
npm install
npm run build:umd
Only Ubuntu 20.04 and 22.04 are supported using pre-built libwebrtc library for x86_64 and aarch64 architectures.
sudo apt install ninja-build python3-dev cmake build-essential libssl-dev libboost-all-dev libopencv-dev python3-pip python3-venv python3 python-is-python3 python3-sphinx libglib2.0-dev libgtk-3-dev libpulse-dev libasound2-dev tree
Add the following dependencies if you want GStreamer support :
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools
Also install Python requirements:
python -m pip install -r requirements.txt
git submodule update --init --recursive
cd opentera-webrtc
mkdir build
cd build
cmake .. -DOPENTERA_WEBRTC_USE_SYSTEM_OPENCV=ON|OFF -DOPENTERA_WEBRTC_ENABLE_TESTS=ON|OFF -DOPENTERA_WEBRTC_ENABLE_GSTREAMER=ON|OFF
If find_package(Python) failed, you can specify the python version with the CMake option OPENTERA_WEBRTC_NATIVE_CLIENT_PYTHON_VERSION
.
make
Only MacOS 11, 12 and 13 are supported using pre-built libwebrtc library for x86_64 architecture.
brew install ninja tree ca-certificates
Add the following dependencies if you want GStreamer support :
brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-devtools
python -m pip install -r requirements.txt
git submodule update --init --recursive
cd opentera-webrtc
mkdir build
cd build
cmake .. -DOPENTERA_WEBRTC_USE_SYSTEM_OPENCV=OFF -DOPENTERA_WEBRTC_ENABLE_TESTS=ON|OFF -DOPENTERA_WEBRTC_ENABLE_GSTREAMER=ON|OFF -DOPENTERA_WEBRTC_NATIVE_CLIENT_PYTHON_PIP_INSTALL_PREFIX='--user'
If find_package(Python) failed, you can specify the python version with the CMake option OPENTERA_WEBRTC_NATIVE_CLIENT_PYTHON_VERSION
.
cmake --build .
WARNING building on Windows is complicated and may not work.
- Git
- Do not add all the UNIX tools to path, it will conflict with the
MSYS2
tools. You will be fine if you use the default options.
- Do not add all the UNIX tools to path, it will conflict with the
- CMake
- Add CMake to the PATH variable for at least the current user.
- Python 3
- Install Python 3.8 or higher
- Choose customize installation
- Make sure to include
pip
- Make sure to add to
PATH
- Make a symlink of the
python.exe
executable aspython3.exe
- Find it using
where python
in a CMD prompt - Use the command
mklink python3.exe python.exe
- If offered to disable PATH length limit, choose to do it
- Find it using
- MSVC 2022 Build Tools
- Choose the Desktop C++ workload
numpy
installed on python 3 withpython3 -m pip install numpy
wheel
installed on python 3 withpython3 -m pip install wheel
pybind11-stubgen
installed on python 3 withpython3 -m pip install pybind11-stubgen
sphinx
installed on python 3 withpython3 -m pip install sphinx
- Install other Python dependencies with
python -m pip install -r requirements.txt
- Install signaling server Python dependencies with
python -m pip install -r signaling-server\requirements.txt
- MSYS2
- Check
Run MSYS2 now
at the end of the installation process - Update using
pacman -Syu
- Launch
MSYS2 MSYS
from the Start menu- Update using
pacman -Su
- Add
C:\msys64\usr\bin
andC:\msys64\usr\local\bin
toPATH
BEFOREC:\Windows\System32
(to properly use theMSYS
commands that have Windows or Git-bash equivalents named the same way)
- Update using
- Check
- Node.js
- No need to install Python and MSVC Build Tools, as they should be installed from before
These packages are utilities used during the build process
pacman -S rsync tar perl
git submodule update --init --recursive
Using a CMD prompt (not tested with powershell
or git-bash
or msys2
or any other shell)
cd opentera-webrtc
mkdir build
cd build
cmake .. -DOPENTERA_WEBRTC_ENABLE_TESTS=ON|OFF
Using a CMD prompt (not tested with powershell
or git-bash
or msys2
or any other shell)
cmake --build . --config Release|Debug
Using a CMD prompt (not tested with powershell
or git-bash
or msys2
or any other shell)
cmake --install .