Ask Your Question

Error in Building cvv module of contrib

asked 2016-05-16 23:31:40 -0500

lama123 gravatar image


I am trying to build the contrib module cvv of opencv 3.1. But i get a linking error as given below

[ 88%] Linking CXX shared library ....\bin\libopencv_cvv310.dll CMakeFiles\opencv_cvv.dir/objects.a(view_controller.cpp.obj):view_controller.cpp:(.text$_ZN3cvv4view10FilterViewD0Ev[__ZN3cvv4view10FilterViewD0Ev]+0x8): undefined reference to `vtable for cvv::view:: FilterView'

The cmake cofig output is given below

General configuration for OpenCV 3.1.0 =====================================
  Version control:               unknown

    Host:                        Windows 6.1.7600 AMD64
    CMake:                       3.5.2
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/Qt/Qt5.6.0/Tools/mingw492_32/bin/mingw32-make.exe
    Configuration:               Release

    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Qt/Qt5.6.0/Tools/mingw492_32/bin/g++.exe  (ver 4.9.2)
    C++ flags (Release):         -fsigned-char -mstackrealign -W -Wall -Werror=return-type -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 -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -mstackrealign -W -Wall -Werror=return-type -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 -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  C:/Qt/Qt5.6.0/Tools/mingw492_32/bin/gcc.exe
    C flags (Release):           -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -O2 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      
    Linker flags (Debug):        
    Precompiled headers:         YES
    Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent vfw32 winmm
    3rdparty dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf libprotobuf

  OpenCV modules:
    To be built:                 core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cvv datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching
    Disabled:                    world contrib_world
    Disabled by dependency:      -
    Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz hdf matlab sfm

  Windows RT support:            NO

    QT 5.x:                      YES (ver 5.6.0)
    QT OpenGL support:           NO
    OpenGL support:              NO
    VTK support:                 NO

I am using Qt 5.6, migw 4.92 compiler on a win 64 bit windows os and opencv 3.1.

Does anyone have any idea of how to resolve this issue

Thanks Amal

edit retag flag offensive close merge delete


Eduardo gravatar imageEduardo ( 2016-05-17 04:11:29 -0500 )edit

Like @Eduardo suggested, try grabbing latest versions of repositories of opencv and opencv_contrib first!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-05-17 07:43:35 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-05-18 00:12:16 -0500

lama123 gravatar image

updated 2016-05-19 00:38:22 -0500

Thanks @Eduardo and @StevenPuttemans. The latest contrib build with the above fix solved the issue.

edit flag offensive delete link more


Do accept your own answer as a solution once you are able.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-05-18 02:39:31 -0500 )edit

Question Tools

1 follower


Asked: 2016-05-16 23:31:40 -0500

Seen: 764 times

Last updated: May 19 '16