Bug 1987188 - Cannot build against OpenImageIO 2.2.16.0-2
Summary: Cannot build against OpenImageIO 2.2.16.0-2
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: OpenImageIO
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-29 07:39 UTC by Nick Black
Modified: 2021-08-30 11:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-08-25 00:30:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nick Black 2021-07-29 07:39:42 UTC
Description of problem:
Attempting to #include OpenImageIO/imageio.h fails:

In file included from /usr/include/OpenImageIO/fmath.h:40,
                 from /usr/include/OpenImageIO/hash.h:31,
                 from /usr/include/OpenImageIO/strutil.h:24,
                 from /usr/include/OpenImageIO/typedesc.h:29,
                 from /usr/include/OpenImageIO/attrdelegate.h:13,
                 from /usr/include/OpenImageIO/paramlist.h:17,
                 from /usr/include/OpenImageIO/imageio.h:34,
                 from /home/dank/notcurses/src/media/oiio.cpp:5:
/usr/include/OpenImageIO/Imath.h:21:13: fatal error: OpenEXR/ImathColor.h: No such file or directory
   21 | #   include <OpenEXR/ImathColor.h>
      |             ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

The file is in Imath/, not OpenEXR/. It looks like Imath.h might be at fault:

#if OIIO_USING_IMATH >= 3
#   include <Imath/ImathColor.h>
#   include <Imath/ImathMatrix.h>
#   include <Imath/ImathVec.h>
#   include <Imath/half.h>
#else
#   include <OpenEXR/ImathColor.h>
#   include <OpenEXR/ImathMatrix.h>
#   include <OpenEXR/ImathVec.h>
#   include <OpenEXR/half.h>
#endif

Rawhide is shipping OpenEXR 3, but we're using 2 according to this file.

Version-Release number of selected component (if applicable):

2.2.16.0-2.fc35

How reproducible:

Just install OpenEXR 3.

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Richard Shaw 2021-07-29 13:00:38 UTC
Unfortunately this was just very bad timing. I had started work on upgrading Rawhide to OpenEXR 3 and had already made a few commits when I had to halt for the f35 mass rebuild. I will clean up the mess but I'm on a family vacation for the week. My internet access is currently limited to my cell phone.

Comment 2 Richard Shaw 2021-07-31 15:46:47 UTC
Managed an OK mobile internet connection to my home desktop and beat Field3D into shape which is what was preventing me from building OpenImageIO with OpenEXR 3.

It should be fixed when this build makes it into Rawhide:

https://koji.fedoraproject.org/koji/taskinfo?taskID=73030607

Comment 3 Ben Cotton 2021-08-10 13:41:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 4 Nick Black 2021-08-30 11:10:58 UTC
thanks richard! i can indeed once more build against OIIO in rawhide.

question: in epel8, i'd like to build against OIIO, but i need c++17 and OpenEXR3 appears to have problems with c++17. i can kick off a fresh build if you'd like. have you seen this before, and do you have any suggestions?


Note You need to log in before you can comment on or make changes to this bug.