Summary: | media-libs/opencv-3.1.0-r7 (with vtk-7.0.0) - CMake Error at /usr/lib/cmake/vtk-7.0/vtkModuleAPI.cmake:120 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Amy Liffey <amynka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dilfridge, kredba, mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
.../opencv-3.1.0_build/CMakeFiles/CMakeOutput.log
.../opencv-3.1.0_build/CMakeFiles/CMakeError.log build.log |
Description
Juergen Rose
2017-01-31 16:37:06 UTC
Created attachment 462012 [details]
.../opencv-3.1.0_build/CMakeFiles/CMakeError.log
Created attachment 462014 [details]
build.log
'USE=-vtk emerge -v1 opencv' works. I see the same behavior. sci-libs/vtk-7.1.0 does not have an opengl USE var. Should it? [ebuild R ] sci-libs/vtk-7.1.0::gentoo USE="X boost ffmpeg gdal imaging json odbc postgres python rendering theora -R -all-modules (-aqua) -doc (-examples) -java -kaapi -mpi -mysql -offscreen -qt5 -tbb -tcl {-test} -tk -views -web -xdmf2" PYTHON_TARGETS="python2_7" VIDEO_CARDS="-nvidia" 0 KiB Noting the VIDEO_CARDS item above: I have VIDEO_CARDS="intel". (In reply to Jeff Kowalczyk from comment #4) > I see the same behavior. sci-libs/vtk-7.1.0 does not have an opengl USE var. > Should it? > > [ebuild R ] sci-libs/vtk-7.1.0::gentoo USE="X boost ffmpeg gdal > imaging json odbc postgres python rendering theora -R -all-modules (-aqua) > -doc (-examples) -java -kaapi -mpi -mysql -offscreen -qt5 -tbb -tcl {-test} > -tk -views -web -xdmf2" PYTHON_TARGETS="python2_7" VIDEO_CARDS="-nvidia" 0 > KiB > > Noting the VIDEO_CARDS item above: I have VIDEO_CARDS="intel". Can you try to enable qt5? I ended up adding USE="+qt5 -vtk" to opencv, and uninstalling vtk. VTK's USE="qt5", which would seem necessary to resolve this bug, pulls in qtwebkit and therefore a large ruby dependency set including two versions of ruby. I didn't want to add that to my system, so I have put vtk on hold. With +qt5 -vtk, I'm able to emerge opencv again. I think that this relies on this bug https://github.com/opencv/opencv/issues/6180 I have manually fix the file cmake/OpenCVDetectVTK.cmake and after opencv compiles. Who wants to make a patch ? (In reply to Lionel MANNONE from comment #7) > I think that this relies on this bug > https://github.com/opencv/opencv/issues/6180 > I have manually fix the file cmake/OpenCVDetectVTK.cmake and after opencv > compiles. > Who wants to make a patch ? If you say me how did you fixed cmake/OpenCVDetectVTK.cmake, I will try to make a patch. (In reply to Lionel MANNONE from comment #7) > I think that this relies on this bug > https://github.com/opencv/opencv/issues/6180 > I have manually fix the file cmake/OpenCVDetectVTK.cmake and after opencv > compiles. > Who wants to make a patch ? https://gitlab.com/Zelena/hell-overlay/raw/master/media-libs/opencv/files/opencv-3.1.0-vtk.patch Did you mean this patch? Can you please test it? (In reply to Amy Liffey from comment #9) > (In reply to Lionel MANNONE from comment #7) > > I think that this relies on this bug > > https://github.com/opencv/opencv/issues/6180 > > I have manually fix the file cmake/OpenCVDetectVTK.cmake and after opencv > > compiles. > > Who wants to make a patch ? > > https://gitlab.com/Zelena/hell-overlay/raw/master/media-libs/opencv/files/ > opencv-3.1.0-vtk.patch > > Did you mean this patch? Can you please test it? This patch fails here with: * Applying opencv-3.1.0-vtk.patch ... 1 out of 1 hunk FAILED -- saving rejects to file cmake/OpenCVDetectVTK.cmake.rej [ !! ] * ERROR: media-libs/opencv-3.1.0-r7::local failed (prepare phase): * patch -p1 failed with /usr/local/portage/media-libs/opencv/files/opencv-3.1.0-vtk.patch I can't find any line containing "vtk 7" in /var/tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0/cmake/OpenCVDetectVTK.cmake : root@lynxold:/usr/local/portage/media-libs/opencv(57)# grep "vtk 7" /var/tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0/cmake/OpenCVDetectVTK.cmake root@lynxold:/usr/local/portage/media-libs/opencv(58)# The opencv-3.2.0.ebuild from https://gitlab.com/Zelena/hell-overlay/blob/master/media-libs/opencv/opencv-3.2.0.ebuild seems to work without the vtk-7.* issue. (In reply to Juergen Rose from comment #11) > The opencv-3.2.0.ebuild from > > https://gitlab.com/Zelena/hell-overlay/blob/master/media-libs/opencv/opencv- > 3.2.0.ebuild > > seems to work without the vtk-7.* issue. That would be probably because I accidentally send you patch for opencv-3.2.0. And as you can see on [1] I applied the patch already. Do you think you could remove the patch and confirm it does not work without it? (in opencv 3.2.0) Meaning I am wondering if it is really needed. Thank you :) [1] https://gitlab.com/Zelena/hell-overlay/blob/master/media-libs/opencv/opencv-3.2.0.ebuild#L98 commit 0b5fbd1002290d0b09e0c99f1364ed05104f914f Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Tue Aug 22 00:30:09 2017 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Tue Aug 22 00:30:40 2017 media-libs/opencv: Fix header wrapping w/[vtk], #627730 Sorry, closed the wrong bug. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87c7f56621506120ca81cb7098b836d922280d7d commit 87c7f56621506120ca81cb7098b836d922280d7d Author: Amy Liffey <amynka@gentoo.org> AuthorDate: 2018-05-25 19:33:22 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2018-05-25 19:33:22 +0000 media-libs/opencv: drop old 3.1.0 Closes: https://bugs.gentoo.org/557328 Closes: https://bugs.gentoo.org/600658 Closes: https://bugs.gentoo.org/607830 Closes: https://bugs.gentoo.org/611964 Closes: https://bugs.gentoo.org/639896 Package-Manager: Portage-2.3.24, Repoman-2.3.6 media-libs/opencv/Manifest | 2 - media-libs/opencv/opencv-3.1.0-r8.ebuild | 328 ------------------------------- 2 files changed, 330 deletions(-) |