2022-04-18 14:53:28 -04:00
|
|
|
Linux
|
|
|
|
=====
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
Debian Bullseye
|
2022-04-18 15:26:53 -04:00
|
|
|
^^^^^^^^^^^^^^^
|
2022-04-18 14:53:28 -04:00
|
|
|
End of Life: TBD
|
|
|
|
|
|
|
|
Install Requirements
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo apt update && sudo apt install \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
libavdevice-dev \
|
|
|
|
libboost-filesystem-dev \
|
2023-03-08 13:35:34 +00:00
|
|
|
libboost-locale-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libboost-log-dev \
|
2022-12-27 14:52:41 -06:00
|
|
|
libboost-program-options-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libcap-dev \ # KMS
|
2023-01-15 09:31:37 -05:00
|
|
|
libcurl4-openssl-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libdrm-dev \ # KMS
|
|
|
|
libevdev-dev \
|
2023-01-15 09:31:37 -05:00
|
|
|
libmfx-dev \ # x86_64 only
|
2022-12-11 17:46:19 -05:00
|
|
|
libnuma-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libopus-dev \
|
2022-12-11 17:46:19 -05:00
|
|
|
libpulse-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libssl-dev \
|
2022-12-11 17:46:19 -05:00
|
|
|
libva-dev \
|
|
|
|
libvdpau-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libwayland-dev \ # Wayland
|
|
|
|
libx11-dev \ # X11
|
|
|
|
libxcb-shm0-dev \ # X11
|
|
|
|
libxcb-xfixes0-dev \ # X11
|
|
|
|
libxcb1-dev \ # X11
|
|
|
|
libxfixes-dev \ # X11
|
|
|
|
libxrandr-dev \ # X11
|
|
|
|
libxtst-dev \ # X11
|
2022-11-19 18:58:37 -05:00
|
|
|
nodejs \
|
|
|
|
npm \
|
2022-04-18 14:53:28 -04:00
|
|
|
nvidia-cuda-dev \ # Cuda, NvFBC
|
2022-12-11 17:46:19 -05:00
|
|
|
nvidia-cuda-toolkit # Cuda, NvFBC
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2023-01-15 09:31:37 -05:00
|
|
|
Fedora 36, 37
|
|
|
|
^^^^^^^^^^^^^
|
2022-04-18 14:53:28 -04:00
|
|
|
End of Life: TBD
|
|
|
|
|
|
|
|
Install Requirements
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2023-01-15 09:31:37 -05:00
|
|
|
sudo dnf update && \
|
|
|
|
sudo dnf group install "Development Tools" && \
|
2022-04-18 14:53:28 -04:00
|
|
|
sudo dnf install \
|
|
|
|
boost-devel \
|
|
|
|
cmake \
|
2023-01-15 09:31:37 -05:00
|
|
|
gcc \
|
2022-04-18 14:53:28 -04:00
|
|
|
gcc-c++ \
|
2023-01-31 02:29:44 +00:00
|
|
|
intel-mediasdk-devel \ # x86_64 only
|
2023-03-15 16:30:18 -04:00
|
|
|
libappindicator-gtk3-devel \
|
2023-01-15 09:31:37 -05:00
|
|
|
libcap-devel \
|
|
|
|
libcurl-devel \
|
|
|
|
libdrm-devel \
|
2022-04-18 14:53:28 -04:00
|
|
|
libevdev-devel \
|
2022-12-11 17:46:19 -05:00
|
|
|
libva-devel \
|
|
|
|
libvdpau-devel \
|
2022-04-18 14:53:28 -04:00
|
|
|
libX11-devel \ # X11
|
|
|
|
libxcb-devel \ # X11
|
|
|
|
libXcursor-devel \ # X11
|
|
|
|
libXfixes-devel \ # X11
|
|
|
|
libXi-devel \ # X11
|
2023-01-15 09:31:37 -05:00
|
|
|
libXinerama-devel \ # X11
|
2022-04-18 14:53:28 -04:00
|
|
|
libXrandr-devel \ # X11
|
|
|
|
libXtst-devel \ # X11
|
|
|
|
mesa-libGL-devel \
|
2022-11-19 18:58:37 -05:00
|
|
|
npm \
|
2022-12-11 17:46:19 -05:00
|
|
|
numactl-devel \
|
2022-04-18 14:53:28 -04:00
|
|
|
openssl-devel \
|
|
|
|
opus-devel \
|
|
|
|
pulseaudio-libs-devel \
|
2023-01-15 09:31:37 -05:00
|
|
|
rpm-build \ # if you want to build an RPM binary package
|
|
|
|
wget \ # necessary for cuda install with `run` file
|
2023-01-31 02:29:44 +00:00
|
|
|
which # necessary for cuda install with `run` file
|
2022-04-18 14:53:28 -04:00
|
|
|
|
|
|
|
Ubuntu 20.04
|
2022-04-18 15:26:53 -04:00
|
|
|
^^^^^^^^^^^^
|
2022-04-18 14:53:28 -04:00
|
|
|
End of Life: April 2030
|
|
|
|
|
|
|
|
Install Requirements
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo apt update && sudo apt install \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
g++-10 \
|
2023-03-15 16:30:18 -04:00
|
|
|
libappindicator3-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libavdevice-dev \
|
|
|
|
libboost-filesystem-dev \
|
2023-03-08 13:35:34 +00:00
|
|
|
libboost-locale-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libboost-log-dev \
|
2022-12-27 14:52:41 -06:00
|
|
|
libboost-program-options-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libcap-dev \ # KMS
|
|
|
|
libdrm-dev \ # KMS
|
|
|
|
libevdev-dev \
|
2023-01-15 09:31:37 -05:00
|
|
|
libmfx-dev \ # x86_64 only
|
2022-12-11 17:46:19 -05:00
|
|
|
libnuma-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libopus-dev \
|
2022-12-11 17:46:19 -05:00
|
|
|
libpulse-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libssl-dev \
|
2022-12-11 17:46:19 -05:00
|
|
|
libva-dev \
|
|
|
|
libvdpau-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libwayland-dev \ # Wayland
|
|
|
|
libx11-dev \ # X11
|
|
|
|
libxcb-shm0-dev \ # X11
|
|
|
|
libxcb-xfixes0-dev \ # X11
|
|
|
|
libxcb1-dev \ # X11
|
|
|
|
libxfixes-dev \ # X11
|
|
|
|
libxrandr-dev \ # X11
|
|
|
|
libxtst-dev \ # X11
|
2022-11-19 18:58:37 -05:00
|
|
|
nodejs \
|
|
|
|
npm \
|
2023-01-15 09:31:37 -05:00
|
|
|
wget # necessary for cuda install with `run` file
|
2022-04-18 14:53:28 -04:00
|
|
|
|
|
|
|
Update gcc alias
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2023-01-15 09:31:37 -05:00
|
|
|
update-alternatives --install \
|
|
|
|
/usr/bin/gcc gcc /usr/bin/gcc-10 100 \
|
|
|
|
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \
|
|
|
|
--slave /usr/bin/gcov gcov /usr/bin/gcov-10 \
|
|
|
|
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 \
|
|
|
|
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-10-27 21:51:24 -04:00
|
|
|
Ubuntu 22.04
|
2022-04-18 15:26:53 -04:00
|
|
|
^^^^^^^^^^^^
|
2022-10-27 21:51:24 -04:00
|
|
|
End of Life: April 2027
|
2022-04-18 14:53:28 -04:00
|
|
|
|
|
|
|
Install Requirements
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo apt update && sudo apt install \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
2023-03-15 16:30:18 -04:00
|
|
|
libappindicator3-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libavdevice-dev \
|
|
|
|
libboost-filesystem-dev \
|
2023-03-08 13:35:34 +00:00
|
|
|
libboost-locale-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libboost-log-dev \
|
2022-12-27 14:52:41 -06:00
|
|
|
libboost-program-options-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libcap-dev \ # KMS
|
|
|
|
libdrm-dev \ # KMS
|
|
|
|
libevdev-dev \
|
2023-01-15 09:31:37 -05:00
|
|
|
libmfx-dev \ # x86_64 only
|
2022-12-11 17:46:19 -05:00
|
|
|
libnuma-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libopus-dev \
|
2022-12-11 17:46:19 -05:00
|
|
|
libpulse-dev \
|
2022-04-18 14:53:28 -04:00
|
|
|
libssl-dev \
|
|
|
|
libwayland-dev \ # Wayland
|
|
|
|
libx11-dev \ # X11
|
|
|
|
libxcb-shm0-dev \ # X11
|
|
|
|
libxcb-xfixes0-dev \ # X11
|
|
|
|
libxcb1-dev \ # X11
|
|
|
|
libxfixes-dev \ # X11
|
|
|
|
libxrandr-dev \ # X11
|
|
|
|
libxtst-dev \ # X11
|
2022-11-19 18:58:37 -05:00
|
|
|
nodejs \
|
|
|
|
npm \
|
2023-01-15 09:31:37 -05:00
|
|
|
nvidia-cuda-dev \ # CUDA, NvFBC
|
|
|
|
nvidia-cuda-toolkit # CUDA, NvFBC
|
|
|
|
|
|
|
|
CUDA
|
|
|
|
----
|
|
|
|
If the version of CUDA available from your distro is not adequate, manually install CUDA.
|
|
|
|
|
|
|
|
.. Tip:: The version of CUDA you use will determine compatibility with various GPU generations.
|
|
|
|
See `CUDA compatibility <https://docs.nvidia.com/deploy/cuda-compatibility/index.html>`_ for more info.
|
|
|
|
|
|
|
|
Select the appropriate run file based on your desired CUDA version and architecture according to
|
|
|
|
`CUDA Toolkit Archive <https://developer.nvidia.com/cuda-toolkit-archive>`_.
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
wget https://developer.download.nvidia.com/compute/cuda/11.4.2/local_installers/cuda_11.4.2_470.57.02_linux.run \
|
|
|
|
--progress=bar:force:noscroll -q --show-progress -O ./cuda.run
|
|
|
|
chmod a+x ./cuda.run
|
|
|
|
./cuda.run --silent --toolkit --toolkitpath=/usr --no-opengl-libs --no-man-page --no-drm
|
|
|
|
rm ./cuda.run
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-11-19 18:58:37 -05:00
|
|
|
npm dependencies
|
|
|
|
----------------
|
|
|
|
Install npm dependencies.
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
npm install
|
|
|
|
|
2022-04-18 14:53:28 -04:00
|
|
|
Build
|
|
|
|
-----
|
2022-04-18 16:05:17 -04:00
|
|
|
.. Attention:: Ensure you are in the build directory created during the clone step earlier before continuing.
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-12-28 16:30:32 -05:00
|
|
|
.. code-block:: bash
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-12-28 16:30:32 -05:00
|
|
|
cmake ..
|
|
|
|
make -j ${nproc}
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-12-28 16:30:32 -05:00
|
|
|
cpack -G DEB # optionally, create a deb package
|
|
|
|
cpack -G RPM # optionally, create a rpm package
|