Ask Your Question

Revision history [back]

gpu stereo_match.cpp problem

Hello everybody I am using opencv3 with an example which i found in samples/gpu/stereo_match.cpp but every time i built it i got these errors : 1-main.obj:-1: error: LNK2019: unresolved external symbol "struct cv::Ptr<class cv::cuda::stereobm=""> __cdecl cv::cuda::createStereoBM(int,int)" (?createStereoBM@cuda@cv@@YA?AU?$Ptr@VStereoBM@cuda@cv@@@2@HH@Z) referenced in function "public: void __thiscall App::run(void)" (?run@App@@QAEXXZ)

2-main.obj:-1: error: LNK2019: unresolved external symbol "struct cv::Ptr<class cv::cuda::stereobeliefpropagation=""> __cdecl cv::cuda::createStereoBeliefPropagation(int,int,int,int)" (?createStereoBeliefPropagation@cuda@cv@@YA?AU?$Ptr@VStereoBeliefPropagation@cuda@cv@@@2@HHHH@Z) referenced in function "public: void __thiscall App::run(void)" (?run@App@@QAEXXZ)

3-main.obj:-1: error: LNK2019: unresolved external symbol "struct cv::Ptr<class cv::cuda::stereoconstantspacebp=""> __cdecl cv::cuda::createStereoConstantSpaceBP(int,int,int,int,int)" (?createStereoConstantSpaceBP@cuda@cv@@YA?AU?$Ptr@VStereoConstantSpaceBP@cuda@cv@@@2@HHHHH@Z) referenced in function "public: void __thiscall App::run(void)" (?run@App@@QAEXXZ)

does anyone has suggestion what should i do and what is the problem??????