Homebrew version of OCIO not bringing all apps ...

231 views
Skip to first unread message

Abraham Schneider

unread,
Jun 14, 2018, 8:38:33 AM6/14/18
to OpenColorIO Developers
I tried to create the original ACES 1.0.3 config from the included python folder via the 'create_aces_config' tool on my Mac. To do that, I installed all necessary tools via 'homebrew' (like 'ctl') and especially OCIO like it's mentioned on the website: 'brew install opencolorio --with-python'

Unfortunately the 'create_aces_config' script won't run successfully because it can't find the tool 'ociolutimage'. Would be cool if the homebrew version of OCIO would install all the tools that are available in 'https://github.com/imageworks/OpenColorIO/tree/master/src/apps', so it would be easy to create the ACES reference config easily on your own. 

Michael Dolan

unread,
Jun 28, 2018, 1:27:49 AM6/28/18
to ocio...@googlegroups.com
To build "ociolutimage", OCIO needs to be linked against OpenImageIO. These two packages have optional dependencies on each other, so build order can be troublesome if you need both packages with full functionality.

I typically build OCIO without the OIIO dependency; then build OIIO, linking against OCIO; then build OCIO again, linking against OIIO. The homebrew OIIO formulae depends on OCIO, so that may be contributing to this support being missing.

On Thu, Jun 14, 2018, 5:38 AM Abraham Schneider, <abraham....@gmx.de> wrote:
I tried to create the original ACES 1.0.3 config from the included python folder via the 'create_aces_config' tool on my Mac. To do that, I installed all necessary tools via 'homebrew' (like 'ctl') and especially OCIO like it's mentioned on the website: 'brew install opencolorio --with-python'

Unfortunately the 'create_aces_config' script won't run successfully because it can't find the tool 'ociolutimage'. Would be cool if the homebrew version of OCIO would install all the tools that are available in 'https://github.com/imageworks/OpenColorIO/tree/master/src/apps', so it would be easy to create the ACES reference config easily on your own. 

--
You received this message because you are subscribed to the Google Groups "OpenColorIO Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocio-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Larry Gritz

unread,
Jun 28, 2018, 2:10:02 AM6/28/18
to ocio...@googlegroups.com
We should find a way to fix this cyclic dependency once and for all.

-- lg


On Jun 27, 2018, at 10:16 PM, Michael Dolan <mich...@gmail.com> wrote:

To build "ociolutimage", OCIO needs to be linked against OpenImageIO. These two packages have optional dependencies on each other, so build order can be troublesome if you need both packages with full functionality.

I typically build OCIO without the OIIO dependency; then build OIIO, linking against OCIO; then build OCIO again, linking against OIIO. The homebrew OIIO formulae depends on OCIO, so that may be contributing to this support being missing.

On Thu, Jun 14, 2018, 5:38 AM Abraham Schneider, <abraham....@gmx.de> wrote:
I tried to create the original ACES 1.0.3 config from the included python folder via the 'create_aces_config' tool on my Mac. To do that, I installed all necessary tools via 'homebrew' (like 'ctl') and especially OCIO like it's mentioned on the website: 'brew install opencolorio --with-python'

Unfortunately the 'create_aces_config' script won't run successfully because it can't find the tool 'ociolutimage'. Would be cool if the homebrew version of OCIO would install all the tools that are available in 'https://github.com/imageworks/OpenColorIO/tree/master/src/apps', so it would be easy to create the ACES reference config easily on your own. 

--
Larry Gritz




Haarm-Pieter Duiker

unread,
Jun 28, 2018, 7:34:38 AM6/28/18
to ocio...@googlegroups.com
That’s the correct approach. The build steps from the readme are copied below. 

HP

Building on Mac OSX

Use the following commands to build these packages on Mac OSX

  • OpenColorIO
    • brew install -vd opencolorio --with-python
  • Update the homebrew repository of install scripts to make sure that OpenImageIO is included.
    • brew tap homebrew/science
  • Optional Dependencies for OpenImageIO
    • brew install -vd libRaw
    • brew install -vd OpenCV
  • OpenImageIO
    • brew install -vd openimageio --with-python
  • CTL
    • brew install -vd CTL
  • OpenColorIO, a second time. ociolutimage will build with openimageio installed.
    • brew uninstall -vd opencolorio
    • brew install -vd opencolorio --with-python

Deke Kincaid

unread,
Jun 29, 2018, 12:25:53 AM6/29/18
to ocio...@googlegroups.com
fyi homebrew/science has been deprecated.  Luckily they migrated oiio/ocio into homebrew/core (default repo).

bsloan

