Date
1 - 6 of 6
Question about Imath headers
joey.skeys@...
Hi guys,
After switch to OpenEXR 3, my project build break due to the OpenEXR/ImathPlatform.h no longer exists.
I built OpenEXR as a rez package and with the internal Imath option turned on.
The result is now the ImathPlatform.h lives in Imath folder. And it's causing the problem.
Is the directory change of the header file a update from OpenEXR or I just didn't build it correctly?
My OSL version is 1.12.7.1 and OpenEXR version 3.1.5, all built with gcc 12.2.0.
Thanks for your attension.
After switch to OpenEXR 3, my project build break due to the OpenEXR/ImathPlatform.h no longer exists.
I built OpenEXR as a rez package and with the internal Imath option turned on.
The result is now the ImathPlatform.h lives in Imath folder. And it's causing the problem.
Is the directory change of the header file a update from OpenEXR or I just didn't build it correctly?
My OSL version is 1.12.7.1 and OpenEXR version 3.1.5, all built with gcc 12.2.0.
Thanks for your attension.
Larry Gritz
I suspect that what's happening is that you actually have TWO copies of either openexr or imath or both on your system -- one the new 3.x you are trying to build, and also another 2.x probably installed elsewhere on your system. And so when you are building other software, you are including an inconsistent mix of header files from them.
On Dec 20, 2022, at 10:36 PM, joey.skeys@... wrote:Hi guys,
After switch to OpenEXR 3, my project build break due to the OpenEXR/ImathPlatform.h no longer exists.
I built OpenEXR as a rez package and with the internal Imath option turned on.
The result is now the ImathPlatform.h lives in Imath folder. And it's causing the problem.
Is the directory change of the header file a update from OpenEXR or I just didn't build it correctly?
My OSL version is 1.12.7.1 and OpenEXR version 3.1.5, all built with gcc 12.2.0.
Thanks for your attension.
Olivier Paquet
OpenEXR 3 has source breaking changes. See https://github.com/AcademySoftwareFoundation/Imath/blob/main/docs/PortingGuide2-3.md
For our own build, I ended up kludging together something which looks like v2 but is actually v3 by copying some libs and includes to their old names / location. It's not pretty but it gets the job done until all the other projects become v3 compatible. We're not on the latest OSL so I have no idea if it's supposed to build cleanly or not with v3.
Olivier
toggle quoted message
Show quoted text
For our own build, I ended up kludging together something which looks like v2 but is actually v3 by copying some libs and includes to their old names / location. It's not pretty but it gets the job done until all the other projects become v3 compatible. We're not on the latest OSL so I have no idea if it's supposed to build cleanly or not with v3.
Olivier
On 2022-12-21 01 h 36, joey.skeys@... wrote:
Hi guys,
After switch to OpenEXR 3, my project build break due to the OpenEXR/ImathPlatform.h no longer exists.
I built OpenEXR as a rez package and with the internal Imath option turned on.
The result is now the ImathPlatform.h lives in Imath folder. And it's causing the problem.
Is the directory change of the header file a update from OpenEXR or I just didn't build it correctly?
My OSL version is 1.12.7.1 and OpenEXR version 3.1.5, all built with gcc 12.2.0.
Thanks for your attension.
Larry Gritz
Yes, works fine with either.
toggle quoted message
Show quoted text
On December 21, 2022 5:49:10 a.m. PST, Olivier Paquet <olivier@...> wrote:
OpenEXR 3 has source breaking changes. See https://github.com/AcademySoftwareFoundation/Imath/blob/main/docs/PortingGuide2-3.md
For our own build, I ended up kludging together something which looks like v2 but is actually v3 by copying some libs and includes to their old names / location. It's not pretty but it gets the job done until all the other projects become v3 compatible. We're not on the latest OSL so I have no idea if it's supposed to build cleanly or not with v3.
Olivier
On 2022-12-21 01 h 36, joey.skeys@... wrote:Hi guys,
After switch to OpenEXR 3, my project build break due to the OpenEXR/ImathPlatform.h no longer exists.
I built OpenEXR as a rez package and with the internal Imath option turned on.
The result is now the ImathPlatform.h lives in Imath folder. And it's causing the problem.
Is the directory change of the header file a update from OpenEXR or I just didn't build it correctly?
My OSL version is 1.12.7.1 and OpenEXR version 3.1.5, all built with gcc 12.2.0.
Thanks for your attension.
Links: You receive all messages sent to this group.
View/Reply Online (#5069): https://lists.aswf.io/g/osl-dev/message/5069
Mute This Topic: https://lists.aswf.io/mt/95802275/1285234
Group Owner: osl-dev+owner@...
Unsubscribe: https://lists.aswf.io/g/osl-dev/unsub [lg@...]
--
Larry Gritz
lg@...
Larry Gritz
lg@...
Larry Gritz
Joey, I'm still a little confused about some of the ambiguities in your description. Which project do you mean by "my project?" What is the specific #include (and in which file) that fails? That is, which file is it that is asking for OpenEXR/ImathPlatform.h that no longer exists? Can you reduce the failure to one short C++ file that just does some #includes and encounters an error?
As one of the maintainers of OpenEXR as well (and in fact the author of the "porting guide," which is more or less a transcription of the steps I took to make OSL able to build equally well with either OpenEXR/Imath 2.x or 3.x), I am very interested in whether we made a mistake somewhere and there is still some file deep in OpenEXR/Imath that is including from the wrong place.
On Dec 21, 2022, at 5:49 AM, Olivier Paquet <olivier@...> wrote:OpenEXR 3 has source breaking changes. See https://github.com/AcademySoftwareFoundation/Imath/blob/main/docs/PortingGuide2-3.md
For our own build, I ended up kludging together something which looks like v2 but is actually v3 by copying some libs and includes to their old names / location. It's not pretty but it gets the job done until all the other projects become v3 compatible. We're not on the latest OSL so I have no idea if it's supposed to build cleanly or not with v3.
Olivier
On 2022-12-21 01 h 36, joey.skeys@... wrote:Hi guys,
After switch to OpenEXR 3, my project build break due to the OpenEXR/ImathPlatform.h no longer exists.
I built OpenEXR as a rez package and with the internal Imath option turned on.
The result is now the ImathPlatform.h lives in Imath folder. And it's causing the problem.
Is the directory change of the header file a update from OpenEXR or I just didn't build it correctly?
My OSL version is 1.12.7.1 and OpenEXR version 3.1.5, all built with gcc 12.2.0.
Thanks for your attension.