open-mmlab / mmaction

An open-source toolbox for action understanding based on PyTorch
https://open-mmlab.github.io/
Apache License 2.0
1.86k stars 353 forks source link

xfeatures2d problem when i make opencv #24

Closed isalirezag closed 5 years ago

isalirezag commented 5 years ago

im stuck in the Build OpenCV 4.1.0 from scratch (due to some custom settings) I am trying to build the opencv but this happens over and over


/home/alireza/Desktop/mmaction/third_party/opencv_contrib-4.1.0/modules/xfeatures2d/src/boostdesc.cpp:653:37: fatal error: boostdesc_bgm.i: No such file or directory
compilation terminated.
modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/build.make:425: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o] Error 1
CMakeFiles/Makefile2:14075: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all' failed
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
isalirezag commented 5 years ago

here is the whole thing:

[ 75%] Built target opencv_cudastereo
[ 75%] Processing OpenCL kernels (rgbd)
Scanning dependencies of target opencv_rgbd
[ 75%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/depth_cleaner.cpp.o
[ 75%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/depth_registration.cpp.o
[ 75%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/depth_to_3d.cpp.o
[ 75%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/fast_icp.cpp.o
[ 75%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/kinfu.cpp.o
[ 75%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/kinfu_frame.cpp.o
[ 75%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/linemod.cpp.o
[ 76%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/normal.cpp.o
Scanning dependencies of target opencv_shape
[ 77%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/aff_trans.cpp.o
[ 77%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/emdL1.cpp.o
[ 77%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/odometry.cpp.o
[ 77%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/haus_dis.cpp.o
[ 77%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/hist_cost.cpp.o
[ 77%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/sc_dis.cpp.o
[ 77%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/plane.cpp.o
[ 77%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/tsdf.cpp.o
[ 77%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/tps_trans.cpp.o
[ 77%] Linking CXX shared library ../../lib/libopencv_shape.so
[ 77%] Built target opencv_shape
[ 77%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/utils.cpp.o
Scanning dependencies of target opencv_structured_light
[ 77%] Building CXX object modules/structured_light/CMakeFiles/opencv_structured_light.dir/src/graycodepattern.cpp.o
[ 77%] Building CXX object modules/structured_light/CMakeFiles/opencv_structured_light.dir/src/sinusoidalpattern.cpp.o
[ 77%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/opencl_kernels_rgbd.cpp.o
[ 77%] Linking CXX shared library ../../lib/libopencv_rgbd.so
[ 77%] Built target opencv_rgbd
[ 78%] Processing OpenCL kernels (video)
Scanning dependencies of target opencv_video
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_KNN.cpp.o
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_gaussmix2.cpp.o
[ 78%] Linking CXX shared library ../../lib/libopencv_structured_light.so
[ 78%] Built target opencv_structured_light
[ 78%] Processing OpenCL kernels (xfeatures2d)
[ 78%] Building NVCC (Device) object modules/xfeatures2d/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_surf.cu.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/camshift.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/dis_flow.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
In file included from /usr/local/cuda-9.0/include/cuda_runtime_api.h:136:0,
                 from /usr/local/cuda-9.0/include/channel_descriptor.h:62,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:90,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/cuda_device_runtime_api.h:61:6: warning: "__CUDA_ARCH__" is not defined [-Wundef]
 #if (__CUDA_ARCH__ >= 350) && !defined(__CUDADEVRT_INTERNAL__)
      ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/ecc.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/kalman.cpp.o
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/lkpyramid.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowgf.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optical_flow_io.cpp.o
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/variational_refinement.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/opencl_kernels_video.cpp.o
[ 78%] Linking CXX shared library ../../lib/libopencv_video.so
[ 78%] Built target opencv_video
[ 78%] Processing OpenCL kernels (ximgproc)
Scanning dependencies of target opencv_ximgproc
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/adaptive_manifold_filter_n.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/anisodiff.cpp.o
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/bilateral_texture_filter.cpp.o
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/brightedges.cpp.o
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/deriche_filter.cpp.o
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/disparity_filters.cpp.o
In file included from /usr/local/cuda-9.0/include/cuda_runtime_api.h:136:0,
                 from /usr/local/cuda-9.0/include/channel_descriptor.h:62,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:90,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/cuda_device_runtime_api.h:61:6: warning: "__CUDA_ARCH__" is not defined [-Wundef]
 #if (__CUDA_ARCH__ >= 350) && !defined(__CUDADEVRT_INTERNAL__)
      ^
In file included from /usr/local/cuda-9.0/include/crt/common_functions.h:258:0,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.h:8891:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.h:9659:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
In file included from /usr/local/cuda-9.0/include/crt/math_functions.h:10198:0,
                 from /usr/local/cuda-9.0/include/crt/common_functions.h:258,
                 from /usr/local/cuda-9.0/include/common_functions.h:50,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/math_functions.hpp:157:5: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if _GLIBCXX_MATH_H && __cplusplus >= 201103L
     ^
/usr/local/cuda-9.0/include/crt/math_functions.hpp:548:7: warning: "_GLIBCXX_MATH_H" is not defined [-Wundef]
 #if !(_GLIBCXX_MATH_H && __cplusplus >= 201103L)
       ^
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/domain_transform.cpp.o
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/dtfilter_cpu.cpp.o
Scanning dependencies of target opencv_xfeatures2d
[ 78%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/affine_feature2d.cpp.o
[ 78%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o
/home/alireza/Desktop/mmaction/third_party/opencv_contrib-4.1.0/modules/xfeatures2d/src/boostdesc.cpp:653:37: fatal error: boostdesc_bgm.i: No such file or directory
compilation terminated.
modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/build.make:87: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/edgeaware_filters_common.cpp.o
CMakeFiles/Makefile2:14075: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all' failed
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/edgeboxes.cpp.o
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/edgepreserving_filter.cpp.o
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/estimated_covariance.cpp.o
[ 78%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fast_hough_transform.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fast_line_detector.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fbs_filter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fgs_filter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fourier_descriptors.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/graphsegmentation.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/guided_filter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/joint_bilateral_filter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/l0_smooth.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/lsc.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/niblack_thresholding.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/paillou_filter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/peilin.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/quaternion.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/ridgedetectionfilter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/rolling_guidance_filter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/run_length_morphology.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/seeds.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/selectivesearchsegmentation.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/slic.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/sparse_match_interpolators.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/structured_edge_detection.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/thinning.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/weighted_median_filter.cpp.o
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/opencl_kernels_ximgproc.cpp.o
[ 80%] Linking CXX shared library ../../lib/libopencv_ximgproc.so
[ 80%] Built target opencv_ximgproc
Scanning dependencies of target opencv_cudafilters
[ 80%] Building CXX object modules/cudafilters/CMakeFiles/opencv_cudafilters.dir/src/filtering.cpp.o
[ 80%] Linking CXX shared library ../../lib/libopencv_cudafilters.so
[ 80%] Built target opencv_cudafilters
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
alireza@alireza:~/Desktop/mmaction/third_party/opencv-4.1.0/build$ 
zhaoyue-zephyrus commented 5 years ago

@isalirezag This error is related to OpenCV. Please first try to Google it first and most of them will be common issues raised by other OpenCV users. For example, refer to https://github.com/opencv/opencv_contrib/issues/1301 and the contributor's comment.

This may because the cmake didn't download this file readily. Please check the cmake log. A workaround would be download it manually and copy it to the destination (opencv_contrib/modules/xfeatures2d/src/).

isalirezag commented 5 years ago

found the solution here: https://github.com/opencv/opencv_contrib/issues/1131