Error LNK2001 'Unresolved external symbol "public: __cdecl cv::detail::CameraParams::CameraParams(struct cv::detail::CameraParams const &)" CalibrationGUI D:\Performance_capt\source\MainprojectGUI\Mainproject.obj
After adding opencv in my c++ project, when building my main project i got the following error:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "public: __cdecl cv::detail::CameraParams::CameraParams(struct cv::detail::CameraParams const &)" (??0CameraParams@detail@cv@@$$FQEAA@AEBU012@@Z) CalibrationGUI D:\Performance_capt\source\CalibrationGUI\CalibrationGUI.obj 1
All subprojects build properly, but main project has the error above. I suspect that something has to do with a library not linked from opencv. Its my first c++ project so any help would be crucial.
Use cmake to build opencv project
I have build opencv. I added dependencies in property files , linker->General : C:\opencv\opencv\build\x64\vc14\lib, in c/c++ general, and library directories etc. The build folder is also contained in opencv folder. I got multiple of these errors, on main project, yet all subprojects build smoothly(based on same property files). Any idea? i am new in opencv so any hint would be helpful