Package Details: upbge-git 102995.5b3c332b398-1

Git Clone URL: https://aur.archlinux.org/upbge-git.git (read-only, click to copy)
Package Base: upbge-git
Description: Uchronia Project Blender Game Engine fork of Blender Game Engine
Upstream URL: https://upbge.org/
Licenses: GPL
Conflicts: blender
Provides: blender
Submitter: None
Maintainer: mysticfall
Last Packager: mysticfall
Votes: 1
Popularity: 0.000001
First Submitted: 2018-11-02 13:46
Last Updated: 2020-08-29 22:35

Dependencies (28)

Required by (50)

Sources (8)

Latest Comments

mysticfall commented on 2020-07-18 09:31

It looks like the build is failing again with the Embree patch. I'll try to fix it soon.

EDIT: Now it's done :)

mysticfall commented on 2020-06-28 07:21

Just updated it to make it compatible with the current master branch of UPBGE. Please let me know if it doesn't work.

hugegameartgd commented on 2020-03-07 10:49

Please update the PKGBUILD to make it similar to blender-2.8-git and fix python version.

diff --git a/PKGBUILD b/PKGBUILD
index 9cf40cf..a882ae5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
 pkgname=upbge-git
-pkgver=72419.51e8bf4798
+pkgver=96914.c4dba7cd529
 pkgrel=1
 pkgdesc="Uchronia Project Blender Game Engine fork of Blender Game Engine"
 arch=('i686' 'x86_64')
@@ -23,8 +23,11 @@ source=('git://github.com/UPBGE/blender.git' \
    'blender-addons-contrib.git::git://git.blender.org/blender-addons-contrib.git' \
    'blender-translations.git::git://git.blender.org/blender-translations.git' \
    'blender-dev-tools.git::git://git.blender.org/blender-dev-tools.git' \
+   SelectCudaComputeArch.patch
+        usd_python.patch #add missing python headers when building against python enabled usd.
+        embree.patch #add missing embree link.
    upbge.desktop)
-md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' '47e5bbe93fc221066882947211ff7812')
+md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' '47e5bbe93fc221066882947211ff7812')

 # determine whether we can precompile CUDA kernels
 _CUDA_PKG=`pacman -Qq cuda 2>/dev/null` || true
@@ -41,13 +44,20 @@ pkgver() {
 prepare() {
    cd "$srcdir/blender"
    # update the submodules
-   git submodule update --init --recursive
+   #git submodule update --init --recursive
    git submodule foreach git checkout master
    git submodule foreach git pull --rebase origin master
+     if [ -v _cuda_capability ] && grep -q nvidia <(lsmod); then
+     git -C "$srcdir/blender" apply -v "${srcdir}"/SelectCudaComputeArch.patch
+    fi
+     ((DISABLE_USD)) || git -C "$srcdir/blender" apply -v "${srcdir}"/usd_python.patch
+     ((DISABLE_EMBREE)) || git -C "$srcdir/blender" apply -v "${srcdir}"/embree.patch
 }

 build() {
    mkdir -p "$srcdir/blender-build"
+     _pyver=$(python -c "from sys import version_info; print(\"%d.%d\" % (version_info[0],version_info[1]))")
+      msg "python version detected: ${_pyver}"
    cd "$srcdir/blender-build"

    cmake "$srcdir/blender" \
@@ -60,7 +70,7 @@ build() {
        -DWITH_SYSTEM_GLEW=ON \
        -DWITH_CODEC_FFMPEG=ON \
        -DWITH_PYTHON_INSTALL=OFF \
-       -DPYTHON_VERSION=3.7m \
+           -DPYTHON_VERSION="${_pyver}" \
        -DWITH_MOD_OCEANSIM=ON \
        $_EXTRAOPTS
    make
@@ -74,6 +84,6 @@ package() {

    if [ -e "$pkgdir"/usr/share/blender/*/scripts/addons/cycles/lib/ ] ; then
        # make sure the cuda kernels are not stripped
-       chmod 444 "$pkgdir"/usr/share/blender/*/scripts/addons/cycles/lib/*
+       chmod -R 444 "$pkgdir/usr/share/blender/${_suffix}/scripts/addons/cycles/lib/"
    fi
 }

Still get an error, see this output using modified PKGBUILD:

[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / object_deform.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / object_dupli.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / object_facemap.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / object_update.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / ocean.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / outliner_treehash.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / packedFile.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / paint.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / paint_toolslots.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / particle.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / particle_child.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / particle_distribute.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / particle_system.c.o
/run/media/user/compile/yay/upbge-git/src/blender/source/blender/blenkernel/intern/particle_system.c: In function »particle_system_update«:
/run/media/user/compile/yay/upbge-git/src/blender/source/blender/blenkernel/intern/particle_system.c:4266:7: Warning: "totpart" could be used uninitialized in this function [-Wmaybe -uninitialized]
 4266 | for (p = 0, pa = psys-> particles; p <totpart; p ++) {
      | ^ ~~
/run/media/user/compile/yay/upbge-git/src/blender/source/blender/blenkernel/intern/particle_system.c:4192:14: Note: »totpart« was declared here
 4192 | int p, deadpart, tottypepart = 0;
      | ^ ~~~~~~
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / pbvh.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / pbvh_bmesh.c.o
[42%] Building CXX object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / pbvh_parallel.cc.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / pointcache.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / property.c.o
[42%] Building C object source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / python_component.c.o
/run/media/user/compile/yay/upbge-git/src/blender/source/blender/blenkernel/intern/python_component.c:59:5: Warning: Initializing a "long int" from "void *" converts you Pointer to a number without explicit type conversion [-Wint-conversion]
   59 | NULL, / * tp_print * /
      | ^ ~~~
/run/media/user/compile/yay/upbge-git/src/blender/source/blender/blenkernel/intern/python_component.c:59:5: Note: (near the initialization for »PythonComponentType.tp_vectorcall_offset«)
/run/media/user/compile/yay/upbge-git/src/blender/source/blender/blenkernel/intern/python_component.c: In function »load_component«:
/run/media/user/compile/yay/upbge-git/src/blender/source/blender/blenkernel/intern/python_component.c:427:44: Error: Dereferencing a pointer to incomplete types "PyInterpreterState" {alias »struct _is «}
  427 | sys_modules = PyThreadState_GET () -> interp-> modules;
      | ^ ~
make [2]: *** [source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / build.make: 1766: source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / intern / python_component.c.o] Error 1
make [2]: The directory "/ run / media / user / compile / yay / upbge-git / src / blender-build" is left
make [1]: *** [CMakeFiles / Makefile2: 6250: source / blender / blenkernel / CMakeFiles / bf_blenkernel.dir / all] error 2
make [1]: The directory "/ run / media / user / compile / yay / upbge-git / src / blender-build" is left
make: *** [Makefile: 163: all] error 2
==> ERROR: An error happened in build ().
    Cancel ...
[user @ archlinux upbge-git] $