mdegans / nano_build_opencv

Build OpenCV on Nvidia Jetson Nano
MIT License
508 stars 200 forks source link

modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/all] Error 2 #2

Closed mdegans closed 5 years ago

mdegans commented 5 years ago

This is likely caused by not running sudo apt-get update before build.

[ 94%] Built target pch_Generate_opencv_cudaoptflow
[ 94%] Building NVCC (Device) object modules/cudaoptflow/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_tvl1flow.cu.o
[ 94%] Building NVCC (Device) object modules/cudaoptflow/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_farneback.cu.o
[ 94%] Building NVCC (Device) object modules/cudaoptflow/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_pyrlk.cu.o
Killed
CMake Error at cuda_compile_1_generated_pyrlk.cu.o.Release.cmake:279 (message):
  Error generating file
  /tmp/build_opencv/opencv/build/modules/cudaoptflow/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_pyrlk.cu.o

modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/build.make:70: recipe for target 'modules/cudaoptflow/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_pyrlk.cu.o' failed
make[2]: *** [modules/cudaoptflow/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_pyrlk.cu.o] Error 1
CMakeFiles/Makefile2:9900: recipe for target 'modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/all' failed
make[1]: *** [modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
mdegans commented 5 years ago

This ended up being related to memory usage during the build.