Bump OpenImageIO minimum version 1.8 > 2.2.1 for install_deps.sh #82521

Closed
opened 2020-11-09 01:13:47 +01:00 by Garry R. Osgood · 7 comments

System Information
Operating system: Linux-5.9.6-gentoo-bertha-x86_64-Intel-R-_Xeon-R-CPU_E5-2630_v4@_2.20GHz-with-gentoo-2.7 64 Bits
Graphics card: Radeon Pro WX 9100 (VEGA10, DRM 3.39.0, 5.9.6-gentoo-bertha, LLVM 9.0.1) X.Org 4.6 (Core Profile) Mesa 20.1.10

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-08 15:12, hash: 39012146e1
Worked: 2.92.0 91d320edc3

Short description of error
Building blender 39012146e1 here gave rise to this compilation error:

/home/gosgood/git_repositories/blender/intern/cycles/blender/blender_shader.cpp:122:23: error: ‘concat’ is not a member of ‘OpenImageIO_v1_8::ustring’
  122 |       return ustring::concat(object_attr_prefix, name);
      |                       ^~~~~~
/home/gosgood/git_repositories/blender/intern/cycles/blender/blender_shader.cpp:124:23: error: ‘concat’ is not a member of ‘OpenImageIO_v1_8::ustring’
  124 |       return ustring::concat(instancer_attr_prefix, name);
      |                       ^~~~~~
make[3]: *** [intern/cycles/blender/CMakeFiles/bf_intern_cycles.dir/build.make:255: intern/cycles/blender/CMakeFiles/bf_intern_cycles.dir/blender_shader.cpp.o] Error 1
...

The code giving rise to this error stems from a 03-November-2020 commit: 6fdcca8de6.

