2. Install/Update the dependencies
Automatic dependencies installation
The preferred way to install dependencies under Linux is now to use the
script featured with Blender sources.
It currently supports Debian (and derived), Fedora, Suse and Arch distributions.
When using the
install_deps.sh script, you are only required to install the following dependencies:
Then, get the sources and run
cd ~/blender-git ./blender/build_files/build_environment/install_deps.sh
This script works for Debian/Redhat/SuSE/Arch based distributions, both 32 and 64 bits.
For other distributions, it can:
- Print the list of all main dependencies needed to build Blender (
- Attempt to build main 'big' libraries you cannot easily install from packages (
--helpof the script for details).
Important It might be required to re-run install-depsh.sh once in a while, as Blender updates its dependencies. You will typically want to try this when you have build errors after updating the sources.
Some commands in this script requires sudo, so you'll be likely be asked for your password.
When the script finishes installing/building all the packages, it'll print which parameters for CMake you should use to build Blender.
+ install_deps.sh options
This scripts accepts some optional command lines arguments (use
+ Manual Dependency Installation (optional)
Manual Dependency Installation
To manually install Blender's dependency packages:
git, build-essential, libx11-dev, libxi-dev, libsndfile1-dev, libopenexr-dev, libopenjp2-7-dev-dev-dev, libpng12-dev, libjpeg-dev libopenal-dev, libalut-dev, python3.5-dev, libglu1-mesa-dev, libsdl-dev, libfreetype6-dev, libtiff4-dev, libavdevice-dev, libavformat-dev, libavutil-dev, libavcodec-dev, libswscale-dev, libx264-dev, libxvidcore4-dev, libmp3lame-dev, libspnav-dev, python3.5
As a final note, here are the key libraries that you may want to use with Blender:
See also: Building Dependencies From Source