Open sheikirfan opened 7 years ago
Hi, I believe it's a compatibility issue because you're using OpenCV 3.2. These bindings are strictly for OpenCV 3.1, could you try with this version?
I should've changed CMakeLists.txt
to enforce that, doing this right now.
Operating Environment:
Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty
Steps to reproduce:
$ git clone https://github.com/VisionLabs/torch-opencv.git $ cd torch-opencv $ luarocks make cmake -E make_directory build; cd build; cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/lab/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/lab/torch/install/lib/luarocks/rocks/cv/scm-1"; make -j5
-- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found CUDA: /usr/local/cuda-8.0 (found suitable exact version "8.0") -- Found OpenCV: /usr/local (found suitable version "3.2.0", minimum required is "3.1") -- Found Torch7 in /home/lab/torch/install -- Found CUDA: /usr/local/cuda-8.0 (found version "8.0") -- Modules to wrap: cudaobjdetect, cudastereo, cudaimgproc, cudafeatures2d, cudabgsegm, cudaoptflow, cudafilters, cudawarping, cudacodec, cudaarithm, xphoto, stitching, ximgproc, calib3d, objdetect, video, videoio, superres, photo, optflow, ml, imgproc, flann, features2d, highgui, imgcodecs, -- Configuring done -- Generating done -- Build files have been written to: /home/lab/irfan_experiments/torch-opencv/build Scanning dependencies of target Common [ 3%] Building CXX object CMakeFiles/Common.dir/src/Common.cpp.o Linking CXX shared library lib/libCommon.so [ 3%] Built target Common Scanning dependencies of target CUDACommon Scanning dependencies of target features2d Scanning dependencies of target flann Scanning dependencies of target Classes Scanning dependencies of target calib3d [ 6%] [ 10%] Building CXX object CMakeFiles/features2d.dir/src/features2d.cpp.o [ 17%] [ 20%] [ 20%] Building CXX object CMakeFiles/calib3d.dir/src/calib3d.cpp.o Building CXX object CMakeFiles/Classes.dir/src/Classes.cpp.o Building CXX object CMakeFiles/CUDACommon.dir/src/CUDACommon.cpp.o Building CXX object CMakeFiles/flann.dir/src/flann.cpp.o Linking CXX shared library lib/libCUDACommon.so [ 20%] Built target CUDACommon Scanning dependencies of target highgui [ 24%] Building CXX object CMakeFiles/highgui.dir/src/highgui.cpp.o Linking CXX shared library lib/libClasses.so [ 24%] Built target Classes Scanning dependencies of target imgcodecs [ 27%] Building CXX object CMakeFiles/imgcodecs.dir/src/imgcodecs.cpp.o Linking CXX shared library lib/libcalib3d.so [ 27%] Built target calib3d Scanning dependencies of target imgproc [ 31%] Building CXX object CMakeFiles/imgproc.dir/src/imgproc.cpp.o Linking CXX shared library lib/libflann.so [ 31%] Built target flann Scanning dependencies of target ml [ 34%] Building CXX object CMakeFiles/ml.dir/src/ml.cpp.o Linking CXX shared library lib/libimgcodecs.so Linking CXX shared library lib/libhighgui.so [ 34%] Built target imgcodecs Scanning dependencies of target objdetect [ 34%] Built target highgui Scanning dependencies of target optflow [ 37%] Building CXX object CMakeFiles/objdetect.dir/src/objdetect.cpp.o [ 41%] Building CXX object CMakeFiles/optflow.dir/src/optflow.cpp.o Linking CXX shared library lib/libfeatures2d.so [ 41%] Built target features2d Scanning dependencies of target photo [ 44%] Building CXX object CMakeFiles/photo.dir/src/photo.cpp.o In file included from /usr/local/include/opencv2/core/hal/intrin.hpp:315:0, from /usr/local/include/opencv2/optflow/sparse_matching_gpc.hpp:55, from /usr/local/include/opencv2/optflow.hpp:70, from /home/lab/irfan_experiments/torch-opencv/include/optflow.hpp:4, from /home/lab/irfan_experiments/torch-opencv/src/optflow.cpp:1: /usr/local/include/opencv2/core/hal/intrin_sse.hpp: In function ‘bool cv::hal_baseline::hasSIMD128()’: /usr/local/include/opencv2/core/hal/intrin_sse.hpp:1796:13: error: ‘CV_CPU_HAS_SUPPORT_SSE2’ was not declared in this scope return (CV_CPU_HAS_SUPPORT_SSE2) ? true : false; ^ Linking CXX shared library lib/libimgproc.so make[2]: [CMakeFiles/optflow.dir/src/optflow.cpp.o] Error 1 make[1]: [CMakeFiles/optflow.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 44%] Built target imgproc Linking CXX shared library lib/libml.so [ 44%] Built target ml Linking CXX shared library lib/libobjdetect.so [ 44%] Built target objdetect Linking CXX shared library lib/libphoto.so [ 44%] Built target photo make: [all] Error 2