CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_nppi_LIBRARY (ADVANCED)
Created attachment 513734 [details] complete build log
Created attachment 513736 [details] Other info -> % emerge -pqv '=media-libs/opencv-3.3.0-r4::gentoo' [ebuild R ] media-libs/opencv-3.3.0-r4 USE="contrib cuda eigen ffmpeg gtk opencl openexr opengl openmp png python qt5 tesseract threads tiff v4l vaapi webp xine -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d -debug -examples -gdal -gflags -glog -gphoto2 -gstreamer -ieee1394 (-ipp) -java -jpeg -jpeg2k -lapack -libav -pch -testprograms -vtk" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_5"
Created attachment 514866 [details, diff] opencv-3.3.0-r4.patch I found this patch here : https://forums.gentoo.org/viewtopic-p-8142970.html?sid=1ae416c5b143176cb4b001b8cdc1723c But I get another error : nvcc fatal : Unsupported gpu architecture 'compute_20' Now this patch is supposed to solve the second error, but I can't get the patch to actually apply. Ebuild.sh stops when applying the second patch. https://github.com/opencv/opencv/pull/9769/commits/5669ee815bf724a1f3bf12429a07e6199154e230
Created attachment 514868 [details, diff] fix_nvcc.patch The second patch (fix_nvcc.patch)
For more, visit this thread : https://forums.gentoo.org/viewtopic-p-8142970.html?sid=1ae416c5b143176cb4b001b8cdc1723c
*** This bug has been marked as a duplicate of bug 637078 ***
Created attachment 515208 [details] Rejects from fix_nvcc.patch I applied both patches to ebuild but receive rejects from fix_nvcc.patch in the file in attachement. The error is: * Applying fix_nvcc.patch ... 3 out of 3 hunks FAILED -- saving rejects to file modules/cudev/include/opencv2/cudev/util/saturate_cast.hpp.rej [ !! ] * ERROR: media-libs/opencv-3.3.0-r4::gentoo failed (prepare phase): * patch -p1 failed with /etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch * * Call stack: * ebuild.sh, line 124: Called src_prepare * environment, line 6447: Called cmake-utils_src_prepare * environment, line 1300: Called default_src_prepare * phase-functions.sh, line 918: Called __eapi6_src_prepare * environment, line 375: Called eapply_user * environment, line 1641: Called eapply '/etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch' * environment, line 1611: Called _eapply_patch '/etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch' * environment, line 1549: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch' * isolated-functions.sh, line 117: Called die