Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616090 - =media-libs/openimageio-1.6.13 USE=opencv with media-libs/opencv-3.2.0 - .../work/openimageio-1.6.13/src/include/OpenImageIO/imagebufalgo.h:51:8: error: using typedef-name ‘IplImage’ after ‘struct’
Summary: =media-libs/openimageio-1.6.13 USE=opencv with media-libs/opencv-3.2.0 - .../...
Status: RESOLVED DUPLICATE of bug 616086
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 08:49 UTC by Bernd Feige
Modified: 2019-11-30 09:46 UTC (History)
2 users (show)

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


Attachments
media-libs/openimageio-1.8.13 build.log (file_616090.txt,221.01 KB, text/plain)
2018-08-16 02:49 UTC, Amel Hodzic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2017-04-20 08:49:16 UTC
Compilation error:

In file included from /var/tmp/portage/media-libs/openimageio-1.6.13/work/openimageio-1.6.13/src/libOpenImageIO/imagebufalgo_opencv.cpp:45:0:
/var/tmp/portage/media-libs/openimageio-1.6.13/work/openimageio-1.6.13/src/include/OpenImageIO/imagebufalgo.h:51:8: error: using typedef-name ‘IplImage’ after ‘struct’
 struct IplImage;  // Forward declaration; used by Intel Image lib & OpenCV
        ^
In file included from /usr/include/opencv2/core/core_c.h:48:0,
                 from /var/tmp/portage/media-libs/openimageio-1.6.13/work/openimageio-1.6.13/src/libOpenImageIO/imagebufalgo_opencv.cpp:37:
/usr/include/opencv2/core/types_c.h:338:1: note: ‘IplImage’ has a previous declaration here
 IplImage;
 ^

Downgrading to opencv-3.1.0-r7 fixes the issue.
Comment 1 Luke A. Guest 2017-06-09 18:16:14 UTC
Can confirm this bug and temporary fix as noted.
Comment 2 Mircea Sava 2017-07-09 18:36:17 UTC
USE=-opencv also a viable workaround given how opencv-3.1.0-r7 no longer builds with vtk-7.1.0 (see https://bugs.gentoo.org/show_bug.cgi?id=607830)
Comment 3 Amel Hodzic 2018-08-16 02:47:47 UTC
Build failures occur with media-libs/openimageio-1.8.13 as well on my AMD Ryzen system.  Removing the opencv USE flag resolves build failures; although, I'm not sure if the same problem is resolved or if it's yet another opencv-related issue within openimageio.
Comment 4 Amel Hodzic 2018-08-16 02:49:29 UTC
Created attachment 543642 [details]
media-libs/openimageio-1.8.13 build.log
Comment 5 Andreas Sturmlechner gentoo-dev 2019-11-30 09:46:27 UTC

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