CMake Error: The source directory does not exist

For example CMake Error: The source directory "/tmp/xxx/opencv-superpixel_SEEDS/CMAKE_INSTALL_PREFIX=/tmp/xxx/opencv-superpixel_SEEDS" does not exist but both the directory and the file CMakeLists.txt do exist.

Did you forget to give the source file directory?

Work around

Try
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=./ ./
NB this installs on top of the current working directory

CUDA 7.0 nvcc fatal : Unsupported gpu architecture 'compute_11'

nvcc fatal   : Unsupported gpu architecture 'compute_11'
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:208 (message):
  Error generating
  /tmp/xxx/opencv-superpixel_SEEDS/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o
Nuffa says CUDA 7 no longer supports compute levels 1, 1.1, 1.2, or 1.3, i.e. if have CUDA 7 or later you need GPU with compute level 2.0 or later.

Problem is compute levels are hard coded. So include version which do not work. Also the list does not include anything more recent than nVidia compute capability 3.5, eg GeForce GTX 745 is missing.

Work around

Edit cmake/OpenCVDetectCUDA.cmake so that if(${CUDA_VERSION} VERSION_LESS "7.0") else() __cuda_arch_bin excludes 1.1 1.2 1.3 and add 5.0

Use CUDA 6 (not sure if 6.5 is ok).


W.B.Langdon Back 7 April 2016