Summary: | media-libs/opencv-2.3.0 fails to build with libpng 1.5 (missing zlib.h include) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | PM <mitaspiotr> |
Component: | [OLD] Library | Assignee: | Andreas K. Hüttel <dilfridge> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, asturm, dschridde+gentoobugs, gentoo, krinpaus, kripton, nbkolchin, optiluca, tsg, vivo75 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 354479 | ||
Attachments: |
/var/tmp/portage/media-libs/opencv-2.3.0/temp/build.log
Backport of r6143 to fix missing zlib headers |
Description
PM
2011-09-19 02:24:42 UTC
Attach the build log please. What version of libpng do you have installed? I have the same error. root@caiman:/root(6)# qlist -Iv libpng media-libs/libpng-1.5.4 Created attachment 286975 [details]
/var/tmp/portage/media-libs/opencv-2.3.0/temp/build.log
zlib.h should be included in grfmt_png.cpp This should be fixed in OpenCV 2.3.1. See commit 6143 of upstream: https://code.ros.org/trac/opencv/changeset/6143/trunk/opencv/modules/highgui/src/grfmt_png.cpp same error In an attempt for a quick fix, I had to remove all patches except opencv-2.3.0-numpy.patch for an opencv-2.3.1 ebuild, but finally I get the same error as: http://tech.groups.yahoo.com/group/OpenCV/message/83208?l=1 Created attachment 287087 [details, diff]
Backport of r6143 to fix missing zlib headers
I added a patch that backports r6143 from OpenCV 2.3.1. To fix the missing zlib headers in opencv/modules/highgui/src/grfmt_png.cpp just add this patch to the patch list of the current media-libs/opencv-2.3.0.ebuild. Worked for me.
(In reply to comment #8) > Created attachment 287087 [details, diff] > Backport of r6143 to fix missing zlib headers > > I added a patch that backports r6143 from OpenCV 2.3.1. To fix the missing zlib > headers in opencv/modules/highgui/src/grfmt_png.cpp just add this patch to the > patch list of the current media-libs/opencv-2.3.0.ebuild. Worked for me. Confirming that this patch fixes the issue. Thanks for the patch. This is now fixed *** Bug 383827 has been marked as a duplicate of this bug. *** *** Bug 383925 has been marked as a duplicate of this bug. *** |