Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679744 - media-libs/openimageio-1.7.17 with >media-video/ffmpeg-4 - .../work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp:333:72: error: ‘CODEC_CAP_DELAY’ was not declared in this scope
Summary: media-libs/openimageio-1.7.17 with >media-video/ffmpeg-4 - .../work/openimage...
Status: RESOLVED DUPLICATE of bug 654160
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-08 08:20 UTC by Cooper
Modified: 2019-03-08 10:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cooper 2019-03-08 08:20:45 UTC
When building openimageio the following error appears:

[ 33%] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o
cd /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO && /usr/bin/x86_64-pc-linux-gnu-g++ -DEMBED_PLUGINS=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FFMPEG -DUSE_FREETYPE -DUSE_JPEG_TURBO=1 -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/include/OpenImageIO -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/include -I/usr/include/OpenEXR -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/freetype   -DNDEBUG -O2 -pipe -fPIC   -Wall -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -Wno-error=misleading-indentation -std=c++14 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mf16c -UUSE_FIELD3D -Wno-deprecated-declarations -o CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp
[ 33%] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpegoutput.cpp.o
cd /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO && /usr/bin/x86_64-pc-linux-gnu-g++ -DEMBED_PLUGINS=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FFMPEG -DUSE_FREETYPE -DUSE_JPEG_TURBO=1 -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/include/OpenImageIO -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/include -I/usr/include/OpenEXR -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/freetype   -DNDEBUG -O2 -pipe -fPIC   -Wall -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -Wno-error=misleading-indentation -std=c++14 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mf16c -UUSE_FIELD3D -o CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpegoutput.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpegoutput.cpp
[ 34%] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/fits.imageio/fitsinput.cpp.o
cd /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO && /usr/bin/x86_64-pc-linux-gnu-g++ -DEMBED_PLUGINS=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FFMPEG -DUSE_FREETYPE -DUSE_JPEG_TURBO=1 -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/include/OpenImageIO -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/include -I/usr/include/OpenEXR -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/freetype   -DNDEBUG -O2 -pipe -fPIC   -Wall -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -Wno-error=misleading-indentation -std=c++14 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mf16c -UUSE_FIELD3D -o CMakeFiles/OpenImageIO.dir/__/fits.imageio/fitsinput.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/fits.imageio/fitsinput.cpp
[ 34%] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/fits.imageio/fitsoutput.cpp.o
cd /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO && /usr/bin/x86_64-pc-linux-gnu-g++ -DEMBED_PLUGINS=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FFMPEG -DUSE_FREETYPE -DUSE_JPEG_TURBO=1 -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/include/OpenImageIO -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/include -I/usr/include/OpenEXR -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/freetype   -DNDEBUG -O2 -pipe -fPIC   -Wall -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -Wno-error=misleading-indentation -std=c++14 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mf16c -UUSE_FIELD3D -o CMakeFiles/OpenImageIO.dir/__/fits.imageio/fitsoutput.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/fits.imageio/fitsoutput.cpp
[ 35%] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/fits.imageio/fits_pvt.cpp.o
cd /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO && /usr/bin/x86_64-pc-linux-gnu-g++ -DEMBED_PLUGINS=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FFMPEG -DUSE_FREETYPE -DUSE_JPEG_TURBO=1 -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/include/OpenImageIO -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/include -I/usr/include/OpenEXR -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/src/libOpenImageIO -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/freetype   -DNDEBUG -O2 -pipe -fPIC   -Wall -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -Wno-error=misleading-indentation -std=c++14 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mf16c -UUSE_FIELD3D -o CMakeFiles/OpenImageIO.dir/__/fits.imageio/fits_pvt.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/fits.imageio/fits_pvt.cpp
/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp: In member function ‘virtual bool OpenImageIO::v1_7::FFmpegInput::open(const string&, OpenImageIO::v1_7::ImageSpec&)’:
/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp:333:72: error: ‘CODEC_CAP_DELAY’ was not declared in this scope
     m_codec_cap_delay = (bool) (m_codec_context->codec->capabilities & CODEC_CAP_DELAY);
                                                                        ^~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp:333:72: note: suggested alternative: ‘AV_CODEC_CAP_DELAY’
     m_codec_cap_delay = (bool) (m_codec_context->codec->capabilities & CODEC_CAP_DELAY);
                                                                        ^~~~~~~~~~~~~~~
                                                                        AV_CODEC_CAP_DELAY
make[2]: *** [src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/build.make:927: src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build'
make[1]: *** [CMakeFiles/Makefile2:1560: src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build'
make: *** [Makefile:163: all] Error 2


This is identical to the issue they describe here against 1.8:

https://github.com/OpenImageIO/oiio/issues/1923

And the fix for that was:

https://github.com/OpenImageIO/oiio/pull/1926/commits/1913eea895cf2a985a21f04048b1b9f7e40d2875

I tried to upgrade to openimageio-1.8, which builds just fine, but this causes problems in Blender.
Comment 1 Cooper 2019-03-08 08:47:24 UTC
It's worth noting that I have ffmpeg unmasked which is why I got version 4 at all. By default you currently get 3.4.5 for stable and then this issue doesn't exist.

Because of this, I'm lowering the importance. The fix to me seems harmless enough to still make it worth your while to include it though.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-08 10:03:12 UTC

*** This bug has been marked as a duplicate of bug 654160 ***