OpenCV 3.4.3 compiling with MinGW-64 8.1.0 and CMake for Eclipse

asked 2018-09-20 14:05:47 -0500

onthegrid007 gravatar image

So, new error while doing this, with the latest version of everything...

[ 35%] Building CXX object modules/world/CMakeFiles/opencv_world.dir/__/dnn/src/tensorflow/tf_graph_simplifier.cpp.obj
cd /d S:\SYSTEMS\CPP\OpenCV\mingw-64-build\modules\world && S:\TOOLCHAINS\CPP\MinGW-64\bin\g++.exe  -DCVAPI_EXPORTS -DCV_OCL4DNN=1 -DHAVE_FFMPEG_WRAPPER=1 -DHAVE_IMGCODEC_HDR -DHAVE_IMGCODEC_PXM -DHAVE_IMGCODEC_SUNRASTER -DHAVE_PROTOBUF=1 -DHAVE_WEBP -DOPENCV_MODULE_IS_PART_OF_WORLD=1 -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS @CMakeFiles/opencv_world.dir/includes_CXX.rsp -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wcast-align -Wstrict-aliasing=2 -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -DSTRSAFE_NO_DEPRECATE -O2 -DNDEBUG  -DNDEBUG -g1 -D_FORTIFY_SOURCE=2   -std=c++11 -o CMakeFiles\opencv_world.dir\__\dnn\src\tensorflow\tf_graph_simplifier.cpp.obj -c S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp
In file included from S:/SYSTEMS/CPP/OpenCV/sources/modules/core/include/opencv2/core.hpp:58,
                 from S:/SYSTEMS/CPP/OpenCV/sources/modules/dnn/src/precomp.hpp:42,
                 from S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp:8:
S:/SYSTEMS/CPP/OpenCV/sources/modules/core/include/opencv2/core/types.hpp: In function 'cv::Scalar cv::operator*(const cv::Matx<_Tp, 4, 4>&, const Scalar&) [with _Tp = double; cv::Scalar = cv::Scalar_<double>]':
S:/SYSTEMS/CPP/OpenCV/sources/modules/core/include/opencv2/core/types.hpp:2322:45: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
     return reinterpret_cast<const Scalar&>(c);
                                             ^
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp: At global scope:
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp:20:7: error: 'class cv::dnn::experimental_dnn_34_v7::Subgraph' has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]
 class Subgraph  // Interface to match and replace TensorFlow subgraphs.
       ^~~~~~~~
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp: In member function 'int cv::dnn::experimental_dnn_34_v7::Subgraph::addNodeToMatch(const string&, const std::vector<int>&)':
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp:40:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
         for (int i = 0; i < inputs_.size(); ++i)
                         ~~^~~~~~~~~~~~~~~~
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp: In member function 'void cv::dnn::experimental_dnn_34_v7::Subgraph::setFusedNode(const string&, const std::vector<int>&)':
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp:71:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
         for (int i = 0; i < nodes.size(); ++i)
                         ~~^~~~~~~~~~~~~~
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp: In member function 'virtual bool cv::dnn::experimental_dnn_34_v7::Subgraph::match(const tensorflow::GraphDef&, int, std::vector<int>&)':
S:\SYSTEMS\CPP\OpenCV\sources\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp:105:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
         for (int i = 0; i < nodesToFuse.size(); ++i)
                         ~~^~~~~~~~~~~~~~~~~~~~
S:\SYSTEMS\CPP\OpenCV\sources\modules ...
(more)
edit retag flag offensive close merge delete

Comments

You may add a line virtual ~Subgraph() {} into modules/dnn/src/tensorflow/tf_graph_simplifier.cpp file as here. Thank you for pointing that issue!

dkurt gravatar imagedkurt ( 2018-09-21 08:48:11 -0500 )edit