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

Bug 671672

Summary: =media-libs/opencv-3.4.1-r4[png] fails to build because of wrong png header location
Product: Gentoo Linux Reporter: Vadim A. Misbakh-Soloviov (mva) <mva>
Component: Current packagesAssignee: Amy Liffey <amynka>
Status: RESOLVED OBSOLETE    
Severity: normal CC: dilfridge
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2018-11-22 06:52:49 UTC
Hi there!
I found that if I enable "png" use-flag on =media-libs/opencv-3.4.1-r4 it fails to build.

```
...
/var/tmp/portage/media-libs/opencv-3.4.1-r4/work/opencv-3.4.1/modules/imgcodecs/src/grfmt_png.cpp:62:10: fatal error: libpng/png.h: No such file or directory
 #include <libpng/png.h>
          ^~~~~~~~~~~~~~
compilation terminated.

```
Actual png.h header is placed in `libpng16/` directory, but not in `libpng/`.
Comment 1 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2019-01-14 10:31:58 UTC
 as of -r5 (and actual cmake version), it builds fine now...

I guess, it was cmake version-specific error...