Not able to build the cvv module in contrib
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 ...
I think you need QT5
Iam using qt 5.6
CMake build tool: C:/Qt/Qt5.6.0/Tools/mingw492_32/bin/mingw32-make.exe
disable opencv_world in cmake and check if cvv is OK
Even after disabling world the cvv is not available
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 :
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 : 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'
I 'm sorry I don't use QT and mingw then I cannot help you. You should post another question
Ok.. If needed, you can post the solution for the first problem(with_qt5) as an answer and I can accept it.