Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 831986

Summary: media-libs/opencv-4.5.5 fails to compile stitching_detailed.cpp
Product: Gentoo Linux Reporter: 27 <happysmash27>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log of media-libs/opencv-4.5.5 with Java use flag disabled

Description 27 2022-01-24 18:16:12 UTC
media-libs/opencv-4.5.5 fails to compile on stitching_detailed.cpp

Reproducible: Always

Steps to Reproduce:
1. Disable "java" use flag in an attempt to work around https://bugs.gentoo.org/831984
2. Emerge OpenCV. 
Actual Results:  
ERROR: media-libs/opencv-4.5.5::gentoo failed (compile phase)

Expected Results:  
OpenCV compiles correctly and my world update is able to go through
Comment 1 27 2022-01-24 18:17:08 UTC
Created attachment 763513 [details]
Build log of media-libs/opencv-4.5.5 with Java use flag disabled
Comment 2 27 2022-01-24 18:17:41 UTC
Emerge --info can be found at my other bug report https://bugs.gentoo.org/831984.
Comment 3 27 2022-01-24 18:22:45 UTC
Upon further searching of the logs, it appears that the actual cause of this issue is: 

/var/tmp/portage/media-libs/opencv-4.5.5/work/opencv-4.5.5/samples/cpp/tutorial_code/gapi/doc_snippets/api_ref_snippets.cpp:3:10: fatal error: opencv2/gapi.hpp: No such file or directory

And that this is identical to this issue: https://bugs.gentoo.org/831113

Therefore, I will mark this as a duplicate.

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