Issues Running Sample Code Stitcher.cpp from OpenCV in VS 2017

  • Thread starter Thread starter gambret
  • Start date Start date
G

gambret

Guest
Hello,

I'm new to VS, and I'm trying to run the stitcher.cpp sample code from OpenCV's GitHub.

I want to take two pictures and make them into one picture panorama style. When I copy the code from GitHub into VS, I get many errors like the two below:

Error LNK2019 unresolved external symbol "bool __cdecl cv::imwrite(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::debug_build_guard::_InputArray const &,class std::vector<int,class std::allocator<int> > const &)" (?imwrite@cv@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@debug_build_guard@1@ABV?$vector@HV?$allocator@H@std@@@3@@Z) referenced in function _main hello-realsense C:\Program Files (x86)\Intel RealSense SDK 2.0\samples\hello-realsense\rs-hello-realsense.obj 1



Error LNK2019 unresolved external symbol "class cv::Mat __cdecl cv::imread(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?imread@cv@@YA?AVMat@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function "int __cdecl parseCmdArgs(int,char * *)" (?parseCmdArgs@@YAHHPAPAD@Z) hello-realsense C:\Program Files (x86)\Intel RealSense SDK 2.0\samples\hello-realsense\rs-hello-realsense.obj 1


Can anyone provide insight into how I can correct these errors?

Thank you for your help.

Continue reading...
 
Back
Top