unread,
Jul 3, 2018, 5:06:32 PM7/3/18
to OpenColorIO Developers
Re. the cyclic (two-way?) dependency between openimageio and opencolorio:

Would it be unreasonable to suggest moving the executables that depend on openimageio out of opencolorio and into openimageio?

Is it just ocioconvert and ociolutimage?

Are there downsides?

-blake

Larry Gritz

unread,
Jul 3, 2018, 5:42:01 PM7/3/18
to ocio...@googlegroups.com
I think ocioconvert can disappear completely from OCIO -- its functionality (and 1000x more) has been in OIIO for quite some time now. It's purely an artifact of a long-ago era when OIIO did not have OCIO functionality and Jeremy wanted to demo how you'd use OCIO and OIIO together. But nowadays that's not how you'd do it at all.

So it's really only an issue of ociolutimage.

Three approaches have been suggested:

1. As you said, move ociolutimage functionality into some part of OIIO (perhaps just as an oiiotool command) and remove it from OCIO.

2. If we are satisfied with ociolutimage ONLY working with exr files, we can use "tinyexr", which is an open source header-only exr reader/writer that we can embed in OCIO, thus removing the need for OIIO here (but limiting to one file type).

3. Rewrite ociolutimage in Python (using the OIIO python bindings) -- this still makes *execution* of ociolutimage dependent on having OIIO installed at runtime, but it no longer has an onerous build-time dependency. The natural build order, then, will be OCIO first, then OIIO second, with no circularity or repeated builds.

-- lg


--
You received this message because you are subscribed to the Google Groups "OpenColorIO Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocio-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Larry Gritz




Liam

unread,
Jul 3, 2018, 7:53:32 PM7/3/18
to OpenColorIO Developers
Hi, I've been working building the the OpenEXR/Alembic/OIIO/OCIO/USD stack for Windows and it would be great to resolve the cyclic dependency. Let me know if I can help.

I like choice #1 and if for some reason no major action is done, can the cyclic dependency be documented somewhere?

Thx! Liam

Larry Gritz

unread,
Jul 3, 2018, 8:01:35 PM7/3/18
to ocio...@googlegroups.com
The question for #1 ("move" ociolutimage functionality to oiio) is: Are there people/products using OCIO, who need this bit of functionality, but don't need any other part of OIIO, and therefore it would be a burden on them to have to install another large package (with many dependencies of its own)?

The question for #2 is: can the users of ociolutimage live with the restriction of ociolutimage working only with OpenEXR files?

#3 was my attempt at a compromise -- no restriction on file types for ociolutimage, no need for OIIO at all for people who don't need ociolutimage, and for those who do, at least the oiio dependency is only run time, not build time.

Liam

unread,
Jul 3, 2018, 11:55:11 PM7/3/18
to OpenColorIO Developers
Hi, thank you for allowing my previous post.

Making ociolutimage dependent on OIIO should be ok because the dependency is needed and the change is to resolve a cyclic dependency.

#3 seems good also and how long would it take to rewrite ociolutimage in Python? Who could do this? Would it support Python 2/3?

Deke Kincaid

unread,
Jul 4, 2018, 1:12:44 AM7/4/18
to ocio...@googlegroups.com
I’ve worked on some games in the past where the lut written out is a tiff and not just an exr.  

So I vote for #1.

Peter Hillman

unread,
Jul 4, 2018, 1:38:17 AM7/4/18
to ocio...@googlegroups.com
+1 for #1
It would be nice for OCIO to provide optionally built drop-in replacements for ocioconvert, ociolutimage etc as lightweight wrappers around oiiotool which map the command line arguments. Again, there'd be a runtime-only dependency on OIIO but it would prevent pipeline nightmares that happen when tools disappear between versions.


From: Deke Kincaid <dekek...@gmail.com>
Sent: Wednesday, July 4, 2018 5:12 PM
To: ocio...@googlegroups.com
Subject: Re: [ocio-dev] Homebrew version of OCIO not bringing all apps ...

jordi...@framestore.com

unread,
Jul 8, 2018, 2:25:04 PM7/8/18
to OpenColorIO Developers
Agreed, at the moment I have a couple of dependencies with the ocioconvert executable and the current situation is quite disruptive.

+1

jb

jordi...@framestore.com

unread,
Jul 8, 2018, 2:25:04 PM7/8/18
to OpenColorIO Developers
Plus now that I am trying to re-install so I can get ocioconvert I find myself with a build problem... attached.



On Wednesday, 4 July 2018 06:38:17 UTC+1, Peter wrote:
error.png
Reply all
Reply to author
Forward
0 new messages