Emerging opencv3.3 with cuda and xfeature2d result in In file included from /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/stitching/include/opencv2/stitching.hpp:49:0, from /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/stitching/src/precomp.hpp:59, from /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/stitching/src/autocalib.cpp:43: /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory compilation terminated. It looks a lot like this bug https://github.com/opencv/opencv_contrib/issues/1131 but I do not have any download faults The configuration can be found here https://pastebin.com/sGi4Rh0P And my emerge configuration https://pastebin.com/Hu57507P I also don't know why xfeature2d needs cuda since it cna be compiled without it but it appears to be a requirement here
(In reply to malcolm.mielle from comment #0) > Emerging opencv3.3 with cuda and xfeature2d result in > > In file included from > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > stitching/include/opencv2/stitching.hpp:49:0, > from > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > stitching/src/precomp.hpp:59, > from > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > stitching/src/autocalib.cpp:43: > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: > opencv2/xfeatures2d/cuda.hpp: No such file or directory > compilation terminated. > > > It looks a lot like this bug > https://github.com/opencv/opencv_contrib/issues/1131 but I do not have any > download faults > > The configuration can be found here https://pastebin.com/sGi4Rh0P > > And my emerge configuration https://pastebin.com/Hu57507P > > > I also don't know why xfeature2d needs cuda since it cna be compiled without > it but it appears to be a requirement here Can it be compiled without it? Because when I tried it wanted cuda. That's why I added the requirement.
(In reply to Amy Liffey from comment #1) > (In reply to malcolm.mielle from comment #0) > > Emerging opencv3.3 with cuda and xfeature2d result in > > > > In file included from > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > stitching/include/opencv2/stitching.hpp:49:0, > > from > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > stitching/src/precomp.hpp:59, > > from > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > stitching/src/autocalib.cpp:43: > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: > > opencv2/xfeatures2d/cuda.hpp: No such file or directory > > compilation terminated. > > > > > > It looks a lot like this bug > > https://github.com/opencv/opencv_contrib/issues/1131 but I do not have any > > download faults > > > > The configuration can be found here https://pastebin.com/sGi4Rh0P > > > > And my emerge configuration https://pastebin.com/Hu57507P > > > > > > I also don't know why xfeature2d needs cuda since it cna be compiled without > > it but it appears to be a requirement here > > Can it be compiled without it? Because when I tried it wanted cuda. That's > why I added the requirement. Meaning from version 3.3 it seems to not compile without cuda.
I thought it did, I kinda remember compiling it without it on Fedora, and this comment here made me think it did https://github.com/opencv/opencv_contrib/issues/1131#issuecomment-296099691 Although, I haven't tried again here on gentoo. Will have to figure out how to remove CUDA first and then I can try it :)
(In reply to Amy Liffey from comment #2) > (In reply to Amy Liffey from comment #1) > > (In reply to malcolm.mielle from comment #0) > > > Emerging opencv3.3 with cuda and xfeature2d result in > > > > > > In file included from > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > stitching/include/opencv2/stitching.hpp:49:0, > > > from > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > stitching/src/precomp.hpp:59, > > > from > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > stitching/src/autocalib.cpp:43: > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: > > > opencv2/xfeatures2d/cuda.hpp: No such file or directory > > > compilation terminated. > > > > > > > > > It looks a lot like this bug > > > https://github.com/opencv/opencv_contrib/issues/1131 but I do not have any > > > download faults > > > > > > The configuration can be found here https://pastebin.com/sGi4Rh0P > > > > > > And my emerge configuration https://pastebin.com/Hu57507P > > > > > > > > > I also don't know why xfeature2d needs cuda since it cna be compiled without > > > it but it appears to be a requirement here > > > > Can it be compiled without it? Because when I tried it wanted cuda. That's > > why I added the requirement. > > Meaning from version 3.3 it seems to not compile without cuda. Just built the master branch from github of opencv with only xfeature2d contribution and no others, and without any reference to CUDA in the CMake file :). So it seems to be working fine.
(In reply to malcolm.mielle from comment #4) > (In reply to Amy Liffey from comment #2) > > (In reply to Amy Liffey from comment #1) > > > (In reply to malcolm.mielle from comment #0) > > > > Emerging opencv3.3 with cuda and xfeature2d result in > > > > > > > > In file included from > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > stitching/include/opencv2/stitching.hpp:49:0, > > > > from > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > stitching/src/precomp.hpp:59, > > > > from > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > stitching/src/autocalib.cpp:43: > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: > > > > opencv2/xfeatures2d/cuda.hpp: No such file or directory > > > > compilation terminated. > > > > > > > > > > > > It looks a lot like this bug > > > > https://github.com/opencv/opencv_contrib/issues/1131 but I do not have any > > > > download faults > > > > > > > > The configuration can be found here https://pastebin.com/sGi4Rh0P > > > > > > > > And my emerge configuration https://pastebin.com/Hu57507P > > > > > > > > > > > > I also don't know why xfeature2d needs cuda since it cna be compiled without > > > > it but it appears to be a requirement here > > > > > > Can it be compiled without it? Because when I tried it wanted cuda. That's > > > why I added the requirement. > > > > Meaning from version 3.3 it seems to not compile without cuda. > > Just built the master branch from github of opencv with only xfeature2d > contribution and no others, and without any reference to CUDA in the CMake > file :). So it seems to be working fine. Oki well I am sorry I will look at it and discuss it here :) Thank you
(In reply to Amy Liffey from comment #5) > (In reply to malcolm.mielle from comment #4) > > (In reply to Amy Liffey from comment #2) > > > (In reply to Amy Liffey from comment #1) > > > > (In reply to malcolm.mielle from comment #0) > > > > > Emerging opencv3.3 with cuda and xfeature2d result in > > > > > > > > > > In file included from > > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > > stitching/include/opencv2/stitching.hpp:49:0, > > > > > from > > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > > stitching/src/precomp.hpp:59, > > > > > from > > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > > stitching/src/autocalib.cpp:43: > > > > > /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0/modules/ > > > > > stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: > > > > > opencv2/xfeatures2d/cuda.hpp: No such file or directory > > > > > compilation terminated. > > > > > > > > > > > > > > > It looks a lot like this bug > > > > > https://github.com/opencv/opencv_contrib/issues/1131 but I do not have any > > > > > download faults > > > > > > > > > > The configuration can be found here https://pastebin.com/sGi4Rh0P > > > > > > > > > > And my emerge configuration https://pastebin.com/Hu57507P > > > > > > > > > > > > > > > I also don't know why xfeature2d needs cuda since it cna be compiled without > > > > > it but it appears to be a requirement here > > > > > > > > Can it be compiled without it? Because when I tried it wanted cuda. That's > > > > why I added the requirement. > > > > > > Meaning from version 3.3 it seems to not compile without cuda. > > > > Just built the master branch from github of opencv with only xfeature2d > > contribution and no others, and without any reference to CUDA in the CMake > > file :). So it seems to be working fine. > > Oki well I am sorry I will look at it and discuss it here :) Thank you No need to be sorry, maintaining looks hard (and I never did it so thank you for doing it) :).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d1936a3ab5020aff5327928067b67e0dd31026d commit 6d1936a3ab5020aff5327928067b67e0dd31026d Author: Amy Liffey <amynka@gentoo.org> AuthorDate: 2017-10-31 17:07:39 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2017-10-31 17:08:56 +0000 media-libs/opencv: few cuda fixes - Remove cuda from required_use for xfeatures2d - fix header files have changed between ABIs Suggested-by: malcolm.mielle@protonmail.com Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> Closes: https://bugs.gentoo.org/636030 Closes: https://bugs.gentoo.org/636008 Package-Manager: Portage-2.3.8, Repoman-2.3.1 media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 +++++++++++++++++++++++++++++++ 1 file changed, 454 insertions(+)
(In reply to Larry the Git Cow from comment #7) > The bug has been closed via the following commit(s): > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > Author: Amy Liffey <amynka@gentoo.org> > AuthorDate: 2017-10-31 17:07:39 +0000 > Commit: Amy Liffey <amynka@gentoo.org> > CommitDate: 2017-10-31 17:08:56 +0000 > > media-libs/opencv: few cuda fixes > > - Remove cuda from required_use for xfeatures2d > - fix header files have changed between ABIs > > Suggested-by: malcolm.mielle@protonmail.com > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > Closes: https://bugs.gentoo.org/636030 > Closes: https://bugs.gentoo.org/636008 > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > +++++++++++++++++++++++++++++++ > 1 file changed, 454 insertions(+) The initial bug is still present, even with the CUDA dependency removed, when I try to compile opencv with xfeature2d. It complains about a "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp"
(In reply to malcolm.mielle from comment #8) > (In reply to Larry the Git Cow from comment #7) > > The bug has been closed via the following commit(s): > > > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > > Author: Amy Liffey <amynka@gentoo.org> > > AuthorDate: 2017-10-31 17:07:39 +0000 > > Commit: Amy Liffey <amynka@gentoo.org> > > CommitDate: 2017-10-31 17:08:56 +0000 > > > > media-libs/opencv: few cuda fixes > > > > - Remove cuda from required_use for xfeatures2d > > - fix header files have changed between ABIs > > > > Suggested-by: malcolm.mielle@protonmail.com > > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > > > Closes: https://bugs.gentoo.org/636030 > > Closes: https://bugs.gentoo.org/636008 > > > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > > +++++++++++++++++++++++++++++++ > > 1 file changed, 454 insertions(+) > > The initial bug is still present, even with the CUDA dependency removed, > when I try to compile opencv with xfeature2d. It complains about a > "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in > "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/ > modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" But that is the reason why the dependency was there at the first place.
(In reply to Amy Liffey from comment #9) > (In reply to malcolm.mielle from comment #8) > > (In reply to Larry the Git Cow from comment #7) > > > The bug has been closed via the following commit(s): > > > > > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > > > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > > > Author: Amy Liffey <amynka@gentoo.org> > > > AuthorDate: 2017-10-31 17:07:39 +0000 > > > Commit: Amy Liffey <amynka@gentoo.org> > > > CommitDate: 2017-10-31 17:08:56 +0000 > > > > > > media-libs/opencv: few cuda fixes > > > > > > - Remove cuda from required_use for xfeatures2d > > > - fix header files have changed between ABIs > > > > > > Suggested-by: malcolm.mielle@protonmail.com > > > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > > > > > Closes: https://bugs.gentoo.org/636030 > > > Closes: https://bugs.gentoo.org/636008 > > > > > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > > > > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > > > +++++++++++++++++++++++++++++++ > > > 1 file changed, 454 insertions(+) > > > > The initial bug is still present, even with the CUDA dependency removed, > > when I try to compile opencv with xfeature2d. It complains about a > > "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in > > "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/ > > modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" > > But that is the reason why the dependency was there at the first place. I totally misunderstand you I will look at the code then.
(In reply to Amy Liffey from comment #10) > (In reply to Amy Liffey from comment #9) > > (In reply to malcolm.mielle from comment #8) > > > (In reply to Larry the Git Cow from comment #7) > > > > The bug has been closed via the following commit(s): > > > > > > > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > > > > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > > > > Author: Amy Liffey <amynka@gentoo.org> > > > > AuthorDate: 2017-10-31 17:07:39 +0000 > > > > Commit: Amy Liffey <amynka@gentoo.org> > > > > CommitDate: 2017-10-31 17:08:56 +0000 > > > > > > > > media-libs/opencv: few cuda fixes > > > > > > > > - Remove cuda from required_use for xfeatures2d > > > > - fix header files have changed between ABIs > > > > > > > > Suggested-by: malcolm.mielle@protonmail.com > > > > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > > > > > > > Closes: https://bugs.gentoo.org/636030 > > > > Closes: https://bugs.gentoo.org/636008 > > > > > > > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > > > > > > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > > > > +++++++++++++++++++++++++++++++ > > > > 1 file changed, 454 insertions(+) > > > > > > The initial bug is still present, even with the CUDA dependency removed, > > > when I try to compile opencv with xfeature2d. It complains about a > > > "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in > > > "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/ > > > modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" > > > > But that is the reason why the dependency was there at the first place. > > I totally misunderstand you I will look at the code then. No worries, I wouldn't be saying stuff that actually appeared to be wrong, so it's better if you double check what I say :). I've been building opencv3 from source with xfeature2d contrib and WITH_CUDA flag to False and all other cuda flag to False (BUILD_opencv_cudaarithm ...). It does compile fine but when I try to emerge it complains about a file not found which is in xfeature2d of opencv not directly from a cuda dependency, as far as I understand. I can't test it more for now since the cuda dependency of xfeature2d as been added again :).
(In reply to malcolm.mielle from comment #11) > (In reply to Amy Liffey from comment #10) > > (In reply to Amy Liffey from comment #9) > > > (In reply to malcolm.mielle from comment #8) > > > > (In reply to Larry the Git Cow from comment #7) > > > > > The bug has been closed via the following commit(s): > > > > > > > > > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > > > > > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > > > > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > Author: Amy Liffey <amynka@gentoo.org> > > > > > AuthorDate: 2017-10-31 17:07:39 +0000 > > > > > Commit: Amy Liffey <amynka@gentoo.org> > > > > > CommitDate: 2017-10-31 17:08:56 +0000 > > > > > > > > > > media-libs/opencv: few cuda fixes > > > > > > > > > > - Remove cuda from required_use for xfeatures2d > > > > > - fix header files have changed between ABIs > > > > > > > > > > Suggested-by: malcolm.mielle@protonmail.com > > > > > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > > > > > > > > > Closes: https://bugs.gentoo.org/636030 > > > > > Closes: https://bugs.gentoo.org/636008 > > > > > > > > > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > > > > > > > > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > > > > > +++++++++++++++++++++++++++++++ > > > > > 1 file changed, 454 insertions(+) > > > > > > > > The initial bug is still present, even with the CUDA dependency removed, > > > > when I try to compile opencv with xfeature2d. It complains about a > > > > "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in > > > > "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/ > > > > modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" > > > > > > But that is the reason why the dependency was there at the first place. > > > > I totally misunderstand you I will look at the code then. > > No worries, I wouldn't be saying stuff that actually appeared to be wrong, > so it's better if you double check what I say :). I've been building opencv3 > from source with xfeature2d contrib and WITH_CUDA flag to False and all > other cuda flag to False (BUILD_opencv_cudaarithm ...). It does compile > fine but when I try to emerge it complains about a file not found which is > in xfeature2d of opencv not directly from a cuda dependency, as far as I > understand. > > I can't test it more for now since the cuda dependency of xfeature2d as been > added again :). I do have idea why it's happening and the cuda required use is now needed. Fix will come soon. You are also to welcome to send patches. :)
(In reply to Amy Liffey from comment #12) > (In reply to malcolm.mielle from comment #11) > > (In reply to Amy Liffey from comment #10) > > > (In reply to Amy Liffey from comment #9) > > > > (In reply to malcolm.mielle from comment #8) > > > > > (In reply to Larry the Git Cow from comment #7) > > > > > > The bug has been closed via the following commit(s): > > > > > > > > > > > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > > > > > > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > > > > > > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > Author: Amy Liffey <amynka@gentoo.org> > > > > > > AuthorDate: 2017-10-31 17:07:39 +0000 > > > > > > Commit: Amy Liffey <amynka@gentoo.org> > > > > > > CommitDate: 2017-10-31 17:08:56 +0000 > > > > > > > > > > > > media-libs/opencv: few cuda fixes > > > > > > > > > > > > - Remove cuda from required_use for xfeatures2d > > > > > > - fix header files have changed between ABIs > > > > > > > > > > > > Suggested-by: malcolm.mielle@protonmail.com > > > > > > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > > > > > > > > > > > Closes: https://bugs.gentoo.org/636030 > > > > > > Closes: https://bugs.gentoo.org/636008 > > > > > > > > > > > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > > > > > > > > > > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > > > > > > +++++++++++++++++++++++++++++++ > > > > > > 1 file changed, 454 insertions(+) > > > > > > > > > > The initial bug is still present, even with the CUDA dependency removed, > > > > > when I try to compile opencv with xfeature2d. It complains about a > > > > > "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in > > > > > "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/ > > > > > modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" > > > > > > > > But that is the reason why the dependency was there at the first place. > > > > > > I totally misunderstand you I will look at the code then. > > > > No worries, I wouldn't be saying stuff that actually appeared to be wrong, > > so it's better if you double check what I say :). I've been building opencv3 > > from source with xfeature2d contrib and WITH_CUDA flag to False and all > > other cuda flag to False (BUILD_opencv_cudaarithm ...). It does compile > > fine but when I try to emerge it complains about a file not found which is > > in xfeature2d of opencv not directly from a cuda dependency, as far as I > > understand. > > > > I can't test it more for now since the cuda dependency of xfeature2d as been > > added again :). > > I do have idea why it's happening and the cuda required use is now needed. > Fix will come soon. You are also to welcome to send patches. :) There is good reason why whole contrib got experimental we do not have enough man power to patch everything unfortunatelly.
(In reply to Amy Liffey from comment #13) > (In reply to Amy Liffey from comment #12) > > (In reply to malcolm.mielle from comment #11) > > > (In reply to Amy Liffey from comment #10) > > > > (In reply to Amy Liffey from comment #9) > > > > > (In reply to malcolm.mielle from comment #8) > > > > > > (In reply to Larry the Git Cow from comment #7) > > > > > > > The bug has been closed via the following commit(s): > > > > > > > > > > > > > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > > > > > > > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > > > > > > > > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > > Author: Amy Liffey <amynka@gentoo.org> > > > > > > > AuthorDate: 2017-10-31 17:07:39 +0000 > > > > > > > Commit: Amy Liffey <amynka@gentoo.org> > > > > > > > CommitDate: 2017-10-31 17:08:56 +0000 > > > > > > > > > > > > > > media-libs/opencv: few cuda fixes > > > > > > > > > > > > > > - Remove cuda from required_use for xfeatures2d > > > > > > > - fix header files have changed between ABIs > > > > > > > > > > > > > > Suggested-by: malcolm.mielle@protonmail.com > > > > > > > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > > > > > > > > > > > > > Closes: https://bugs.gentoo.org/636030 > > > > > > > Closes: https://bugs.gentoo.org/636008 > > > > > > > > > > > > > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > > > > > > > > > > > > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > > > > > > > +++++++++++++++++++++++++++++++ > > > > > > > 1 file changed, 454 insertions(+) > > > > > > > > > > > > The initial bug is still present, even with the CUDA dependency removed, > > > > > > when I try to compile opencv with xfeature2d. It complains about a > > > > > > "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in > > > > > > "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/ > > > > > > modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" > > > > > > > > > > But that is the reason why the dependency was there at the first place. > > > > > > > > I totally misunderstand you I will look at the code then. > > > > > > No worries, I wouldn't be saying stuff that actually appeared to be wrong, > > > so it's better if you double check what I say :). I've been building opencv3 > > > from source with xfeature2d contrib and WITH_CUDA flag to False and all > > > other cuda flag to False (BUILD_opencv_cudaarithm ...). It does compile > > > fine but when I try to emerge it complains about a file not found which is > > > in xfeature2d of opencv not directly from a cuda dependency, as far as I > > > understand. > > > > > > I can't test it more for now since the cuda dependency of xfeature2d as been > > > added again :). > > > > I do have idea why it's happening and the cuda required use is now needed. > > Fix will come soon. You are also to welcome to send patches. :) > > There is good reason why whole contrib got experimental we do not have > enough man power to patch everything unfortunatelly. I'm still learning everything Gentoo so I have no idea (yet) how to submit patch (or patch stuff up) :P. But when I'll know how to, I'll definitely will try to help if I can :) Thanks for the fixes :) !
(In reply to malcolm.mielle from comment #14) > (In reply to Amy Liffey from comment #13) > > (In reply to Amy Liffey from comment #12) > > > (In reply to malcolm.mielle from comment #11) > > > > (In reply to Amy Liffey from comment #10) > > > > > (In reply to Amy Liffey from comment #9) > > > > > > (In reply to malcolm.mielle from comment #8) > > > > > > > (In reply to Larry the Git Cow from comment #7) > > > > > > > > The bug has been closed via the following commit(s): > > > > > > > > > > > > > > > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > > > > > > > > ?id=6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > > > > > > > > > > > commit 6d1936a3ab5020aff5327928067b67e0dd31026d > > > > > > > > Author: Amy Liffey <amynka@gentoo.org> > > > > > > > > AuthorDate: 2017-10-31 17:07:39 +0000 > > > > > > > > Commit: Amy Liffey <amynka@gentoo.org> > > > > > > > > CommitDate: 2017-10-31 17:08:56 +0000 > > > > > > > > > > > > > > > > media-libs/opencv: few cuda fixes > > > > > > > > > > > > > > > > - Remove cuda from required_use for xfeatures2d > > > > > > > > - fix header files have changed between ABIs > > > > > > > > > > > > > > > > Suggested-by: malcolm.mielle@protonmail.com > > > > > > > > Submitted-by: Serge Gavrilov <serge@pdmi.ras.ru> > > > > > > > > > > > > > > > > Closes: https://bugs.gentoo.org/636030 > > > > > > > > Closes: https://bugs.gentoo.org/636008 > > > > > > > > > > > > > > > > Package-Manager: Portage-2.3.8, Repoman-2.3.1 > > > > > > > > > > > > > > > > media-libs/opencv/opencv-3.3.0-r3.ebuild | 454 > > > > > > > > +++++++++++++++++++++++++++++++ > > > > > > > > 1 file changed, 454 insertions(+) > > > > > > > > > > > > > > The initial bug is still present, even with the CUDA dependency removed, > > > > > > > when I try to compile opencv with xfeature2d. It complains about a > > > > > > > "opencv2/xfeatures2d/cuda.hpp" file missing even though it present in > > > > > > > "/var/tmp/portage/media-libs/opencv-3.3.0-r3/work/opencv_contrib-3.3.0/ > > > > > > > modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" > > > > > > > > > > > > But that is the reason why the dependency was there at the first place. > > > > > > > > > > I totally misunderstand you I will look at the code then. > > > > > > > > No worries, I wouldn't be saying stuff that actually appeared to be wrong, > > > > so it's better if you double check what I say :). I've been building opencv3 > > > > from source with xfeature2d contrib and WITH_CUDA flag to False and all > > > > other cuda flag to False (BUILD_opencv_cudaarithm ...). It does compile > > > > fine but when I try to emerge it complains about a file not found which is > > > > in xfeature2d of opencv not directly from a cuda dependency, as far as I > > > > understand. > > > > > > > > I can't test it more for now since the cuda dependency of xfeature2d as been > > > > added again :). > > > > > > I do have idea why it's happening and the cuda required use is now needed. > > > Fix will come soon. You are also to welcome to send patches. :) > > > > There is good reason why whole contrib got experimental we do not have > > enough man power to patch everything unfortunatelly. > > I'm still learning everything Gentoo so I have no idea (yet) how to submit > patch (or patch stuff up) :P. But when I'll know how to, I'll definitely > will try to help if I can :) > > Thanks for the fixes :) ! If you need any help getting into it or have questions don't be afraid to contact me on email or irc. :) Thanks for reporting the bug i will try my best :)
I've hit this bug as well on two identical machines. /var/tmp/portage/media-libs/opencv-3.3.0-r5/work/opencv-3.3.0/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.h pp: No such file or directory # include "opencv2/xfeatures2d/cuda.hpp" ^ compilation terminated.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=488d9073c92dd15c8b67506993c90c595d039bee commit 488d9073c92dd15c8b67506993c90c595d039bee Author: Amy Liffey <amynka@gentoo.org> AuthorDate: 2019-01-16 19:30:15 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2019-01-16 19:42:14 +0000 media-libs/opencv: remove old versions 3.2.0, 3.3.0, 3.4.1-r2 Closes: https://bugs.gentoo.org/630438 Closes: https://bugs.gentoo.org/637080 Closes: https://bugs.gentoo.org/657076 Closes: https://bugs.gentoo.org/636030 Closes: https://bugs.gentoo.org/661674 Closes: https://bugs.gentoo.org/658568 Signed-off-by: Amy Liffey <amynka@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.11 media-libs/opencv/Manifest | 5 - .../files/opencv-3.1.0-find-libraries-fix.patch | 48 -- .../opencv/files/opencv-3.1.0-java-magic.patch | 47 -- ...cv-3.2.0-contrib_xfeatures2d-autodownload.patch | 10 - .../opencv/files/opencv-3.2.0-cpu-mno-sse2.patch | 11 - .../opencv-3.2.0-fix_ussage_cpu_instructions.patch | 64 --- media-libs/opencv/files/opencv-3.2.0-gcc-6.0.patch | 11 - media-libs/opencv/files/opencv-3.2.0-vtk.patch | 11 - .../files/opencv-3.3.0-contrib-xfeatures2d.patch | 19 - .../opencv/files/opencv-3.3.0-cuda9-cmake.patch | 87 ---- .../files/opencv-3.3.0-cuda9-compute20.patch | 21 - .../opencv/files/opencv-3.3.0-cuda9-saturate.patch | 41 -- media-libs/opencv/opencv-3.2.0-r4.ebuild | 369 --------------- media-libs/opencv/opencv-3.3.0-r6.ebuild | 465 ------------------- media-libs/opencv/opencv-3.4.1-r2.ebuild | 497 --------------------- 15 files changed, 1706 deletions(-)
The problem is still there with opencv-3.4.1 (the main version in gentoo for the last year). I dont understand if xfeatures2d actually requires cuda or not. If yes, then the ebuild should declare this dependancy. If not, then we actually have a compilation bug.. haven't we ?