Ask Your Question
0

gpu stereo_match.cpp problem

asked 2015-02-06 14:51:28 -0600

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??????

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-10 04:44:03 -0600

Boogaloo gravatar image

Have you put the libs in Properties/Linker/Inout? Like opencv_calib3d300d.lib (debug version) etc?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-06 14:50:20 -0600

Seen: 622 times

Last updated: Feb 06 '15