Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

can we use gpu functions in other opencv modules?

I try to use gpu::resize in objdetect module. however, I dont know where to put

#include "opencv2/gpu/gpu.hpp"

When I include gpu.hpp in precomp.hpp, I get 157 link errors such as below. Can we actually use gpu functions in other modules???

Error 145 error LNK2019: unresolved external symbol "public: void __thiscall cv::gpu::ImagePyramid::build(class cv::gpu::GpuMat const &,int,class cv::gpu::Stream &)" (?build@ImagePyramid@gpu@cv@@QAEXABVGpuMat@23@HAAVStream@23@@Z) referenced in function "public: __thiscall cv::gpu::ImagePyramid::ImagePyramid(class cv::gpu::GpuMat const &,int,class cv::gpu::Stream &)" (??0ImagePyramid@gpu@cv@@QAE@ABVGpuMat@12@HAAVStream@12@@Z) opencv_objdetect_pch.obj Error 141 error LNK2019: unresolved external symbol "public: void __thiscall cv::gpu::CannyBuf::create(class cv::Size_<int> const &,int)" (?create@CannyBuf@gpu@cv@@QAEXABV?$Size_@H@3@H@Z) referenced in function "public: __thiscall cv::gpu::CannyBuf::CannyBuf(class cv::Size_<int> const &,int)" (??0CannyBuf@gpu@cv@@QAE@ABV?$Size_@H@2@H@Z) opencv_objdetect_pch.obj Error 117 error LNK2019: unresolved external symbol "public: virtual void __thiscall cv::SimpleBlobDetector::write(class cv::FileStorage &)const " (?write@SimpleBlobDetector@cv@@UBEXAAVFileStorage@2@@Z) referenced in function "[thunk]:public: virtual void __thiscall cv::SimpleBlobDetector::writevtordisp{4294967292,0}' (class cv::FileStorage &)const " (?write@SimpleBlobDetector@cv@@$4PPPPPPPM@A@BEXAAVFileStorage@2@@Z) opencv_objdetect_pch.obj Error 121 error LNK2019: unresolved external symbol "public: virtual void __thiscall cv::SimpleBlobDetector::read(class cv::FileNode const &)" (?read@SimpleBlobDetector@cv@@UAEXABVFileNode@2@@Z) referenced in function "[thunk]:public: virtual void __thiscall cv::SimpleBlobDetector::readvtordisp{4294967292,0}' (class cv::FileNode const &)" (?read@SimpleBlobDetector@cv@@$4PPPPPPPM@A@AEXABVFileNode@2@@Z) opencv_objdetect_pch.obj Error 139 error LNK2019: unresolved external symbol "public: virtual void __thiscall cv::OpponentColorDescriptorExtractor::write(class cv::FileStorage &)const " (?write@OpponentColorDescriptorExtractor@cv@@UBEXAAVFileStorage@2@@Z) referenced in function "[thunk]:public: virtual void __thiscall cv::OpponentColorDescriptorExtractor::write`vtordisp{4294967292,0}' (class cv::FileStorage &)const " (?write@OpponentColorDescriptorExtractor@cv@@$4PPPPPPPM@A@BEXAAVFileStorage@2@@Z) opencv_objdetect_pch.obj