我无法在红帽7.1上编译opencv 2.5
已尝试过各种cmake选项,例如:
cmake -D BUILD_TIFF = ON -D CUDA_GENERATION =自动../ cmake -D BUILD_TIFF = ON -D WITH_CUDA = OFF ../
这是终端输出:
Scanning dependencies of target pch_Generate_opencv_test_videostab
Scanning dependencies of target pch_Generate_opencv_videostab
[ 27%] Built target pch_Generate_opencv_perf_cudaoptflow
[ 27%] Generating precomp.hpp
[ 27%] Generating test_precomp.hpp
[ 27%] Generating precomp.hpp.gch/opencv_videostab_Release.gch
[ 27%] Generating test_precomp.hpp.gch/opencv_test_videostab_Release.gch
[ 27%] Built target pch_Generate_opencv_test_cudaoptflow
[ 27%] Processing OpenCL kernels (core)
[ 27%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o
**nvcc fatal : Unsupported gpu architecture 'compute_52'**
**CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:206 (message):
Error generating**
/home/yioannidis/Downloads/opencv2_5/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o