Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.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:
Error LNK118 cannot open input file 'IlmImf.lib'


What I have tried:

I also put the path of opencv in the environment variable which contains this lib file but still get this error.
Posted
Updated 29-Aug-23 2:20am
v2
Comments
RedDk 22-Aug-23 13:58pm    
Answering "Error" problems should be left to the Comments, unless a solution is actually something insightful to a VS user. But that said, in order to see WHEN you're rejected by the LINKER, enable verbose output during link by using the /V switch on the command line. If this doesn't help identify the proper order of things when the error happens it will at least make you smarter and less likely to incurr the wrath of some of the cheese-headed responders that make it a habit of pedantic answering then downvoting the display of your simple mind. When it comes to being a nube.

The message iks clear, the linker cannot find or access the required library. You will need to look into the sources and makefile/project to find out where it s being referenced. Alternatively you could ask the person who created the project.
 
Share this answer
 
Comments
Yashvi Moradiya 22-Aug-23 0:42am    
Thanks for solution .
i try it and now i get many linker 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

i get 117 same error in different pages .
Richard MacCutchan 22-Aug-23 3:21am    
It would appear that the function name has changed, see OpenCV: Cholesky matrix decomposition[^.
Richard is right and I think you must only correct some path settings in your project. Best is to search your drive and find out where the file is and to make the linker search the path.

If you havent the file you need to download the file package and install it as recommended.
 
Share this answer
 
Comments
Yashvi Moradiya 22-Aug-23 1:43am    
in my code following are dependency :
opencv_aruco330.lib
opencv_bgsegm330.lib
opencv_bioinspired330.lib
opencv_calib3d330.lib
opencv_ccalib330.lib
opencv_core330.lib
opencv_datasets330.lib
opencv_dnn330.lib
opencv_dpm330.lib
opencv_face330.lib
opencv_features2d330.lib
opencv_flann330.lib
opencv_fuzzy330.lib
opencv_highgui330.lib
opencv_img_hash330.lib
opencv_imgcodecs330.lib
......

and i use this library file :
opencv_aruco310.lib
opencv_bgsegm310.lib
opencv_bioinspired310.lib
opencv_calib3d310.lib
opencv_ccalib310.lib
opencv_core310.lib
opencv_datasets310.lib
opencv_dnn310.lib
opencv_dpm310.lib
opencv_face310.lib
opencv_features2d310.lib
opencv_flann310.lib
opencv_fuzzy310.lib
opencv_highgui310.lib
opencv_imgcodecs310.lib
.....

which opencv package give ...330.lib ?
KarstenK 30-Aug-23 1:36am    
Google finds the ilmilf.lib here. What have you done?
https://github.com/Wizapply/OvrvisionPro/blob/master/3rdparty/opencv/build/x86/vc11/staticlib/IlmImf.lib

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