Ask Your Question
1

Compiling 4.0.0.0rc Fails

asked 2018-11-14 11:32:46 -0600

Aeroclassics gravatar image

updated 2018-11-14 11:38:15 -0600

berak gravatar image

When building overlayfilterwidget.cpp I get the following error:

[ 67%] Building CXX object modules/cvv/CMakeFiles/opencv_cvv.dir/src/qtutil/filter/overlayfilterwidget.cpp.o
cd /devel/software/opencv-4.0.0/build/modules/cvv && /usr/bin/c++  -DCVAPI_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/devel/software/opencv-4.0.0/build/modules/cvv -I/devel/software/opencv_contrib-4.0.0/modules/cvv -I/devel/software/opencv-4.0.0/build/modules/cvv/opencv_cvv_autogen/include -I/devel/software/opencv-4.0.0/build/3rdparty/ippicv/ippicv_lnx/icv/include -I/devel/software/opencv-4.0.0/build/3rdparty/ippicv/ippicv_lnx/iw/include -I/devel/software/opencv-4.0.0/build -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/devel/software/opencv_contrib-4.0.0/modules/cvv/src -I/devel/software/opencv_contrib-4.0.0/modules/cvv/include -I/devel/software/opencv-4.0.0/modules/core/include -I/devel/software/opencv-4.0.0/modules/flann/include -I/devel/software/opencv-4.0.0/modules/imgproc/include -I/devel/software/opencv-4.0.0/modules/imgcodecs/include -I/devel/software/opencv-4.0.0/modules/videoio/include -I/devel/software/opencv-4.0.0/modules/highgui/include -I/devel/software/opencv-4.0.0/modules/features2d/include  -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security  -Wundef -Winit-self -Wpointer-arith  -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-missing-declarations -O3 -DNDEBUG  -DNDEBUG -fPIC   -fPIC -std=c++11 -o CMakeFiles/opencv_cvv.dir/src/qtutil/filter/overlayfilterwidget.cpp.o -c /devel/software/opencv_contrib-4.0.0/modules/cvv/src/qtutil/filter/overlayfilterwidget.cpp
/devel/software/opencv_contrib-4.0.0/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp: In member function ‘virtual void cvv::qtutil::DiffFilterFunction::applyFilter(cvv::qtutil::DiffFilterFunction::InputArray, cvv::qtutil::DiffFilterFunction::OutputArray) const’:
/devel/software/opencv_contrib-4.0.0/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp:72:44: error: ‘COLOR_BGR2HSV’ was not declared in this scope
  cv::cvtColor(in.at(0).get(), originalHSV, COLOR_BGR2HSV);
                                            ^~~~~~~~~~~~~
/devel/software/opencv_contrib-4.0.0/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp:72:44: note: suggested alternative:
In file included from /devel/software/opencv_contrib-4.0.0/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp:2:0:
/devel/software/opencv-4.0.0/modules/imgproc/include/opencv2/imgproc.hpp:579:5: note:   ‘COLOR_BGR2HSV’
     COLOR_BGR2HSV      = 40, //!< convert RGB/BGR to HSV (hue saturation value), @ref color_convert_rgb_hsv "color conversions"
     ^~~~~~~~~~~~~

Seems like a strange error. To fail on such a basic define. Anyone have an ideas?

Thanks, Doug

edit retag flag offensive close merge delete

Comments

do you absolutely NEED the cvv module ?

just to "isolate a problem", please try to disable it, like :

cmake -DBUILD_opencv_cvv=OFF

(on the other hand: namespace problem ? maybe all it needs is a cv::COLOR_BGR2HSV ?)

(try that, too, please ;)

(opencv's buildbots/tests don't have qt by default, so this is never checked !)

berak gravatar imageberak ( 2018-11-14 11:43:48 -0600 )edit
1

Guess I am not so smart, what is the CVV module? I am just following a script posted by [Learn OpenCV] (https://www.learnopencv.com/install-o...)

I will try both your suggestions. And report back. Thanks! Doug

Aeroclassics gravatar imageAeroclassics ( 2018-11-14 11:55:23 -0600 )edit

try the 2nd one first ;)

and the cvv module is a way of (debug) visualizing images used in your program, using qt.

actuall, a great thing, IF it works ... it's just not sooo properly tested, and there might be internal errors lurking here

berak gravatar imageberak ( 2018-11-14 11:59:11 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2018-11-14 12:09:16 -0600

Aeroclassics gravatar image

Adding cv:: was all it took. Thank you very much. Next is to see if I can get this built with Cuda 10.0!

Doug

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-11-14 11:32:46 -0600

Seen: 1,290 times

Last updated: Nov 14 '18