New update: https://gist.github.com/sausix/2df9897832aa9ecb04b77ccfe8cc0056
I tried to build on a non NVidia computer for the first time.
gcc14
seems always to be required not only for CUDA.- The build is using the
ld.gold
linker for some reason. Just found the older workarounds in the comments here. Butlld
should be the preferred option. It was not installed and cmake still choseld.gold
. Added some CMAKE flags. The "LD" env could also be used but I did not test it. - Added
lld
dependency. - Added some more "else" branches on CUDA and Optix. It tried to compile CUDA and Optix-Cycles before because their options default to "ON". Saves time and disk space.
FYI: makepkg-git-lfs-proto
should be installed before creating the package. It spits out warnings. MAKEDEPENDS is too late so you probably have to invoke makepkg twice?
Pinned Comments
fbrennan commented on 2025-08-18 16:53 (UTC) (edited on 2025-08-18 16:54 (UTC) by fbrennan)
I had hoped that there would be some alternative to requiring Git LFS. However, given how many months have passed, it seems that this is going to be a permanent requirement for building going forwards from the Blender development team. So, I have accepted the patch of @
sausix
and have only modified it in that I added a dependency tomakepkg-git-lfs-proto
which you need for makepkg to understand git-lfs protocol.As usual, if you have trouble building remember Blender is a fast moving project. If no comment helps, rewind the Git repository to the version we last advertised as building with the PKGBUILD.