OCIO 1.1.1 build error on Fedora Rawhide
/builddir/build/BUILD/OpenColorIO-1.1.1/src/core/ImageDesc.cpp: In function 'OpenColorIO::v1::operator<<(std::basic_ostream<char, std::char_traits<char> >&, OpenColorIO::v1::ImageDesc const&)':
/builddir/build/BUILD/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:60:51: error: 'this' pointer is null [-Werror=nonnull]
60 | os << "width=" << packedImg->getWidth() << ", ";
| ^
/builddir/build/BUILD/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:274:10: note: in a call to non-static member function 'OpenColorIO::v1::PackedImageDesc::getWidth() const'
274 | long PackedImageDesc::getWidth() const
| ^~~~~~~~~~~~~~~
/builddir/build/BUILD/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:61:53: error: 'this' pointer is null [-Werror=nonnull]
61 | os << "height=" << packedImg->getHeight() << ", ";
| ^
/builddir/build/BUILD/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:279:10: note: in a call to non-static member function 'OpenColorIO::v1::PackedImageDesc::getHeight() const'
279 | long PackedImageDesc::getHeight() const
| ^~~~~~~~~~~~~~~
Hi Richard,
Thanks for reporting the problem. You definitively found an error which can easily be fixed.
The problem is that lines 60 and 61 from src/core/ImageDesc.cpp must use planarImg (instead of the faulty packedImg).
As our focus and effort are all on the OpenColorIO version 2, would you mind creating an issue and submitting a pull request?
That would help us to increase the overall library.
Patrick
Hi Richard,
Thanks for reporting the problem. You definitively found an error which can easily be fixed.The problem is that lines 60 and 61 from src/core/ImageDesc.cpp must use planarImg (instead of the faulty packedImg).
As our focus and effort are all on the OpenColorIO version 2, would you mind creating an issue and submitting a pull request?
That would help us to increase the overall library.