Ask Your Question

help building opencv with CUDA Jetson TK1

asked 2014-07-29 21:45:34 -0500

doc gravatar image

how do I fix this error? I was close to getting this built.


make stops here:

[ 4%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./ nvcc fatal : Unsupported gpu architecture 'compute_11' CMake Error at (message): Error generating /home/ubuntu/opencv/release/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./

make[2]: * [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2

edit retag flag offensive close merge delete


You have to manually specify your compute capability, which should be 3.0 since it is the Kepler architecture which I can read from the specs. Just add the following command to your CMAKE arguments:


And the other architectures should be completely ignored.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-07-30 04:32:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-07 06:50:17 -0500

TechWizard gravatar image

I got the same error at first. After adding the following cmake cache entries, the compilation of OpenCV 3.0.0-beta was successful.


Note: I have Linux for Tegra R21.3 with CUDA 6.5 and ffmpeg-2.5.4* installed on my Jetson TK1 dev-board.

*Don't forget to compile with the --enable-shared config option!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-07-29 21:45:34 -0500

Seen: 3,571 times

Last updated: Jul 29 '14