Ask Your Question
0

Not able to build the cvv module in contrib

asked 2016-05-14 01:58:30 -0600

lama123 gravatar image

Hello,

I am trying to install the contrib module for opencv 3.1. But the cmake gui is not able to include the cvv module in the configuration step. The output of configure in cmake 3.5.2 gui is given below.

Processing WORLD modules...
    module opencv_core...
    module opencv_flann...
    module opencv_imgproc...
    module opencv_ml...
    module opencv_photo...
    module opencv_video...
    module opencv_imgcodecs...
    module opencv_shape...
    module opencv_videoio...
    module opencv_highgui...
    module opencv_objdetect...
    module opencv_superres...
    module opencv_features2d...
    module opencv_calib3d...
    module opencv_stitching...
    module opencv_videostab...
Processing WORLD modules... DONE
Processing module opencv_xfeatures2d...
Processing module opencv_ximgproc...
Processing module opencv_xobjdetect...
Processing module opencv_xphoto...
Processing module opencv_aruco...
Processing module opencv_bgsegm...
Processing module opencv_bioinspired...
Processing module opencv_ccalib...
Processing module opencv_dnn...
Build libprotobuf from sources:
    libprotobuf not found into system
    The protocol buffer compiler not found
Processing module opencv_dpm...
Processing module opencv_face...
Processing module opencv_fuzzy...
Processing module opencv_line_descriptor...
Processing module opencv_optflow...
Processing module opencv_plot...
Processing module opencv_reg...
Processing module opencv_rgbd...
Processing module opencv_saliency...
Processing module opencv_stereo...
Processing module opencv_structured_light...
Processing module opencv_surface_matching...
Processing module opencv_text...
Tesseract:   NO
Processing module opencv_ts...
Processing module opencv_datasets...
Processing module opencv_tracking...
Processing module opencv_contrib_world...
Complex module opencv_contrib_world
    + opencv_aruco
    + opencv_bgsegm
    + opencv_bioinspired
    + opencv_ccalib
    - opencv_cvv
    + opencv_datasets
    + opencv_dnn
    + opencv_dpm
    + opencv_face
    + opencv_fuzzy
    - opencv_hdf
    + opencv_line_descriptor
    + opencv_optflow
    + opencv_plot
    + opencv_reg
    + opencv_rgbd
    + opencv_saliency
    - opencv_sfm
    + opencv_stereo
    + opencv_structured_light
    + opencv_surface_matching
    + opencv_text
    + opencv_tracking
    + opencv_xfeatures2d
    + opencv_ximgproc
    + opencv_xobjdetect
    + opencv_xphoto

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

  Platform:
    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

  C/C++:
    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:          vfw32 winmm comctl32 gdi32 ole32 setupapi ws2_32
    3rdparty dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf libprotobuf

  OpenCV modules:
    To be built:                 core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres features2d calib3d stitching videostab world xfeatures2d ximgproc xobjdetect xphoto aruco bgsegm bioinspired ccalib dnn dpm face fuzzy line_descriptor ...
(more)
edit retag flag offensive close merge delete

Comments

I think you need QT5

LBerger gravatar imageLBerger ( 2016-05-14 02:07:49 -0600 )edit

Iam using qt 5.6

CMake build tool: C:/Qt/Qt5.6.0/Tools/mingw492_32/bin/mingw32-make.exe

lama123 gravatar imagelama123 ( 2016-05-14 02:19:32 -0600 )edit

disable opencv_world in cmake and check if cvv is OK

LBerger gravatar imageLBerger ( 2016-05-14 03:24:56 -0600 )edit

Even after disabling world the cvv is not available

lama123 gravatar imagelama123 ( 2016-05-14 04:38:45 -0600 )edit

I don't use QT so it's diffitcult for me to reproduce your problem. When I have got a problem like this I try to debug cmake process :

1 I modify cmakelist.txt of CVV :

if(NOT HAVE_QT5)
  message( FATAL_ERROR         "DISABLE CVV")
  ocv_module_disable(cvv)
  return()
endif()
  message( FATAL_ERROR         "DISABLE CVV 2")

2 delete cache configure add OPENCV_EXTRA_MODULES_PATH

3 in cmake GUI I check in options menu DEBUG OUTPUT and configure and try to understand message

LBerger gravatar imageLBerger ( 2016-05-14 05:43:26 -0600 )edit

@LBerger : Thanks..You were right. I followed your instructions and found that the cmake is not able to find QT. One has to enable WITH_QT option in cmake for it to detect qt. But now i have another problem building the cvv module. This time it is at linking stage. The error is given below. Any help will be appreciated.

[ 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'

lama123 gravatar imagelama123 ( 2016-05-16 05:10:23 -0600 )edit

I 'm sorry I don't use QT and mingw then I cannot help you. You should post another question

LBerger gravatar imageLBerger ( 2016-05-16 07:54:42 -0600 )edit

Ok.. If needed, you can post the solution for the first problem(with_qt5) as an answer and I can accept it.

lama123 gravatar imagelama123 ( 2016-05-16 10:18:32 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-19 00:43:37 -0600

lama123 gravatar image

As @LBerger suggested the problem was that the cmake was not detecting qt. Please enable the cmake configure option WITH_QT for cmake to detect it.

For the second error please use the latest contrib build with this fix. This solved the problem

Thanks

Amal

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-05-14 01:58:30 -0600

Seen: 2,679 times

Last updated: May 19 '16