Package Details: blender-develop-git 4.2.r135343.gfc08f7491e7-1

Git Clone URL: https://aur.archlinux.org/blender-develop-git.git (read-only, click to copy)
Package Base: blender-develop-git
Description: Development version of Blender (non-conflicting version)
Upstream URL: https://blender.org/
Licenses: GPL
Conflicts: blender
Provides: blender
Submitter: bartus
Maintainer: bartus
Last Packager: bartus
Votes: 12
Popularity: 0.000000
First Submitted: 2020-05-04 01:47 (UTC)
Last Updated: 2024-04-22 16:59 (UTC)

Required by (61)

Sources (9)

Pinned Comments

bartus commented on 2020-01-16 16:01 (UTC) (edited on 2021-11-01 14:05 (UTC) by bartus)

Current packages state (non-conflicting ones):

bartus commented on 2019-04-10 11:40 (UTC) (edited on 2024-03-01 09:41 (UTC) by bartus)

Note: This is a non-conflicting version of blender-git package with GPU architecture detected at build time.
This package is also hosted on GitHub.
Use env vars to control the build process:
  • DISABLE_CUDA=1 to skip cuda kernel build (cycles+compositor+optix,requires:cuda)
  • DISABLE_HIP=1 to skip amdgpu kernel build (requires:hip-runtime-amd)
  • ENABLE_PYTHON_INSTALL include bundled python (default:off)
  • DISABLE_NINJA=1 to switch the build system to make (default:ninja)
  • DISABLE_OPTIX=1 to skip Optix device build.
  • DISABLE_DRACO=1 to skip gltf exporter draco mesh compression extension.
  • FRAGMENT="#{commit,tag,branch}=..." for making bisect build.
  • CUDA_ARCH="sm_xx sm_yy" to build for a specific Cuda arch, supports multiple values.
  • HIP_ARCH="gfx900 gfx1103" to build for a specific amdgpu arch, supports multiple values.
  • MAKEFLAGS="xxx" to override default make flags (check oom-killer disclaimer below)
  • MAKEFLAGS="xxx:yyy" to override default make flags (colon-separated list)
Usage cases:
  • export DISABLE_CUDA=1 before build
  • DISABLE_CUDA=1 ~your-aur-helper~
  • makepkg DISABLE_CUDA=1
  • yay -S blender-develop-git --mflags "DISABLE_CUDA=1 DISABLE_HIP=1"
Yay users warning:

Since yay relies solely on aur-rpc to solve dependencies instead of calling makepkg --sync it can't follow dependencies logic defined in PKGBUILD. That's why it's up to the user to provide dependencies to enable desired features. Optional features includes cuda/optix/usd.

tl;dr; If you want to prebuild cycles kernels, you have to install CUDA beforehand. If you don't have CUDA installed, PKGBUILD will fail unless you disable cuda with DISABLE_CUDA=1, same for optix and usd.

Out of memory killer.

You may use ninja-mem to prevent oom-killer when building on system with low memory to core ratio.

To activate use MAKEFLAGS+=" -m75" where 75 is the percentage upper threshold of memory usage when new build jobs is postponed.

Or simply lower the make jobs count in "MAKEFLAGS" variable, but this will prolong your build process.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

bartus commented on 2018-11-26 00:08 (UTC)

@hugegameartgd: blender-2.8 --debug-gpu

LinuxUserGD commented on 2018-11-25 16:53 (UTC)

Blender freezes for me (does also happen with the official downloads).

kingcreole commented on 2018-11-23 07:21 (UTC)

oh, i never said thank you, thank you @bartus :)

bartus commented on 2018-11-21 12:50 (UTC)

@nepro2k: fixed.

netpro2k commented on 2018-11-21 06:28 (UTC) (edited on 2018-11-21 08:56 (UTC) by netpro2k)

The blender-addons and blender-addons-contrib repos both have a blender2.8 branch as well which this should probably use since it contains addons updated for the 2.8 version of blender.

Maybe use this from the official makefile? https://github.com/sobotka/blender/blob/blender2.8/GNUmakefile#L461-L463

bartus commented on 2018-10-25 13:51 (UTC) (edited on 2018-10-25 14:04 (UTC) by bartus)

@wojtex: I haven't got any issues when using blender-2.8 build against llvm7 did you encounter a problem, or is your rationale that blender build-deps pulls llvm6 by default?

wojtex commented on 2018-10-17 21:25 (UTC) (edited on 2018-10-17 21:33 (UTC) by wojtex)

Hi. It seems that blender needs LLVM6 to build, so maybe add llvm6-libs to deps : - )

And thanks for maintaining this and other packages!

bartus commented on 2018-08-31 12:24 (UTC) (edited on 2018-08-31 12:42 (UTC) by bartus)

@kingcreole: looks like cmake<>cuda issue in arch repo. For now, just enforce sm_50 (here is PKGBUILD for you ;). If the problem prevails, I will have to drop autoselect Cuda arch ;(

kingcreole commented on 2018-08-30 20:53 (UTC) (edited on 2018-08-30 20:54 (UTC) by kingcreole)

thank you, for me it shows


-- Found CUDA: /opt/cuda (found version "9.2") 
-- CUDA nvcc = /opt/cuda/bin/nvcc
-- Automatic GPU detection failed. Building for common architectures.
-- Autodetected CUDA architecture(s): 3.0;3.5;5.0;5.2;6.0;6.1;7.0;7.0+PTX
-- Enabling CUDA support (version: 9.2, archs: sm_30 sm_35 sm_50 sm_52 sm_60 sm_61 sm_70 compute_70)

bartus commented on 2018-08-30 20:02 (UTC)

@kingcreole: please look at the build log if autodetect is working for cuda

-- Found CUDA: /opt/cuda (found version "9.2") 
-- CUDA nvcc = /opt/cuda/bin/nvcc
-- Autodetected CUDA architecture(s):  5.0
-- Enabling CUDA support (version: 9.2, archs: sm_50)

In case it isn't, remove this line form prepare() function. git apply ${srcdir}/SelectCudaComputeArch.patch