It relies on OpenImageIO capabilities introduced with [Add concat function to ustring and Strutil #2478 ]] which are not present in version 1.8.17 installed on this system at the time of the failed build. Per [ https:*github.com/OpenImageIO/oiio/releases/tag/Release-2.2.6.1|OpenImageIO 2.2.6.1 , this pull request was included in OpenImageIO 2.2.1. Upgrading to OpenImageIO-2.2.8.0 gave rise to a clean blender build.

Currently, ##install_deps.sh## reports a minimum acceptable version OpenImageIO version of 1.8.

OIIO_VERSION="2.1.15.0"
OIIO_VERSION_SHORT="2.1"
OIIO_VERSION_MIN="1.8"
OIIO_VERSION_MAX="3.0"
OIIO_FORCE_BUILD=false
OIIO_FORCE_REBUILD=false
OIIO_SKIP=false

gosgood@bertha ~/git_repositories/blender/build_files/build_environment $ ./install_deps.sh --show-deps
...
    * OpenImageIO 1.8 (from https://github.com/OpenImageIO/oiio/archive/Release-2.1.15.0.tar.gz).
...

It seems, in light of this recent commit, the minimum OpenImageIO version should be 2.2.1.

Exact steps for others to reproduce the error

  • Generally, configure the ##CMake## build environment to use installed system libraries in lieu of blender-provided bundled libraries.
  • Use ##install_deps.sh --show-deps## to ensure installed system libraries are at or above the minimum versions.
  • Compile Blender with OpenImageIO-1.8.x, purported to be minimum version.
**System Information** Operating system: Linux-5.9.6-gentoo-bertha-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_v4_@_2.20GHz-with-gentoo-2.7 64 Bits Graphics card: Radeon Pro WX 9100 (VEGA10, DRM 3.39.0, 5.9.6-gentoo-bertha, LLVM 9.0.1) X.Org 4.6 (Core Profile) Mesa 20.1.10 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-08 15:12, hash: `39012146e1` Worked: 2.92.0 91d320edc3 **Short description of error** Building blender 39012146e1 here gave rise to this compilation error: ``` /home/gosgood/git_repositories/blender/intern/cycles/blender/blender_shader.cpp:122:23: error: ‘concat’ is not a member of ‘OpenImageIO_v1_8::ustring’ 122 | return ustring::concat(object_attr_prefix, name); | ^~~~~~ /home/gosgood/git_repositories/blender/intern/cycles/blender/blender_shader.cpp:124:23: error: ‘concat’ is not a member of ‘OpenImageIO_v1_8::ustring’ 124 | return ustring::concat(instancer_attr_prefix, name); | ^~~~~~ make[3]: *** [intern/cycles/blender/CMakeFiles/bf_intern_cycles.dir/build.make:255: intern/cycles/blender/CMakeFiles/bf_intern_cycles.dir/blender_shader.cpp.o] Error 1 ... ``` The code giving rise to this error stems from a 03-November-2020 commit: 6fdcca8de6. It relies on OpenImageIO capabilities introduced with [Add concat function to ustring and Strutil #2478 ]] which are not present in version 1.8.17 installed on this system at the time of the failed build. Per [[ https:*github.com/OpenImageIO/oiio/releases/tag/Release-2.2.6.1|OpenImageIO 2.2.6.1 ](https:*github.com/OpenImageIO/oiio/pull/2478/files), this pull request was included in OpenImageIO 2.2.1. Upgrading to OpenImageIO-2.2.8.0 gave rise to a clean blender build. Currently, ##install_deps.sh## reports a minimum acceptable version OpenImageIO version of 1.8. ``` OIIO_VERSION="2.1.15.0" OIIO_VERSION_SHORT="2.1" OIIO_VERSION_MIN="1.8" OIIO_VERSION_MAX="3.0" OIIO_FORCE_BUILD=false OIIO_FORCE_REBUILD=false OIIO_SKIP=false gosgood@bertha ~/git_repositories/blender/build_files/build_environment $ ./install_deps.sh --show-deps ... * OpenImageIO 1.8 (from https://github.com/OpenImageIO/oiio/archive/Release-2.1.15.0.tar.gz). ... ``` It seems, in light of this recent commit, the minimum OpenImageIO version should be 2.2.1. **Exact steps for others to reproduce the error** - Generally, configure the ##CMake## build environment to use installed system libraries in lieu of blender-provided bundled libraries. - Use ##install_deps.sh --show-deps## to ensure installed system libraries are at or above the minimum versions. - Compile Blender with OpenImageIO-1.8.x, purported to be minimum version.

Added subscriber: @grosgood

Added subscriber: @grosgood
Member

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Looks like a valid claim.

#76184 (Library upgrades for 2.90) mentiones OIIO at version 2.1.15.0 and it looks like the SVN libs are at 2.1.15.0 as well?

I can build with the SVN libs, and it looks like I can build with Fedoras 2.1.18 as well, so not sure what is going on.

Maybe @mont29 knows more?

Looks like a valid claim. #76184 (Library upgrades for 2.90) mentiones OIIO at version 2.1.15.0 and it looks like the SVN libs are at 2.1.15.0 as well? I can build with the SVN libs, and it looks like I can build with Fedoras 2.1.18 as well, so not sure what is going on. Maybe @mont29 knows more?

According to 13518cc403/CHANGES.md (release-2112-2-mar-2020----compared-to-2111) ustring::concat was added in 2.1.12, so I guess that's our minimal version now.

According to https://github.com/OpenImageIO/oiio/blob/13518cc403e17063c8dfe415cd369bbadd2202c8/CHANGES.md#release-2112-2-mar-2020----compared-to-2111 `ustring::concat` was added in `2.1.12`, so I guess that's our minimal version now.

This issue was referenced by 5b5ec0a2e9

This issue was referenced by 5b5ec0a2e910a42d7c02774a47fd9c70b6f16f06

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Bastien Montagne self-assigned this 2020-11-11 15:10:24 +01:00
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
4 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#82521
No description provided.