install opencv 2.4.10 with issue :"nvcc fatal : Unsupported gpu architecture 'compute_11&

Posted 幻艺视界

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了install opencv 2.4.10 with issue :"nvcc fatal : Unsupported gpu architecture 'compute_11&相关的知识,希望对你有一定的参考价值。

issue:

nvcc fatal   : Unsupported gpu architecture ‘compute_11‘
CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:206 (message):
  Error generating
/home/smie/Documents/opencv2.4.11/build/modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_gene

rated_matrix_operations.cu.o
make[2]: ***
[modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

 

solution:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON
-D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=OFF -D WITH_OPENGL=ON -D BUILD_TIFF=ON ..

以上是关于install opencv 2.4.10 with issue :"nvcc fatal : Unsupported gpu architecture 'compute_11&的主要内容,如果未能解决你的问题,请参考以下文章

linux下编译opencv

Code::Blocks 中的 OpenCV:应用程序无法正确启动 (0xc00000be)

android mk 预编译库

Opencv 2.4.10 +VS2010 项目配置记录

安装 openCV 2.4.10

VS2010和opencv-2.4.10GDAL