Package Details: blender-git 4.2.r133162.g447bb9a4b9c-1

Git Clone URL: https://aur.archlinux.org/blender-git.git (read-only, click to copy)
Package Base: blender-git
Description: A fully integrated 3D graphics creation suite (development)
Upstream URL: https://blender.org/
Licenses: GPL
Conflicts: blender, blender-4.1-bin
Provides: blender
Submitter: stativ
Maintainer: fbrennan (bartus)
Last Packager: bartus
Votes: 76
Popularity: 0.010800
First Submitted: 2013-12-05 10:11 (UTC)
Last Updated: 2024-02-20 14:49 (UTC)

Required by (61)

Sources (8)

Latest Comments

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

microcoder commented on 2023-09-26 17:32 (UTC)

@Sinasta

For fix the error:

/opt/blender-git/bin/blender: error while loading shared libraries: libIex-3_1.so.30: cannot open shared object file: No such file or directory
CMake Error at source/creator/cmake_install.cmake:2131 (file):
  file INSTALL cannot find
  "/home/dv/projects/bash/arch-pkgbuilds/blender-git/src/build/source/creator/blender.1":
  No such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:51 (include)


make: *** [Makefile:130: install] Error 1
==> ERROR: A failure occurred in package().
    Aborting...

You need to do:

1) Delete src folder from build project

2) Create a new empty file in build project directory and rename its to 0006-man_page_python.patch

3) Past next content to the file 0006-man_page_python.patch and save its:

--- a/doc/manpage/blender.1.py      2023-09-26 13:23:05.545659626 +0300
+++ b/doc/manpage/blender.1.py      2023-09-26 13:21:07.944629752 +0300
@@ -41,7 +41,7 @@
         # Happens when built without WITH_BUILD_INFO e.g.
         blender_date = time.strftime("%B %d, %Y", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
     else:
-        blender_date = time.strftime("%B %d, %Y", time.strptime(blender_build_date_text, "%Y-%m-%d"))
+        blender_date = time.strftime("%B %d, %Y", time.strptime(blender_build_date_text.decode(), "%Y-%m-%d"))

     return {
         "help": blender_help_text,

4) Create a new empty file in build project directory and rename its to 0007-blender_bin.patch

5) Past next content to the file 0007-blender_bin.patch and save its:

--- a/source/creator/CMakeLists.txt     2023-09-26 19:14:31.436641085 +0300
+++ b/source/creator/CMakeLists.txt     2023-09-26 19:15:17.776992288 +0300
@@ -1784,7 +1784,7 @@
       # Blender's requirement of libraries mean the installation path must be used.
       install(
         CODE "\
-set(BLENDER_BIN \"${CMAKE_INSTALL_PREFIX}/${BLENDER_BIN}\")\n\
+set(BLENDER_BIN \"${CMAKE_BINARY_DIR}/bin/${BLENDER_BIN}\")\n\
 set(MANPAGE_GEN \"${CMAKE_SOURCE_DIR}/doc/manpage/blender.1.py\")\n\
 set(MANPAGE_OUT \"${CMAKE_CURRENT_BINARY_DIR}/blender.1\")\n\
 if(\n\

6) Open your PKGBUILD and insert next strings as new lines to the section source=(), do not remove any lines from the section!! Only append lines to end of the section!!! Then save its:

source=(
   ...
   '0006-man_page_python.patch'  # fix python decode byte to string
   '0007-blender_bin.patch'      # fix BLENDER_BIN
)

After that you can try running compile and install your Blender package.

microcoder commented on 2023-09-26 09:51 (UTC) (edited on 2023-09-26 09:56 (UTC) by microcoder)

@Sinasta Need to look here:

grep -R 'blender.1' 2> /dev/null


build/source/creator/cmake_install.cmake:set(MANPAGE_GEN "/home/dv/projects/bash/arch-pkgbuilds/blender-git/src/blender/doc/manpage/blender.1.py")
build/source/creator/cmake_install.cmake:set(MANPAGE_OUT "/home/dv/projects/bash/arch-pkgbuilds/blender-git/src/build/source/creator/blender.1")

The file .../blender.1.py generating .../src/build/source/creator/blender.1. Its need to look

Sinasta commented on 2023-09-26 09:27 (UTC)

