Problem compiling Opencv 2.4.8 - cudaarithm.a linking
I'm trying to build Opencv 2.48 on RHEL 6.4 as a static library to use with Java. I'm running kernel Linux 2.6.32=358.el6.x86_64. When I run "make -j8" it compiles up until ~ 38% and then throws the following error when linking the cudaarithm.a library. I currently have CUDA 5.5 installed with a recent GTX 680 graphics card. I'm using CUDA on a regular basis and it's working extremely well.
Scanning dependencies of target opencv_cudaarithm [ 38%] Building CXX object modules/cudaarithm/CMakeFiles/opencv_cudaarithm.dir/src/reductions.cpp.o [ 39%] [ 39%] [ 39%] Building CXX object modules/cudaarithm/CMakeFiles/opencv_cudaarithm.dir/src/element_operations.cpp.o Building CXX object modules/cudaarithm/CMakeFiles/opencv_cudaarithm.dir/src/arithm.cpp.o Building CXX object modules/cudaarithm/CMakeFiles/opencv_cudaarithm.dir/src/core.cpp.o Linking CXX static library ../../lib/libopencv_cudaarithm.a [ 39%] Built target opencv_cudaarithm make: * [all] Error 2
I have a couple of missing dependencies but none that I would suspect to be involved in the CUDA build.
Here's the output of cake -DBUILD_SHARED_LIBS=OFF ..
cmake -DBUILD_SHARED_LIBS=OFF .. -- Detected version of GNU GCC: 44 (404) -- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.2.3", minimum required is "1.2.3") -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3") -- checking for module 'gstreamer-base-1.0' -- package 'gstreamer-base-1.0' not found -- checking for module 'gstreamer-video-1.0' -- package 'gstreamer-video-1.0' not found -- checking for module 'gstreamer-app-1.0' -- package 'gstreamer-app-1.0' not found -- checking for module 'gstreamer-riff-1.0' -- package 'gstreamer-riff-1.0' not found -- checking for module 'gstreamer-pbutils-1.0' -- package 'gstreamer-pbutils-1.0' not found -- checking for module 'libdc1394-2' -- package 'libdc1394-2' not found -- checking for module 'libdc1394' -- package 'libdc1394' not found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- Looking for libavformat/avformat.h -- Looking for libavformat/avformat.h - found -- Looking for ffmpeg/avformat.h -- Looking for ffmpeg/avformat.h - not found -- CUDA detected: 5.5 -- CUDA NVCC target flags: -gencode;arch=compute_11,code=sm_11;-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30 -- Update variable PYTHON_LIBRARY from environment: /usr/local/canopy/appdata/canopy-1.3.0.1715.rh5-x86_64/lib -- Update variable PYTHON_INCLUDE_DIR from environment: /usr/local/canopy/appdata/canopy-1.3.0.1715.rh5-x86_64/include -- Found apache ant 1.7.1: /usr/bin/ant -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or set $VTK_DIR enviroment variable to VTK install subdirectory with VTKConfig.cmake file (for windows)
-- General configuration for OpenCV 3.0.0-dev =====================================
-- Version control: 2.4.8-3568-g0ce8f1d
-- Platform: -- Host: Linux 2.6.32-358.el6.x86_64 x86_64 -- CMake: 2.8.12.2 -- CMake generator: Unix ...
You are building master branch (3.0 version) of OpenCV, not 2.4.8.
Did you solve the problem? i've got the same problem
Here, the same problem... Ubuntu 16.04.1 OpenCV 3.2.0-dev
How come??? Wield...