Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error with multiband_blend.cu, compiling Opencv 3.2.0 on Ubuntu 15.10, with CUDA 7.5

Hello, In my Ubuntu 15.10, with CUDA 7.5, gpu GTX 750 Ti, with opencv and opencv_contrib from git clone, I tried to compile Opencv 3.2.0 many times and after many setttings finally always this error appeared at 74% approximately:

[ 74%] Built target opencv_optflow [ 74%] Generating opencl_kernels_stitching.cpp, opencl_kernels_stitching.hpp [ 74%] Building NVCC (Device) object modules/stitching/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_build_warp_maps.cu.o Scanning dependencies of target opencv_structured_light Linking CXX executable ../../bin/opencv_test_ximgproc [ 74%] Building NVCC (Device) object modules/stitching/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_multiband_blend.cu.o Linking CXX executable ../../bin/opencv_test_aruco [ 74%] Built target opencv_test_aruco [ 74%] Built target opencv_test_ximgproc [ 74%] Building CXX object modules/structured_light/CMakeFiles/opencv_structured_light.dir/src/graycodepattern.cpp.o Scanning dependencies of target opencv_perf_photo /home/elaura/Documentos/App/opencv/modules/stitching/src/cuda/multiband_blend.cu(93): error: Within a __device__/__global__ function, only __shared__ variables may be marked "static"

1 error detected in the compilation of "/tmp/tmpxft_0000270e_00000000-6_multiband_blend.cpp1.ii". CMake Error at cuda_compile_generated_multiband_blend.cu.o.cmake:266 (message): Error generating file /home/elaura/Documentos/App/opencv/release/modules/stitching/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_multiband_blend.cu.o

Scanning dependencies of target opencv_test_photo modules/stitching/CMakeFiles/opencv_stitching.dir/build.make:63: recipe for target 'modules/stitching/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_multiband_blend.cu.o' failed make[2]: * [modules/stitching/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_multiband_blend.cu.o] Error 1 make[2]: *

I was searching possible solutions on the web and nothing, i don't get the relation with compiling opencv.

It seems a problem when it try to generate the multiband_blend function, i need to know why i can't have a Opencv 3.2.0 in my machine. Next the details of the CMakeCache.txt:

