I want to clone and build the
SfmDataGenerator
project. For that, I have used the Github link. I have built a GUI project in it, I want to build a
SfmDataGenerator
project that works in the backend. But when I try to build, I get an error like this:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "bool __cdecl cv::Cholesky(double *,unsigned int,int,double *,unsigned int,int)" (?Cholesky@cv@@YA_NPANIH0IH@Z) SfmDataGenerator D:\SfmDataGenerator-master\SfmDataGenerator-master\SfmDataGenerator\Camera.obj 1
Error LNK2001 unresolved external symbol "bool __cdecl cv::imwrite(class cv::String const &,class cv::_InputArray const &,class std::vector<int,class std::allocator<int=""> > const &)" (?imwrite@cv@@YA_NABVString@1@ABV_InputArray@1@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) SfmDataGenerator D:\SfmDataGenerator-master\SfmDataGenerator-master\SfmDataGenerator\GenHelper.obj 1
It's just 2 errors. I get 117 errors like this:
In my project, dependency is like this:
opencv_aruco330.lib
opencv_bgsegm330.lib
opencv_bioinspired330.lib
opencv_calib3d330.lib
opencv_ccalib330.lib
opencv_core330.lib
opencv_datasets330.lib
and I change like this because I have this in opencv package which I install in Visual Studio 2019. So I replace with this package:
opencv_aruco310.lib
opencv_bgsegm310.lib
opencv_bioinspired310.lib
opencv_calib3d310.lib
opencv_ccalib310.lib
opencv_core310.lib
opencv_datasets310.lib
Now I get the above types of errors.
How can I solve it?
What I have tried:
I changed a dependency in properties and also I tried giving a path of library file, but nothing is working.