flathub / org.blender.Blender

https://flathub.org/apps/details/org.blender.Blender
17 stars 26 forks source link

Build from source #119

Closed hfiguiere closed 1 year ago

hfiguiere commented 1 year ago

@bochecha this is on top of your changes.

It currently fail on Blender that want Python 3.10. Disabling Python al together fail much earlier.

flathubbot commented 1 year ago

Started test build 104930

flathubbot commented 1 year ago

Build 104930 failed

hfiguiere commented 1 year ago

The error I get locally is different, but related to Python as well:

[3997/4405] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy.c.o
FAILED: source/blender/python/intern/CMakeFiles/bf_python.dir/bpy.c.o 
/run/ccache/bin/cc -DBUILD_DATE -DNDEBUG -DWITH_ALEMBIC -DWITH_AUDASPACE -DWITH_AVI -DWITH_BULLET -DWITH_CINEON -DWITH_COLLADA -DWITH_COMPOSITOR -DWITH_CYCLES -DWITH_CYCLES_EMBREE -DWITH_DDS -DWITH_FFMPEG -DWITH_FLUID -DWITH_FREESTYLE -DWITH_HDR -DWITH_INTERNATIONAL -DWITH_LIBMV -DWITH_MOD_REMESH -DWITH_OCEANSIM -DWITH_OCIO -DWITH_OPENAL -DWITH_OPENEXR -DWITH_OPENGL -DWITH_OPENIMAGEIO -DWITH_OPENJPEG -DWITH_OPENSUBDIV -DWITH_OPENVDB -DWITH_PUGIXML -DWITH_PULSEAUDIO -DWITH_SDL -DWITH_SNDFILE -DWITH_TIFF -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -I/run/build/blender/source/blender/python -I/run/build/blender/source/blender/blenkernel -I/run/build/blender/source/blender/blenlib -I/run/build/blender/source/blender/blenloader -I/run/build/blender/source/blender/blentranslation -I/run/build/blender/source/blender/depsgraph -I/run/build/blender/source/blender/editors/include -I/run/build/blender/source/blender/gpu -I/run/build/blender/source/blender/imbuf -I/run/build/blender/source/blender/makesdna -I/run/build/blender/source/blender/makesrna -I/run/build/blender/source/blender/windowmanager -I/run/build/blender/intern/clog -I/run/build/blender/intern/guardedalloc -I/run/build/blender/intern/mantaflow/extern -I/run/build/blender/intern/opencolorio -I/run/build/blender/_flatpak_build/source/blender/makesrna -I/run/build/blender/intern/cycles/blender -I/run/build/blender/source/blender/freestyle/intern/python -I/run/build/blender/intern/openvdb -I/run/build/blender/source/blender/io/alembic -I/run/build/blender/source/blender/imbuf/intern/oiio -I/run/build/blender/intern/opensubdiv -isystem /usr/include/python3.9 -isystem /usr/include/SDL2 -Wall -Wcast-align -Werror=implicit-function-declaration -Werror=return-type -Werror=vla -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness -Wrestrict -Wnonnull -Wabsolute-value -Wuninitialized -Wredundant-decls -Wshadow -Wno-error=unused-but-set-variable -Wimplicit-fallthrough=5 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fopenmp -std=gnu11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -msse2 -fmacro-prefix-map="/run/build/blender/"="" -fmacro-prefix-map="/run/build/blender/_flatpak_build/"="" -Wno-maybe-uninitialized -O2 -g -DNDEBUG -MD -MT source/blender/python/intern/CMakeFiles/bf_python.dir/bpy.c.o -MF source/blender/python/intern/CMakeFiles/bf_python.dir/bpy.c.o.d -o source/blender/python/intern/CMakeFiles/bf_python.dir/bpy.c.o -c /run/build/blender/source/blender/python/intern/bpy.c
In file included from /run/build/blender/source/blender/python/intern/bpy.c:33:
/run/build/blender/source/blender/python/intern/bpy_capi_utils.h:10:4: error: #error "Python 3.10 or greater is required, you'll need to update your Python."
   10 | #  error "Python 3.10 or greater is required, you'll need to update your Python."
      |    ^~~~~
[4000/4405] Linking CXX static library lib/libbf_intern_cycles.a
flathubbot commented 1 year ago

Started test build 107557

flathubbot commented 1 year ago

Build 107557 failed

hfiguiere commented 1 year ago

opencolorio needs a patch.

flathubbot commented 1 year ago

Started test build 107606

flathubbot commented 1 year ago

Build 107606 failed

flathubbot commented 1 year ago

Started test build 108548

flathubbot commented 1 year ago

Build 108548 failed

flathubbot commented 1 year ago

Started test build 108549

hfiguiere commented 1 year ago

I get some Python errors on startup. Not sure what's causing them though.

flathubbot commented 1 year ago

Build 108549 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/106204/org.blender.Blender.flatpakref
Zenith222 commented 1 year ago

May I ask what is the point of this change? Blender.org provides trusted binaries which can be verified with a SHA256 or SHA512 hash for security purposes. Building Blender from source on every user's machine is a waste of time and energy for no practical benefit.

hfiguiere commented 1 year ago

Building Blender from source on every user's machine is a waste of time and energy for no practical benefit.

this is not happening either. This is not Gentoo. You misunderstand what flaptak does.

Also the second point is to build for aarch64. Baby steps

Zenith222 commented 1 year ago

I appreciate the clarification.

flathubbot commented 1 year ago

Started test build 112218

flathubbot commented 1 year ago

Build 112218 failed

flathubbot commented 1 year ago

Started test build 112219

flathubbot commented 1 year ago

Build 112219 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/109824/org.blender.Blender.flatpakref
hfiguiere commented 1 year ago

it would be nice to have this build tested by people that use this more than I do. (i don't).

kevinsmia1939 commented 1 year ago

Build 112219 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/109824/org.blender.Blender.flatpakref

Blender does not find my nvidia gpu while the current binary build did. Under Edit>Preference>System>CUDA it say no compatible GPUs found for Cycles. Requires NVIDIA GPU with compute capability 3.0.

Operating System: openSUSE Tumbleweed 20220922 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.5 Kernel Version: 5.19.8-1-default (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 4600H with Radeon Graphics Memory: 7.6 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2 Manufacturer: LENOVO Product Name: 82B5 System Version: Lenovo Legion 5 15ARH05

hfiguiere commented 1 year ago

closing this. nobody seems to be interested.

theofficialgman commented 5 months ago

Hoping this can be reopened and considered. Would be highly appreciated by the arm64 Linux community.

mbridon commented 5 months ago

Hi, I used to be @bochecha but due to reasons I had to create this new @mbridon account, sorry for the confusion.

I used to maintain the flathub Blender build from source, but due to health issues I haven't been able to continue sine 2020, when I got sick. I'm still dealing with the consequences of that disease unfortunately, so I will not be able to come back to building Blender from source.

That means someone will have to be the hero who gets this done again. Maybe you @theofficialgman?

Do note that building Blender from source was a huge beast and routinely took me multiple days of work for each update. I don't see this has improved in the meantime. That is why I'm overall happier with the current solution of using pre-built binaries: at least it gets most users a Blender build in time, even if only for x86_64. :disappointed: