Установка блендера на линукс

Building Blender on Ubuntu

The following instructions will create a Blender build in a blender-git folder in your home directory.

Install Initial Packages

Ensure both Python3 and Git are installed.

sudo apt update sudo apt install python3 git

Download Sources

Download the latest source code from the projects.blender.org.

mkdir ~/blender-git cd ~/blender-git git clone https://projects.blender.org/blender/blender.git

For additional information on using Git with Blender’s sources, see: Tools/Git

Install Basic Building Environment

From within ~/blender-git/blender/ , execute that command to install basic building dependencies.

./build_files/build_environment/install_linux_packages.py

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

Alternatively, you can also install all basic dependencies manually with the package manager.

sudo apt update sudo apt install build-essential git subversion cmake libx11-dev libxxf86vm-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libegl-dev sudo apt install libwayland-dev wayland-protocols libxkbcommon-dev libdbus-1-dev linux-libc-dev

Download Libraries

For Intel and AMD Linux systems, we recommend using precompiled libraries. These are the quickest way to get a feature complete Blender build and can be downloaded as follows.

These libraries are built on Rocky8 for VFX reference platform compatibility, but they work fine on other Linux distributions.

mkdir ~/blender-git/lib cd ~/blender-git/lib svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_x86_64_glibc_228

For other systems or to use system packages, see Advanced Setup.

Update and Build

Get latest source code and add-ons, and build. These commands can be used for the first build, and repeated whenever you want to update to the latest version.

cd ~/blender-git/blender make update make

After the build finished, you will find blender ready to run in ~/blender-git/build_linux/bin .

If building fails after an update, it sometimes helps to remove the ~/blender-git/build_linux folder to get a completely clean build.

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.

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.

Читайте также:  Загрузка linux через флешку

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.

Manual CMake Setup

If you want to have more control over your build configuration or have multiple build directories for a single source directory. You can follow these steps.

Typically useful for developers, who build frequently.

CMake Setup

Now you have to choose a location for CMake build files, currently in-source builds in Blender aren’t supported.

By doing an «out-of-source» build you create a CMake’s directory aside from ~/blender-git/blender , for example ~/blender-git/build :

mkdir ~/blender-git/build cd ~/blender-git/build cmake ../blender

This will generate makefiles in the build directory ( ~/blender-git/build ).

As said above, in-source-builds where you build blender from the source code directory are not supported.
If CMake finds a CMakeCache.txt in the source code directory, it uses that instead of using ~/blender-git/build/CMakeCache.txt .

If you have tried to do an in-source build, you should remove any CMakeCache.txt from the source code directory before actually running the out-of-source build:

rm ~/blender-git/blender/CMakeCache.txt

Building Blender

After changes have been done and you have generated the makefiles, you can compile using the make command inside the build directory:

cd ~/blender-git/build make make install

Also notice the install target is used, this will copy scripts and documentation into ~/blender-git/build/bin

For future builds you can simply update the repository and re-run make.

cd ~/blender-git/blender make update cd ~/blender-git/build make make install

Build Options

By default Blender builds will be similar to official releases. Many Build Options are available for debugging, faster builds, and to enable or disable various features.

System Installation

Portable installation is the default where scripts and data files will be copied into the build ~/blender-git/build/bin directory and can be moved to other systems easily.

To install Blender into the system directories, a system installation can be used instead. Disable WITH_INSTALL_PORTABLE to install into CMAKE_INSTALL_PREFIX which uses a typical Unix FHS layout: bin/, share/blender/, man/ etc.

Optimize Rebuilds

Now that you can build Blender and run Blender, there are changes you can make which greatly increase the speed of build times.

Use one of the CMake configuration editors (ccmake or cmake-gui), see Editing CMake Options

Читайте также:  Linux мигает курсор при загрузке

For really fast rebuilds you can disable Every option with the WITH_ prefix, except for WITH_PYTHON which is needed for the UI. This speeds up linking and gives a smaller binary.

Remove the files created by make install since they will become stale. However, Blender still needs to be able to find its scripts or you will have a very minimalist looking interface. This can be solved by linking the source directory to your Blender binary path so copying isn’t needed and scripts are always up to date.

