OpenCV Build process warning : field of class type without a DLL interface used in a class with a DLL interface
I just installed CUDA 7.0 and generated the OpenCV makefiles for VisualStudio 2013 x64 through CMake. While building in the Debug configuration in VS2013, I have tons of warnings like these and its taking hell longer then it would normally take without WITH_CUDA checked in CMake.
I got the following:
C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(494): warning : field of class type without a DLL interface used in a class with a DLL interface
How do I resolve the warnings??
There are many of these:
C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core.hpp(98): warning : base class dllexport/dllimport specification differs from that of the derived class
13>
13>
13>
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(494): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(530): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
18> pyr_down.cu
18>
17> bgfg_gaussmix2.cpp
17> bgfg_KNN.cpp
17> camshift.cpp
17> compat_video.cpp
17> ecc.cpp
17> kalman.cpp
17> lkpyramid.cpp
17> optflowgf.cpp
17> tvl1flow.cpp
17> opencl_kernels_video.cpp
17>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\opencv_imgproc300d.lib'
19>------ Build started: Project: opencv_shape, Configuration: Debug x64 ------
19> Building Custom Rule C:/opencv-master_2/opencv-master/modules/shape/CMakeLists.txt
19> CMake does not need to re-run because C:\opencv-master_2\My_Build\modules\shape\CMakeFiles\generate.stamp is up-to-date.
19> opencv_shape_pch.cpp
19> aff_trans.cpp
19> emdL1.cpp
19> haus_dis.cpp
19> hist_cost.cpp
19> precomp.cpp
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/base.hpp(342): warning : function declared with "noreturn" does return
13>
13>
13>
19> sc_dis.cpp
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/types.hpp(482): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/types.hpp(483): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/types.hpp(692): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/mat.hpp(229): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/mat.hpp(2410): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
13>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/mat.hpp(2411): warning : field of class type without a DLL interface used in a class with a DLL interface
13>
13>
13>
13>C ...
Anyone has/had this issue? Plz help!!
This is happening to me right now, as I type this. CUDA 6.5, OpenCV 3.0.0. Generated build with Cmake 3.2.3 on 32-bit Widows Vista, compiling on VC++2010 Express. Everything seems to be building in spite of the compiler warnings, albeit at a much slower than expected rate.
i'm also getting lots of these warnings: Warning 77 warning : base class dllexport/dllimport specification differs from that of the derived class D:\GitHub\opencv\modules\core\include\opencv2\core.hpp 98 1 opencv_core
using VC++2013 on windows 7 64bit, CUDA 6.5, OpenCV on Git Itseez
and compiling fails with: Error 161 error C2220: warning treated as error - no 'object' file generated d:\github\opencv\modules\cudev\include\opencv2\cudev\grid\detail\transform.hpp 299 1 opencv_core
how to solve this?
I have exactly the same problem, could you please help me???
I have the same warning, searching for help. My case: vs2013+CUDA7.5+openCV 3.10 from github master branch.
I've got the same problem with the absolutly same case.
I have this prob too!! Is there anyone who solved that??
may be this post could help you