It's the missing man pages that fail to get generated. I don't know how to fix the generation but a very dirty workaround is to create an empty blender.1 file in the blender-git/src/build/source/creator/ directory during the build process.

microcoder commented on 2023-09-12 05:54 (UTC)

How it fix?

/opt/blender-git/bin/blender: error while loading shared libraries: libIex-3_1.so.30: cannot open shared object file: No such file or directory
CMake Error at source/creator/cmake_install.cmake:2131 (file):
  file INSTALL cannot find
  "/home/dv/projects/bash/arch-pkgbuilds/blender-git/src/build/source/creator/blender.1":
  No such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:51 (include)


make: *** [Makefile:130: install] Error 1
==> ERROR: A failure occurred in package().
    Aborting...

xiota commented on 2023-08-24 20:34 (UTC)

Since this is a -git package, please change the url to https://github.com/blender/blender? That would make getting to the git project from this page easier. Thank you.

microcoder commented on 2023-08-21 07:11 (UTC) (edited on 2023-08-21 07:17 (UTC) by microcoder)

For fix EMBREE patch replace your 0002-embree.patch file to next content (47 lines)

diff --git a/build_files/cmake/Modules/FindEmbree.cmake b/build_files/cmake/Modules/FindEmbree.cmake
index bb65a24c4b5..5d1ba7b459a 100644
--- a/build_files/cmake/Modules/FindEmbree.cmake
+++ b/build_files/cmake/Modules/FindEmbree.cmake
@@ -97,9 +97,9 @@
 set(_embree_LIBRARIES)
 foreach(COMPONENT ${_embree_FIND_COMPONENTS})
   string(TOUPPER ${COMPONENT} UPPERCOMPONENT)
-  find_library(EMBREE_${UPPERCOMPONENT}_LIBRARY
+  find_library(EMBREE_LIBRARY
     NAMES
-      ${COMPONENT}
+      embree4
     HINTS
       ${_embree_SEARCH_DIRS}
     PATH_SUFFIXES
@@ -112,10 +112,10 @@
 # all listed variables are TRUE
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(Embree DEFAULT_MSG
-    _embree_LIBRARIES EMBREE_INCLUDE_DIR)
+    EMBREE_LIBRARY EMBREE_INCLUDE_DIR)

 if(EMBREE_FOUND)
-  set(EMBREE_LIBRARIES ${_embree_LIBRARIES})
+  set(EMBREE_LIBRARIES ${EMBREE_LIBRARY})
   set(EMBREE_INCLUDE_DIRS ${EMBREE_INCLUDE_DIR})
 endif()

diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt
index 2316800e21e..591841152e2 100644
--- a/intern/cycles/blender/CMakeLists.txt
+++ b/intern/cycles/blender/CMakeLists.txt
@@ -67,6 +67,12 @@ if(WITH_CYCLES_LOGGING)
   )
 endif()

+if(WITH_CYCLES_EMBREE)
+  list(APPEND LIB
+    ${EMBREE_LIBRARIES}
+  )
+endif()
+
 set(ADDON_FILES
   addon/__init__.py
   addon/camera.py

longboarder241 commented on 2023-08-21 01:04 (UTC)

The embree patch has been broken for two months straight. Is everything okay?

sausix commented on 2023-08-13 10:24 (UTC)

Embree or the patch is broken

==> Starting prepare()...
Checking patch build_files/utils/make_update.py...
Hunk #1 succeeded at 327 (offset 2 lines).
Applied patch build_files/utils/make_update.py cleanly.
Checking patch build_files/cmake/Modules/FindEmbree.cmake...
error: while searching for:
#  EMBREE_ROOT_DIR, The base directory to search for Embree.
#                        This can also be an environment variable.
#  EMBREEFOUND, If false, do not try to use Embree.

# If EMBREE_ROOT_DIR was defined in the environment, use it.
IF(NOT EMBREE_ROOT_DIR AND NOT $ENV{EMBREE_ROOT_DIR} STREQUAL "")

error: patch failed: build_files/cmake/Modules/FindEmbree.cmake:10
error: build_files/cmake/Modules/FindEmbree.cmake: patch does not apply
Checking patch intern/cycles/blender/CMakeLists.txt...
Hunk #1 succeeded at 83 (offset 16 lines).
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: blender-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
blender-git - exit status 4