glTF addon: libextern_draco.so is missing #69089

Closed
opened 2019-08-23 15:31:50 +02:00 by Martin Capitanio · 10 comments

Blender Version
Broken: edbf15d3c0 232049dd94
Worked: 2.80 release

blender-2.81-daba3e871ff5-linux-glibc217-x86_64$ blender -v
Blender 2.81 (sub 3)
	build date: 2019-08-21
	build time: 01:08:15
	build commit date: 2019-08-20
	build commit time: 22:35
	build hash: daba3e871ff5
	build platform: Linux
	build type: Release
	build c flags:  -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 -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness -Wuninitialized -Wredundant-decls -Wshadow -Wno-error=unused-but-set-variable  -fuse-ld=gold -std=gnu11   -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2
	build c++ flags:  -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wuninitialized -Wundef -Wmissing-declarations  -fuse-ld=gold -std=c++11   -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2
	build link flags:  -Wl,--version-script='/home/sources/buildbot-x86_64-slave/linux_glibc217_x86_64_cmake/blender.git/source/creator/blender.map'
	build system: CMake

Exact steps for others to reproduce the error
Download image.png

This is printed by using the glTF addon:

blender-2.81-daba3e871ff5-linux-glibc217-x86_64/2.80/python/lib/python3.7/site-packages/libextern_draco.so'
does not exist, draco mesh compression not available

Most likely, the library build was broken after the Python 3.7.4 upgrade 454daf9b6b

**Blender Version** Broken: edbf15d3c0 232049dd94 Worked: 2.80 release ``` blender-2.81-daba3e871ff5-linux-glibc217-x86_64$ blender -v Blender 2.81 (sub 3) build date: 2019-08-21 build time: 01:08:15 build commit date: 2019-08-20 build commit time: 22:35 build hash: daba3e871ff5 build platform: Linux build type: Release build c flags: -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 -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness -Wuninitialized -Wredundant-decls -Wshadow -Wno-error=unused-but-set-variable -fuse-ld=gold -std=gnu11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2 build c++ flags: -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wuninitialized -Wundef -Wmissing-declarations -fuse-ld=gold -std=c++11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2 build link flags: -Wl,--version-script='/home/sources/buildbot-x86_64-slave/linux_glibc217_x86_64_cmake/blender.git/source/creator/blender.map' build system: CMake ``` **Exact steps for others to reproduce the error** Download ![image.png](https://archive.blender.org/developer/F7694032/image.png) This is printed by using the glTF addon: ``` blender-2.81-daba3e871ff5-linux-glibc217-x86_64/2.80/python/lib/python3.7/site-packages/libextern_draco.so' does not exist, draco mesh compression not available ``` Most likely, the library build was broken after the Python 3.7.4 upgrade 454daf9b6b

Added subscriber: @capnm

Added subscriber: @capnm
Julien Duroure self-assigned this 2019-08-23 16:35:02 +02:00

Added subscriber: @brecht

Added subscriber: @brecht

Seems glTF is hardcoding the Blender and Python version, this should be avoided.

Seems glTF is hardcoding the Blender and Python version, this should be avoided.

On a closer look, the Python version is there, but indeed path is hardcoded
2.81/python/lib/python3.7/site-packages/libextern_draco.so

io/exp/gltf2_io_draco_compression_extension.py:29

    lib_name = 'extern_draco'
    blender_root = Path(bpy.app.binary_path).parent
    python_lib = Path('2.80/python/lib')
    paths = {
        'win32': blender_root/python_lib/'site-packages'/'{}.dll'.format(lib_name),
        'linux': blender_root/python_lib/'python3.7'/'site-packages'/'lib{}.so'.format(lib_name),
        'darwin': blender_root.parent/'Resources'/python_lib/'python3.7'/'site-packages'/'lib{}.dylib'.format(lib_name)
    }
On a closer look, the Python version is there, but indeed path is hardcoded **2.81**/python/lib/python3.7/site-packages/libextern_draco.so ``` io/exp/gltf2_io_draco_compression_extension.py:29 lib_name = 'extern_draco' blender_root = Path(bpy.app.binary_path).parent python_lib = Path('2.80/python/lib') paths = { 'win32': blender_root/python_lib/'site-packages'/'{}.dll'.format(lib_name), 'linux': blender_root/python_lib/'python3.7'/'site-packages'/'lib{}.so'.format(lib_name), 'darwin': blender_root.parent/'Resources'/python_lib/'python3.7'/'site-packages'/'lib{}.dylib'.format(lib_name) } ```

This issue was referenced by blender/blender-addons@50394a12df

This issue was referenced by blender/blender-addons@50394a12df3f40c2df0ae1c55e7060e0cb12327f
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @yuranos

Added subscriber: @yuranos

@JulienDuroure , I've built bpy as a module last weekend. It's 2.90 chain. I explained my steps in detail here .
However, I'm still having an issue with libextern_draco.so.
Check my question here .

@JulienDuroure , I've built bpy as a module last weekend. It's 2.90 chain. I explained my steps in detail [here ](https://blender.stackexchange.com/a/178746/95351). However, I'm still having an issue with libextern_draco.so. Check my question [here ](https://blender.stackexchange.com/questions/179260/bpy-libextern-draco-so-does-not-exist).
Member

Added subscribers: @mont29, @ideasman42

Added subscribers: @mont29, @ideasman42
Member

@mont29 @ideasman42

Hello Bastien, Campbell,
Seems the draco library is not included when building bpy as a python module.
Because this is a building issue, not sure if I need to open a new issue or not.

Julien

@mont29 @ideasman42 Hello Bastien, Campbell, Seems the draco library is not included when building bpy as a python module. Because this is a building issue, not sure if I need to open a new issue or not. Julien
Sign in to join this conversation.
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
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#69089
No description provided.