Date: Wed, 13 Jan 2021 22:46:42 +0100 From: Torfinn Ingolfsen <tingox@gmail.com> To: FreeBSD Ports ML <freebsd-ports@freebsd.org> Cc: FreeBSD@shaneware.biz Subject: graphics/openimageio fails to build Message-ID: <CAJ_iqtYK6L2jFNFLiMoYVbkC-5QyXF3jzrbivcS83XucG7rRiQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
like so: FAILED: src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/jpeg2000.imageio/jpeg2000input.cpp.o /usr/bin/c++ -DEMBED_PLUGINS=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_DCMTK=1 -DUSE_FREETYPE=1 -DUSE_GIF -DUSE_HEIF=1 -DUSE_OCIO=1 -DUSE_OPENCOLORIO=1 -DUSE_OPENJPEG -DUSE_PTEX -DUSE_STD_REGEX -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Iinclude/OpenImageIO -Iinclude -Isrc/include -I/usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include -I/usr/local/include/ptex -I/usr/local/include/freetype2 -isystem /usr/local/include -isystem /usr/local/include/OpenEXR -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -Wall -Wno-unused-function -Wno-overloaded-virtual -Wno-unneeded-internal-declaration -Wno-unused-private-field -Wno-tautological-compare -Qunused-arguments -Wunknown-warning-option -Wno-unused-local-typedefs -Wno-expansion-to-defined -fno-math-errno -pthread -std=c++14 -MD -MT src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/jpeg2000.imageio/jpeg2000input.cpp.o -MF src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/jpeg2000.imageio/jpeg2000input.cpp.o.d -o src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/jpeg2000.imageio/jpeg2000input.cpp.o -c /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:97:5: error: unknown type name 'opj_codec_t'; did you mean 'opj_poc_t'? opj_codec_t* m_codec; ^~~~~~~~~~~ opj_poc_t /usr/local/include/openjpeg.h:225:3: note: 'opj_poc_t' declared here } opj_poc_t; ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:98:5: error: unknown type name 'opj_stream_t' opj_stream_t* m_stream; ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:105:5: error: unknown type name 'opj_codec_t'; did you mean 'opj_poc_t'? opj_codec_t* create_decompressor(); ^~~~~~~~~~~ opj_poc_t /usr/local/include/openjpeg.h:225:3: note: 'opj_poc_t' declared here } opj_poc_t; ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:143:26: error: unknown type name 'opj_codec_t'; did you mean 'opj_poc_t'? void setup_event_mgr(opj_codec_t* codec) ^~~~~~~~~~~ opj_poc_t /usr/local/include/openjpeg.h:225:3: note: 'opj_poc_t' declared here } opj_poc_t; ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:145:9: error: use of undeclared identifier 'opj_set_error_handler' opj_set_error_handler(codec, openjpeg_error_callback, this); ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:146:9: error: use of undeclared identifier 'opj_set_warning_handler' opj_set_warning_handler(codec, openjpeg_dummy_callback, NULL); ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:147:9: error: use of undeclared identifier 'opj_set_info_handler' opj_set_info_handler(codec, openjpeg_dummy_callback, NULL); ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:164:12: error: cannot initialize return object of type 'OpenImageIO_v2_2::ImageInput *' with an rvalue of type 'OpenImageIO_v2_2::Jpeg2000Input *' return new Jpeg2000Input; ^~~~~~~~~~~~~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:188:9: error: no matching member function for call to 'errorf' errorf("Could not open file \"%s\"", m_filename); ^~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1591:10: note: candidate function template not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'const OpenImageIO_v2_2::ImageInput' for object argument void errorf(const char* fmt, const Args&... args) const { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:194:9: error: no matching member function for call to 'errorf' errorf("Could not create Jpeg2000 stream decompressor"); ^~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1591:10: note: candidate function template not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'const OpenImageIO_v2_2::ImageInput' for object argument void errorf(const char* fmt, const Args&... args) const { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:203:5: error: no matching function for call to 'opj_setup_decoder' opj_setup_decoder(m_codec, ¶meters); ^~~~~~~~~~~~~~~~~ /usr/local/include/openjpeg.h:828:27: note: candidate function not viable: no known conversion from 'opj_poc_t *' (aka 'opj_poc *') to 'opj_dinfo_t *' (aka 'opj_dinfo *') for 1st argument OPJ_API void OPJ_CALLCONV opj_setup_decoder(opj_dinfo_t *dinfo, opj_dparameters_t *parameters); ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:211:16: error: use of undeclared identifier 'opj_stream_create_default_file_stream' m_stream = opj_stream_create_default_file_stream(m_file, true); ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:214:9: error: no matching member function for call to 'errorf' errorf("Could not open Jpeg2000 stream"); ^~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1591:10: note: candidate function template not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'const OpenImageIO_v2_2::ImageInput' for object argument void errorf(const char* fmt, const Args&... args) const { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:221:9: error: no matching member function for call to 'errorf' errorf("Could not read Jpeg2000 header"); ^~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1591:10: note: candidate function template not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'const OpenImageIO_v2_2::ImageInput' for object argument void errorf(const char* fmt, const Args&... args) const { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:233:9: error: no matching member function for call to 'errorf' errorf("Only images with one, three or four components are supported"); ^~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1591:10: note: candidate function template not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'const OpenImageIO_v2_2::ImageInput' for object argument void errorf(const char* fmt, const Args&... args) const { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:246:24: error: no matching function for call to 'max' maxPrecision = std::max(comp.prec, maxPrecision); ^~~~~~~~ /usr/include/c++/v1/algorithm:2633:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'unsigned int') max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/v1/algorithm:2644:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'int' max(initializer_list<_Tp> __t, _Compare __comp) ^ /usr/include/c++/v1/algorithm:2653:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided max(initializer_list<_Tp> __t) ^ /usr/include/c++/v1/algorithm:2624:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:309:10: error: no matching member function for call to 'seek_subimage' if (!seek_subimage(subimage, miplevel)) ^~~~~~~~~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1084:18: note: candidate function not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'OpenImageIO_v2_2::ImageInput' for object argument virtual bool seek_subimage (int subimage, int miplevel) { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1102:10: note: candidate function not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'OpenImageIO_v2_2::ImageInput' for object argument bool seek_subimage (int subimage, ImageSpec &newspec) { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1092:10: note: candidate function not viable: requires 3 arguments, but 2 were provided bool seek_subimage (int subimage, int miplevel, ImageSpec &newspec) { ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:369:1: error: unknown type name 'opj_codec_t'; did you mean 'opj_poc_t'? opj_codec_t* ^~~~~~~~~~~ opj_poc_t /usr/local/include/openjpeg.h:225:3: note: 'opj_poc_t' declared here } opj_poc_t; ^ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/jpeg2000.imageio/jpeg2000input.cpp:375:9: error: no matching member function for call to 'errorf' errorf("Empty file \"%s\"", m_filename); ^~~~~~ /usr/ports/graphics/openimageio/work/oiio-Release-2.2.9.0/src/include/OpenImageIO/imageio.h:1591:10: note: candidate function template not viable: no known conversion from 'OpenImageIO_v2_2::Jpeg2000Input' to 'const OpenImageIO_v2_2::ImageInput' for object argument void errorf(const char* fmt, const Args&... args) const { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. ninja: build stopped: subcommand failed. *** Error code 1 Stop. make[1]: stopped in /usr/ports/graphics/openimageio *** Error code 1 Stop. make: stopped in /usr/ports/graphics/openimageio ports tree updated today. This on root@kg-core2# uname -a FreeBSD kg-core2.kg4.no 11.4-RELEASE-p5 FreeBSD 11.4-RELEASE-p5 #0: Tue Dec 1 11:46:55 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Any more info I can provide? -- Regards, Torfinn Ingolfsen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ_iqtYK6L2jFNFLiMoYVbkC-5QyXF3jzrbivcS83XucG7rRiQ>