Can you try editing txReader.h to do the include of imageio.h *before* the include of the three DDImage/* files and see if that helps?
If you aren't intending to use the Nuke tx reader/writer, then another choice is to use `-DUSE_Nuke=OFF` when doing the initial cmake configuration step. That should disable building this component entirely (without needing to alter the CMakeLists.txt file itself). > On Apr 4, 2023, at 2:15 PM, Guy Dubost <gdub...@gmail.com> wrote: > > Hi > I got issues to build txReader/txWriter > The build is usibng OpenExr 3.1.5 and Imath-3.1.6 previously built > during the build i m getting those errors > > Also to note that skipping txReader and writer in the CMakeLists.txt is a > workaround for now > > In file included from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/fmath.h:44, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/hash.h:30, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/strutil.h:25, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/typedesc.h:29, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/attrdelegate.h:13, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/paramlist.h:17, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/imageio.h:34, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:9: > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h: At global scope: > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:1917:29: error: > reference to ‘half’ is ambiguous > 1917 | explicit vfloat4 (const half *vals) { load(vals); } > | ^~~~ > In file included from > /usr/local/Nuke11.1v2/include/DDImage/ReaderExtensions/GenericImagePlane.h:25, > from > /usr/local/Nuke11.1v2/include/DDImage/ReaderExtensions/PlanarReadInfo.h:22, > from /usr/local/Nuke11.1v2/include/DDImage/Reader.h:9, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:6: > /usr/local/Nuke11.1v2/include/DDImage/half.h:99:25: note: candidates are: > ‘class DD::Image::Half::half’ > 99 | class DDImage_API half > | ^~~~ > In file included from > /local/gdubost/oiio-2.4.10.0/build/include/OpenImageIO/half.h:12, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:39, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/fmath.h:44, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/hash.h:30, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/strutil.h:25, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/typedesc.h:29, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/attrdelegate.h:13, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/paramlist.h:17, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/imageio.h:34, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:9: > /opt/Imath-3.1.6/include/Imath/half.h:983:7: note: ‘using > half = class Imath_3_1::half’ > 983 | using half = IMATH_INTERNAL_NAMESPACE::half; > | ^~~~ > In file included from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/fmath.h:44, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/hash.h:30, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/strutil.h:25, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/typedesc.h:29, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/attrdelegate.h:13, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/paramlist.h:17, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/imageio.h:34, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:9: > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:2005:22: error: > reference to ‘half’ is ambiguous > 2005 | void load (const half *values); > | ^~~~ > In file included from > /usr/local/Nuke11.1v2/include/DDImage/ReaderExtensions/GenericImagePlane.h:25, > from > /usr/local/Nuke11.1v2/include/DDImage/ReaderExtensions/PlanarReadInfo.h:22, > from /usr/local/Nuke11.1v2/include/DDImage/Reader.h:9, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:6: > /usr/local/Nuke11.1v2/include/DDImage/half.h:99:25: note: candidates are: > ‘class DD::Image::Half::half’ > 99 | class DDImage_API half > | ^~~~ > In file included from > /local/gdubost/oiio-2.4.10.0/build/include/OpenImageIO/half.h:12, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:39, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/fmath.h:44, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/hash.h:30, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/strutil.h:25, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/typedesc.h:29, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/attrdelegate.h:13, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/paramlist.h:17, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/imageio.h:34, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:9: > /opt/Imath-3.1.6/include/Imath/half.h:983:7: note: ‘using > half = class Imath_3_1::half’ > 983 | using half = IMATH_INTERNAL_NAMESPACE::half; > | ^~~~ > In file included from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/fmath.h:44, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/hash.h:30, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/strutil.h:25, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/typedesc.h:29, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/attrdelegate.h:13, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/paramlist.h:17, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/imageio.h:34, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:9: > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:2014:17: error: > reference to ‘half’ is ambiguous > 2014 | void store (half *values) const; > | ^~~~ > In file included from > /usr/local/Nuke11.1v2/include/DDImage/ReaderExtensions/GenericImagePlane.h:25, > from > /usr/local/Nuke11.1v2/include/DDImage/ReaderExtensions/PlanarReadInfo.h:22, > from /usr/local/Nuke11.1v2/include/DDImage/Reader.h:9, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:6: > /usr/local/Nuke11.1v2/include/DDImage/half.h:99:25: note: candidates are: > ‘class DD::Image::Half::half’ > 99 | class DDImage_API half > | ^~~~ > In file included from > /local/gdubost/oiio-2.4.10.0/build/include/OpenImageIO/half.h:12, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:39, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/fmath.h:44, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/hash.h:30, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/strutil.h:25, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/typedesc.h:29, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/attrdelegate.h:13, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/paramlist.h:17, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/imageio.h:34, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:9: > /opt/Imath-3.1.6/include/Imath/half.h:983:7: note: ‘using > half = class Imath_3_1::half’ > 983 | using half = IMATH_INTERNAL_NAMESPACE::half; > | ^~~~ > In file included from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/fmath.h:44, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/hash.h:30, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/strutil.h:25, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/typedesc.h:29, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/attrdelegate.h:13, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/paramlist.h:17, > from > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/imageio.h:34, > from > /local/gdubost/oiio-2.4.10.0/src/nuke/txReader/txReader.cpp:9: > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:2014:17: error: > ‘half’ has not been declared > 2014 | void store (half *values) const; > | ^~~~ > /local/gdubost/oiio-2.4.10.0/src/include/OpenImageIO/simd.h:2282:29: error: > reference to ‘half’ is ambiguous > 2282 | explicit vfloat3 (const half *vals) { load(vals); } > > > _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org -- Larry Gritz l...@larrygritz.com
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org