Template:Building Blender/Linux/dependencies

Advanced Setup

Automatic Dependency Installation

When not using precompiled libraries, the preferred way to install dependencies under Linux is to use the install_linux_packages.py script in the Blender sources. It will try to install system packages for all known dependencies, required or optional.

It currently supports Debian (and derivatives like Ubuntu), Fedora, Suse and Arch distributions. It is executed as follows.

cd ~/blender-git/blender
./build_files/build_environment/install_linux_packages.py --all

Some commands in this script requires sudo, so you'll be likely be asked for your password.

For unrecognized distributions, it will only print a list of the dependencies.

Building with Precompiled libraries and System libraries

In case both precompiled and system libraries are available, by default CMake will use the pre-compiled ones.

To force it to ignore the precompiled libraries and search for system ones, CMake WITH_LIBS_PRECOMPILED option must be disabled.


Portable Builds

The above instructions install packages through the system package manager. This makes it possible to share packages between Blender and other software, however the resulting builds will generally not work on other computers.

When using the precompiled libraries, builds are portable and can be shared with others. These libraries are built from source, and this system can also be used to create your own portable libraries.

Running make deps will build libraries in ../lib/linux_x86_64_glibc_228, which will be automatically picked up when building Blender itself.

Besides the libraries, the GLIBC version of the system affects portability. Builds will only run on Linuxes with the same or higher GLIBC version. Official builds are made with RHEL 8 and glibc 2.28.