Cannot open input file 'opencv_calib3d243d.lib'

I get the following error in OpenCV

1>------ Build started: Project: OpenCv, Configuration: Debug Win32 ------ 1>LINK : fatal error LNK1181: cannot open input file 'opencv_calib3d243d.lib' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

I am using MS Visual Studio 2010 express and OpenCV version 2.4.0. I followed the following instructions when setting up OpenCV and testing with code.

Installing OpenCV 2.4.3 in Visual C ++ 2010 Express

Why am I getting this error? Please, help!

+4
source share
4 answers

Found an answer!

Add the following to Project Properties-> Connector-> Input-> Additional Dependencies

 opencv_calib3d240d.lib opencv_contrib240d.lib opencv_core240d.lib opencv_features2d240d.lib opencv_flann240d.lib opencv_gpu240d.lib opencv_haartraining_engined.lib opencv_highgui240d.lib opencv_imgproc240d.lib opencv_legacy240d.lib opencv_ml240d.lib opencv_nonfree240d.lib opencv_objdetect240d.lib opencv_photo240d.lib opencv_stitching240d.lib opencv_ts240d.lib opencv_video240d.lib opencv_videostab240d.lib 

Go to Linker-> General-> Enable Incremental Linking and select No (/ INCREMENTAL: NO) ;

+2
source

240 means your version is 2.4.0, so just change the 240s to match your version of opencv, my 2.4.5, so my 245 :)

+3
source

I had the same problem. Even if I did everything correctly in the .props file, the project itself did not import the OpenCV lib directory. I decided that by clicking on the project file, right-clicking and going to Properties / Configuration / Links / General / Additional Libraries, edit it and check "Inherit from Parent or Objects by Default".

0
source

I solved this by adding the full path name. To do this, follow the link:

  • Property manager
  • Linker
  • General
  • Additional libraries.
  • insert full path to files

... also go to the "Enable discriminatory binding" section and select "NO"

0
source

All Articles