build draco lib when building blender as a python module #125556
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#125556
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "BuildXYZ/blender:build-draco-for-python-module"
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?
Problem:
Building Blender as a Python module does not support Draco compression when exporting using gltf. This is important for my application but has also been brought up on forums and as issue 113469
Solution:
Blender cmake files will need to be updated to lift restrictions on building the external Draco library when also setting
WITH_PYTHON_MODULE=ON
. Changes made should not impact other targets andinstall
has been updated for all platforms.With these changes it is now it is possible to do:
The result after
make install
is thatlibextern_draco.dylib
will now be present in[build_dir]/bin/bpy/lib
glTF-Blender-IO will need to perform an additional search for Draco library in the usual Python module location. Note users can set
BLENDER_EXTERN_DRACO_LIBRARY_PATH
but this additional search streamlines the usage of Draco compression when using Python as a module. The proposed search uses an extension wildcard so it should word cross-platorm. PR for glTF-Blender-IO submitted here: https://github.com/KhronosGroup/glTF-Blender-IO/pull/2300Test confirming Draco compression is enable if
libextern_draco.dylib
is present in[bpy_dir]/lib
:Hello @LazyDodo and @ideasman42
This PR add builing Draco for bpy as a module (this is not the case for now in main)
Can you please review it?
@blender-bot package bpy
Unknown platform
bpy
. See documentation for details.@LazyDodo Any news on that?
Seems the buildbot failed.
Is that link to the PR or something is wrong with configuration for package bpy?
No news, i just prodded the linux maintainer to look at the linux failure, and we'll likely need devops for the windows one, but they are unavailable till atleast the 15th, so it could be a bit
@blender-bot package windows
Package build started. Download here when ready.
Resolved the sdlew linking error,
a0f653c002
(see !125556).