Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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.
Posted
Updated 23-Aug-23 1:51am
v2

1 solution

I already answered this in your original question, please do not repost. If you do not know which libraries to use then you should make use of the published opencv documentation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900