Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Compiling 4.0.0.0rc Fails

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

click to hide/show revision 2
None

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

berak gravatar image

Compiling 4.0.0.0rc Fails

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