Я пытался установить opencv-3.4.0 в соответствии с инструкциями https://github.com/TadasBaltrusaitis/OpenFace/wiki/Unix-Installation,, но когда я закончил cmake
,, а затем попытался make -j8
, он потерпел неудачу на 30%.Кто-нибудь знает решение и может мне помочь?Большое спасибо.Все требовательные зависимости для OpenCV были установлены.
[ 29%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o
[ 29%] Built target pch_Generate_opencv_test_videostab
[ 30%] Built target pch_Generate_opencv_videostab
[ 30%] Built target pch_Generate_opencv_perf_superres
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /home/zq/opencv-3.4.0/modules/cudev/include/opencv2/cudev/util/tuple.hpp:50:0,
from /home/zq/opencv-3.4.0/modules/cudev/include/opencv2/cudev.hpp:55,
from /home/zq/opencv-3.4.0/modules/core/src/cuda/gpu_mat.cu:52:
/home/zq/opencv-3.4.0/modules/cudev/include/opencv2/cudev/util/detail/tuple.hpp:49:26: fatal error: thrust/tuple.h: No such file or directory
compilation terminated.
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:208 (message):
Error generating
/home/zq/opencv-3.4.0/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o
modules/core/CMakeFiles/opencv_core.dir/build.make:63: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1
CMakeFiles/Makefile2:1730: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2