Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build with openimageio 2.x #37

Open
marillat opened this issue Jan 8, 2019 · 1 comment
Open

Fail to build with openimageio 2.x #37

marillat opened this issue Jan 8, 2019 · 1 comment

Comments

@marillat
Copy link

marillat commented Jan 8, 2019

Hi,

Debian unstable amd64, gcc 8.2.0

(cd IO && make )
make[1] : on entre dans le répertoire « /src/openfx-io-natron-2.3.14/IO »
  CXX      Linux-64-debug/ReadOIIO.o
In file included from /usr/include/libraw/libraw.h:35,
                 from ../OIIO/ReadOIIO.cpp:44:
/usr/include/libraw/libraw_datastream.h:121:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<std::streambuf> f;       /* will close() automatically through dtor */
        ^~~~~~~~
In file included from /usr/include/c++/8/bits/locale_conv.h:41,
                 from /usr/include/c++/8/locale:43,
                 from /usr/include/c++/8/iomanip:43,
                 from /usr/include/OpenEXR/ImathMatrix.h:55,
                 from /usr/include/OpenImageIO/simd.h:56,
                 from /usr/include/OpenImageIO/fmath.h:67,
                 from /usr/include/OpenImageIO/hash.h:51,
                 from /usr/include/OpenImageIO/strutil.h:49,
                 from /usr/include/OpenImageIO/ustring.h:137,
                 from /usr/include/OpenImageIO/paramlist.h:45,
                 from /usr/include/OpenImageIO/imageio.h:60,
                 from ../OIIO/OIIOGlobal.h:27,
                 from ../OIIO/ReadOIIO.cpp:40:
/usr/include/c++/8/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from /usr/include/libraw/libraw.h:35,
                 from ../OIIO/ReadOIIO.cpp:44:
/usr/include/libraw/libraw_datastream.h:122:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<std::streambuf> saved_f; /* when *f is a subfile, *saved_f is the master file */
        ^~~~~~~~
In file included from /usr/include/c++/8/bits/locale_conv.h:41,
                 from /usr/include/c++/8/locale:43,
                 from /usr/include/c++/8/iomanip:43,
                 from /usr/include/OpenEXR/ImathMatrix.h:55,
                 from /usr/include/OpenImageIO/simd.h:56,
                 from /usr/include/OpenImageIO/fmath.h:67,
                 from /usr/include/OpenImageIO/hash.h:51,
                 from /usr/include/OpenImageIO/strutil.h:49,
                 from /usr/include/OpenImageIO/ustring.h:137,
                 from /usr/include/OpenImageIO/paramlist.h:45,
                 from /usr/include/OpenImageIO/imageio.h:60,
                 from ../OIIO/OIIOGlobal.h:27,
                 from ../OIIO/ReadOIIO.cpp:40:
/usr/include/c++/8/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
../OIIO/ReadOIIO.cpp: In member function ‘void {anonymous}::ReadOIIOPlugin::openFile(const string&, bool, OpenImageIO_v2_0::ImageInput**, std::vector<OpenImageIO_v2_0::ImageSpec>*)’:
../OIIO/ReadOIIO.cpp:1970:46: error: cannot convert ‘OpenImageIO_v2_0::ImageInput::unique_ptr’ {aka ‘std::unique_ptr<OpenImageIO_v2_0::ImageInput>’} to ‘OpenImageIO_v2_0::ImageInput*’ in assignment
     *img = ImageInput::open(filename, &config);
                                              ^
../OIIO/ReadOIIO.cpp: In member function ‘std::__cxx11::string {anonymous}::ReadOIIOPlugin::metadata(const string&)’:
../OIIO/ReadOIIO.cpp:2781:56: error: no matching function for call to ‘std::unique_ptr<OpenImageIO_v2_0::ImageInput>::reset(OpenImageIO_v2_0::ImageInput::unique_ptr)’
         img.reset( ImageInput::open(filename, &config) );
                                                        ^
In file included from /usr/include/c++/8/bits/locale_conv.h:41,
                 from /usr/include/c++/8/locale:43,
                 from /usr/include/c++/8/iomanip:43,
                 from /usr/include/OpenEXR/ImathMatrix.h:55,
                 from /usr/include/OpenImageIO/simd.h:56,
                 from /usr/include/OpenImageIO/fmath.h:67,
                 from /usr/include/OpenImageIO/hash.h:51,
                 from /usr/include/OpenImageIO/strutil.h:49,
                 from /usr/include/OpenImageIO/ustring.h:137,
                 from /usr/include/OpenImageIO/paramlist.h:45,
                 from /usr/include/OpenImageIO/imageio.h:60,
                 from ../OIIO/OIIOGlobal.h:27,
                 from ../OIIO/ReadOIIO.cpp:40:
/usr/include/c++/8/bits/unique_ptr.h:377:7: note: candidate: ‘void std::unique_ptr<_Tp, _Dp>::reset(std::unique_ptr<_Tp, _Dp>::pointer) [with _Tp = OpenImageIO_v2_0::ImageInput; _Dp = std::default_delete<OpenImageIO_v2_0::ImageInput>; std::unique_ptr<_Tp, _Dp>::pointer = OpenImageIO_v2_0::ImageInput*]’
       reset(pointer __p = pointer()) noexcept
       ^~~~~
/usr/include/c++/8/bits/unique_ptr.h:377:7: note:   no known conversion for argument 1 from ‘OpenImageIO_v2_0::ImageInput::unique_ptr’ {aka ‘std::unique_ptr<OpenImageIO_v2_0::ImageInput>’} to ‘std::unique_ptr<OpenImageIO_v2_0::ImageInput>::pointer’ {aka ‘OpenImageIO_v2_0::ImageInput*’}
make[1]: *** [../openfx/Support/Plugins/Makefile.master:83: Linux-64-debug/ReadOIIO.o] Error 1
@zwillikon
Copy link

5 years later I'm getting a similar error:
./OpenShadingLanguage/src/liboslexec/shadingsys.cpp:1204:45: error: cannot convert 'std::shared_ptr<OpenImageIO_v2_6_4::TextureSystem>' to 'OpenImageIO_v2_6_4::TextureSystem*' in assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants