Proposal to amend the default build configuration #42569
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#42569
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Building on Linux has become fairly complicated, with specific dependencies.
In some cases this just means installing the 'right' version of a library (using
install_deps.sh
), but even then, there are complications.Examples:
Ideally we could detect which Libraries will work & find the correct linking flags, but some of the dependencies are just very error prone & we can't easily support many different systems.
To be clear, these will stay supported & included in official releases, its just that anyone who wants to build Blender from source for the first time, would likely not be able to solve these kinds of problems listed above (without a lot of work & even then... some library linking errors can become quite involved).
Proposal
Make some compromise, a better experience for a entry level developer, at the expense of having something which isn't including all features.
make release
configuration (similar to what we have formake lite
now - see: https://developer.blender.org/diffusion/B/browse/master/build_files/cmake/config/blender_lite.cmake)Defaults (proposed defaults to disable, may change)
WITH_OPENCOLLADA
- uses quite a few indirect dependencies & is a large library which isn't always well maintained by each distribution, to use only to support one format.WITH_OPENCOLORIO
- only used for color management.WITH_CYCLES_OSL
(open-shading-language) - uses LLVM which is a huge dependancy.WITH_CODEC_FFMPEG
- also many indirect dependencies, linking flags can be different on each system.WITH_LIBMV_SCHUR_SPECIALIZATION
- not needed for functional libmv.WITH_SDL
- only used for joystick/BGE & audio.WITH_NDOF
- spnav isn't such a common library. quite specialized.WITH_BUILDINFO
- slows down rebuilds, isn't so useful for personal.Others
WITH_GAMEENGINE
- not a very active area of Blender at the moment (takes a while to build)WITH_JACK
- specialized.WITH_IMAGE_OPENEXR
WITH_IMAGE_REDCODE
WITH_IMAGE_PSD
Changed status to: 'Open'
Added subscriber: @ideasman42
Generally agree, with some remarks and ideas:
make
invoked from the sources directory, to minimize possible frustration.ustring
(which is a part of OIIO) used in Cycles might take a bit of effort to solve.Now i'll just throw an idea, could we have something like
make auto
which would scan for dependencies and enable features which dependencies are met? This way, i.e. if FFmpeg dev packages is installed, it'll be enabled in Blender?Added subscriber: @Sergey
@Sergey,
make
from the sources, especially should be changed. for a full release compatible buildmake release
. Existing builds wont change configuration.make auto
, cmake already detects and disables libraries that don't exist in many cases, it could do better auto-detection of course, and in some cases its not as simple as detecting if libs exist or not, (incompatible versions, direct vs indirect linking... etc). So I'd not bother withmake auto
and just improve auto-detection.Well, if the change in behavior of
make
is explicitly mentioned in the ML and so it should be all fine i guess.As for make auto -- well, improvements for auto-detection are also nice :) Just would be nice if i've got, say, OSD installed (well, in the future) it would be used by blender by default. But this things are not something what we'd better keep for further changes.
Added subscriber: @mont29
I do not mind having a minimal feature-set in default build, what bothers me is that it could have the side effect of even fewer devs building often full-featured Blender.
We of course have the recurrent example of the BGE and infamous missing 'stubs', but the lighter Blender you build, the more you risk breaking some 'optional' part without noticing. So even though it can be (really) difficult sometimes, I think new devs should make the effort to build a reasonably complete Blender.
So if we decide to go this way, we should communicate well it’s just a first step, if you want to be a (blender) dev, you need to be able to build most of it.
Added subscriber: @Januz
Would requiring ranges of versions (instead of a specific one) add too much maintenance?
Most package managers let you install a specific version (alongside the latest they have). Maybe there could be a wiki page with some links to docs of several package managers to get people started.
Also, like @mont29 said, maybe print a message at the start or end of building to communicate that it's a light build.
@mont29, if someone want to help hacking into motion tracking that'd be weird to require him to deal with boost and co.
@Januz, i'm not sure how it's gonna to help.
@ideasman42, we should consider disabling WITH_LIBMV_SCHUR_SPECIALIZATIONS by default btw.
@Sergey The fact that these settings are disabled by default doesn't mean users won't enable them at some point and get the same strange library errors. Paste some of those errors in a wiki page, with some likely causes, and some links to package manager docs and you have a nice link to send people to when they ask about these errors in IRC/ML/etc. And they could find it by googling, before they have to ask.
(I assume you meant the wiki idea btw)
Changed status from 'Open' to: 'Resolved'
Committed
bf63e348a2
@Januz, making sure builds work is an on-going effort, what you suggest can help.
Also, I didnt see general docs online about how to resolve linking issues (these aren't blender specific). If they exist could help to link to them... or write our own.