M
M
mr_blaze2018-03-25 12:59:13
Python
mr_blaze, 2018-03-25 12:59:13

Issue when building OpenCV on Linux Ubuntu 16.04?

Hello! After reinstalling the system, I had to install OpenCV again. Again I do everything according to the guide , but there is a problem:
on the step

4. Compiling and installing OpenCV
make -j4Error when building with command
[ 22%] Built target pch_Generate_opencv_stitching
Scanning dependencies of target pch_Generate_opencv_videostab
[ 22%] Generating precomp.hpp
[ 22%] Generating precomp.hpp.gch/opencv_videostab_Release.gch
[ 22%] Built target pch_Generate_opencv_test_superres
Scanning dependencies of target pch_Generate_opencv_test_videostab
[ 22%] Generating test_precomp.hpp
[ 22%] Generating test_precomp.hpp.gch/opencv_test_videostab_Release.gch
[ 22%] Built target pch_Generate_opencv_perf_superres
[ 22%] Processing OpenCL kernels (core)
[ 22%] 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_60'
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:206 (message):
  Error generating
  /home/mr-blaze/Документы/builds/opencv-3.4.1/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: ошибка выполнения рецепта для цели «modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o»
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Ошибка 1
CMakeFiles/Makefile2:1734: ошибка выполнения рецепта для цели «modules/core/CMakeFiles/opencv_core.dir/all»
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Ошибка 2
make[1]: *** Ожидание завершения заданий…
[ 22%] Built target pch_Generate_opencv_superres
[ 22%] Built target pch_Generate_opencv_videostab
[ 22%] Built target pch_Generate_opencv_test_videostab
Makefile:160: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2

but I have graphics from AMD, not from Nvidia and CUDA does not work for me!
What to do?
PS installation from Ubuntu's repositories is not suitable!
PSS here is the whole log: https://www.dropbox.com/s/00jno7uvn1ccugs/%D0%BB%D...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2018-03-25
@Ni55aN

When calling cmake add-D WITH_CUDA=OFF

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question