VTK support is disabled. Incompatible combination: OpenCV + Qt5 and VTK ver.5.8.0 + Qt4
-- Found VTK ver. 5.8.0 (usefile: /usr/lib/vtk-5.8/UseVTK.cmake)
-- Caffe:   YES
-- Protobuf:   YES
-- Glog:   YES
-- Module opencv_dnn_modern disabled because CMake version is less than 3.2
-- freetype2:   YES
-- harfbuzz:    YES
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
-- freetype2:   YES
-- harfbuzz:    YES
-- checking for modules 'tesseract;lept'
--   package 'tesseract' not found
--   package 'lept' not found
-- Tesseract:   NO
-- Caffe:   YES
-- Protobuf:   YES
-- Glog:   YES
-- Check contents of vgg_generated_48.i ...
-- Check contents of vgg_generated_64.i ...
-- Check contents of vgg_generated_80.i ...
-- Check contents of vgg_generated_120.i ...
-- Check contents of boostdesc_bgm.i ...
-- Check contents of boostdesc_bgm_bi.i ...
-- Check contents of boostdesc_bgm_hd.i ...
-- Check contents of boostdesc_binboost_064.i ...
-- Check contents of boostdesc_binboost_128.i ...
-- Check contents of boostdesc_binboost_256.i ...
-- Check contents of boostdesc_lbgm.i ...
-- 
-- General configuration for OpenCV 3.2.0-dev =====================================
--   Version control:               3.2.0-197-g9053839
-- 
--   Extra modules:
--     Location (extra):            /home/elaura/Documentos/App/opencv_contrib/modules
--     Version control (extra):     3.2.0-89-g06752e5
-- 
--   Platform:
--     Timestamp:                   2017-02-18T00:43:08Z
--     Host:                        Linux 3.19.0-69-generic x86_64
--     CMake:                       3.0.2
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               RELEASE
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                /usr/bin/c++  (ver 4.9.2)
--     C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/cc
--     C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):
--     Linker flags (Debug):
--     ccache:                      NO
--     Precompiled headers:         YES
--     Extra dependencies:          Qt5::Test Qt5::Concurrent /usr/lib/x86_64-linux-gnu/libwebp.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so gstvideo-1.0 gstapp-1.0 gstbase-1.0 gstriff-1.0 gstpbutils-1.0 gstreamer-1.0 gobject-2.0 glib-2.0 dc1394 vtkCommon vtkFiltering vtkImaging vtkGraphics vtkGenericFiltering vtkIO vtkRendering vtkVolumeRendering vtkHybrid vtkWidgets vtkParallel vtkInfovis vtkGeovis vtkViews vtkCharts /usr/lib/libcaffe.so /usr/lib/x86_64-linux-gnu/libglog.so /usr/lib/x86_64-linux-gnu/libprotobuf.so Qt5::Core Qt5::Gui Qt5::Widgets freetype harfbuzz /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so /usr/lib/x86_64-linux-gnu/libpthread.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libm.so dl m pthread rt tbb cudart nppc nppi npps cublas cufft -L/usr/local/cuda-7.5/lib64
--     3rdparty dependencies:       libprotobuf
-- 
--   OpenCV modules:
--     To be built:                 cudev core cudaarithm flann hdf imgproc ml reg surface_matching video viz cudabgsegm cudafilters cudaimgproc cudawarping dnn freetype fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cnn_3dobj cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo cvv datasets rgbd stereo superres tracking videostab xfeatures2d ximgproc aruco optflow phase_unwrapping stitching structured_light java python2
        dfDisabled:                    world contrib_world
    --     Disabled by dependency:      -
    --     Unavailable:                 python3 dnn_modern matlab sfm
    -- 
    --   GUI: 
    --     QT 5.x:                      YES (ver 5.4.1)
    --     QT OpenGL support:           NO
    --     OpenGL support:              NO
    --     VTK support:          

       YES (ver 5.8.0)
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
--     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
--     WEBP:                        /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202)
--     PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.51)
--     TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.3)
--     JPEG 2000:                   /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
--     OpenEXR:                     /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 1.6.1)
--     GDAL:                        NO
--     GDCM:                        NO
-- 
--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  YES (ver 2.2.3)
--     FFMPEG:                      NO
--       avcodec:                   NO
--       avformat:                  NO
--       avutil:                    NO
--       swscale:                   NO
--       avresample:                NO
--     GStreamer:                   
--       base:                      YES (ver 1.6.0)
--       video:                     YES (ver 1.6.0)
--       app:                       YES (ver 1.6.0)
--       riff:                      YES (ver 1.6.0)
--       pbutils:                   YES (ver 1.6.0)
--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO
--     OpenNI2:                     NO
--     PvAPI:                       NO
--     GigEVisionSDK:               NO
--     Aravis SDK:                  NO
--     UniCap:                      NO
--     UniCap ucil:                 NO
--     V4L/V4L2:                    NO/YES
--     XIMEA:                       NO
--     Xine:                        NO
--     gPhoto2:                     NO
-- 
--   Parallel framework:            TBB (ver 4.3 interface 8004)
-- 
--   Other third-party libraries:
--     Use IPP:                     9.0.1 [9.0.1]
--          at:                     /home/elaura/Documentos/App/opencv/release/3rdparty/ippicv/ippicv_lnx
--     Use IPP Async:               NO
--     Use VA:                      NO
--     Use Intel VA-API/OpenCL:     NO
--     Use Lapack:                  NO
--     Use Eigen:                   YES (ver 3.2.2)
--     Use Cuda:                    YES (ver 7.5)
--     Use OpenCL:                  NO
--     Use OpenVX:                  NO
--     Use custom HAL:              NO
-- 
--   NVIDIA CUDA
--     Use CUFFT:                   YES
--     Use CUBLAS:                  YES
--     USE NVCUVID:                 NO
--     NVIDIA GPU arch:             50
--     NVIDIA PTX archs:            50
--     Use fast math:               YES
-- 
--   Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.9)
--     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.9)
--     numpy:                       /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.2)
--     packages path:               /usr/local/lib/python2.7/dist-packages
-- 
--   Python 3:
--     Interpreter:                 /usr/bin/python3.4 (ver 3.4.3)
-- 
--   Python (for build):            /usr/bin/python2.7
-- 
--   Java:
--     ant:                         /usr/bin/ant (ver 1.9.4)
--     JNI:                         /usr/lib/jvm/java-7-openjdk-amd64/include /usr/lib/jvm/java-7-openjdk-amd64/include /usr/lib/jvm/java-7-openjdk-amd64/include
--     Java wrappers:               YES
--     Java tests:                  YES
-- 
--   Matlab:                        NO
-- 
--   Documentation:
--     Doxygen:                     NO
-- 
--   Tests and samples:
--     Tests:                       YES
--     Performance tests:           YES
--     C/C++ Examples:              YES
-- 
--   Install path:                  /usr/local/lib
-- 
--   cvconfig.h is in:              /home/elaura/Documentos/App/opencv/release

Thank you.