rm -r ~/blender-git/build/bin/*.* ln -s ~/blender-git/blender/release ~/blender-git/build/bin/

For convenient access, create this symlink to run blender from the source directory:

ln -s ~/blender-git/build/bin/blender ~/blender-git/blender/blender.bin

You can add any files created this way to ~/blender-git/blender/.git/info/exclude so they won’t count as untracked files for git. Add your local files here, instead of in .gitignore, because .gitignore is also committed and will affect everyone else.

See also

Источник

Как установить Blender в Linux

Blender — это ведущий бесплатный инструмент для 3D-моделирования в Linux. Он очень продвинутый и может использоваться для всего, от разработки видеоигр, фильмов, а также для базовых анимационных проектов.

Приложение Blender — это проект с открытым исходным кодом, поэтому он пользуется широкой поддержкой во всех современных дистрибутивах Linux, таких как Ubuntu, Debian, Arch Linux, Fedora и OpenSUSE. Кроме того, Blender доступен для установки в форматах пакетов Flatpak и Snap. Следуйте этому руководству, чтобы узнать, как установить Blender в вашей системе Linux.

Инструкции по установке Ubuntu

Программы для Windows, мобильные приложения, игры — ВСЁ БЕСПЛАТНО, в нашем закрытом телеграмм канале — Подписывайтесь:)

В Ubuntu Linux приложение Blender можно легко настроить с помощью репозиториев программного обеспечения, встроенных в систему. Однако, если вам нужна самая последняя и лучшая версия, настоятельно рекомендуется установить ее через PPA. Чтобы включить Blender PPA, откройте окно терминала, нажав Ctrl + Alt + T или Ctrl + Shift + T и введите команду ниже.

sudo add-apt-repository ppa:thomas-schiex/blender

После добавления Blender PPA на ваш компьютер с Ubuntu Linux вы должны запустить Обновить , чтобы убедиться, что исходники программного обеспечения Ubuntu обновлены.

После Обновить , установите приложение Blender в Ubuntu с подходящая установка команда.

Инструкции по установке Debian

Debian Linux содержит приложение Blender в «Основном» репозитории программного обеспечения для большинства версий операционной системы. Чтобы установить Blender на свой компьютер с Debian Linux, откройте окно терминала с помощью Ctrl + Alt + T или Ctrl + Shift + T. Оттуда используйте команду ниже, чтобы приложение заработало.

sudo apt-get install blender

Следует отметить, что, хотя Blender доступен всем пользователям Debian Linux, приложение устарело из-за того, как операционная система выпускает обновления программного обеспечения. Если вам нужна более новая версия Blender на Debian, следуйте этому руководству, чтобы узнать, как включить Debian Backports. Или следуйте инструкциям Flatpak или Snap далее в этом руководстве.

Инструкции по установке Arch Linux

Чтобы использовать Blender в Arch Linux, вы должны включить программный репозиторий «Сообщество». Для этого откройте окно терминала, нажав Ctrl + Alt + T или Ctrl + Shift + T на клавиатуре. Затем откройте файл конфигурации Pacman в текстовом редакторе Nano.

sudo nano -w /etc/pacman.conf

С использованием Стрелка вниз на клавиатуре найдите раздел файла «Сообщество» и удалите символ # перед словом «Сообщество». Не забудьте также удалить символ # из всех строк непосредственно под ним.

Читайте также:  Linux как основная операционная система

После того, как вы внесли изменения в файл конфигурации Pacman в текстовом редакторе Nano, пришло время сохранить изменения. Для сохранения нажмите Ctrl + O на клавиатуре и нажмите Клавиша ввода. Затем закройте текстовый редактор Nano, нажав Ctrl + X.

После сохранения изменений в файле конфигурации Pacman используйте диспетчер пакетов Arch для повторной синхронизации источников программного обеспечения, чтобы было доступно «Сообщество».

Наконец, установите приложение Blender на свой компьютер с Arch Linux с помощью следующей команды.

Инструкции по установке Fedora

Пользователи Fedora Linux могут получить относительно недавний выпуск приложения Blender через репозиторий программного обеспечения Fedora. Чтобы установить Blender на ПК с Fedora Linux, откройте окно терминала, нажав Ctrl + Alt + T или Ctrl + Shift + T на клавиатуре. Затем оттуда используйте Dnf команда управления пакетами ниже, чтобы установить приложение в системе.

sudo dnf install blender -y

Инструкции по установке OpenSUSE

В каждом выпуске OpenSUSE Linux есть приложение Blender, доступное в репозитории программного обеспечения «Oss all». Чтобы установить приложение Blender на ваш ПК с OpenSUSE Linux, начните с запуска окна терминала с Ctrl + Alt + T или Ctrl + Shift + T. Затем при открытом окне терминала используйте Zypper менеджер пакетов для установки Blender.

sudo zypper install blender

Blender очень хорошо работает в OpenSUSE Linux. Тем не менее, операционная система довольно устарела по сравнению со многими другими дистрибутивами Linux. Если вам нужен более свежий выпуск Blender на вашем ПК с OpenSUSE, подумайте о том, чтобы вместо этого следовать инструкциям Snap или Flatpak.

Инструкции по установке пакета Snap

Приложение для 3D-моделирования Blender доступно для установки через магазин Snap. Итак, если вы используете операционную систему Linux с поддержкой Snap, заставить работать Blender — это быстрый и безболезненный процесс.

Чтобы установить Blender через Snap, откройте окно терминала и выполните приведенную ниже команду установки, чтобы все заработало. Или запустите приложение Snap store, найдите «Blender» и нажмите синюю кнопку «Установить».

Примечание: чтобы использовать пакеты Snap в Linux, вы должны включить Snapd. Чтобы узнать, как это сделать, щелкните здесь.

sudo snap install blender

Инструкции по установке Flatpak

Blender можно установить как Flatpak, что означает, что если у вас возникнут проблемы с работой приложения через репозиторий программного обеспечения вашей ОС Linux, вы все равно сможете использовать программу.

Чтобы настроить Blender через Flatpak в Linux, откройте окно терминала и введите команды ниже.

Примечание. Для программ Flatpak требуется среда выполнения Flatpak. Прежде чем пытаться установить Blender, следуйте нашему руководству, чтобы узнать, как включить Flatpak в вашей системе.

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak install flathub org.blender.Blender

Программы для Windows, мобильные приложения, игры — ВСЁ БЕСПЛАТНО, в нашем закрытом телеграмм канале — Подписывайтесь:)

Источник

Оцените статью
Adblock
detector