Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671672 - =media-libs/opencv-3.4.1-r4[png] fails to build because of wrong png header location
Summary: =media-libs/opencv-3.4.1-r4[png] fails to build because of wrong png header l...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-22 06:52 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2019-01-14 10:31 UTC (History)
1 user (show)

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 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...