LNK1104: cannot open file 'opencv_calib3d2410d.obj'

asked 2015-04-01 20:35:36 -0600

Schawn gravatar image

I am trying to set up MS Visual Studio 2012 (64 bit machine) with OpenCV 2.4.10. I have ready many tutorials on how to set up Visual Studio with OpenCV, but I seem to keep getting this error. Most of my searches for this error and how to fix have come up empty. In fact most of the errors I see people having is with "cannot open file 'opencv_XXX2410d.lib' but not with .obj

I have double check all of the following:

  • I have an OPENCV_BUILD environment variable set to C:\opencv2410\build
  • I have my PATH set to include %OPENCV_BUILD%\x64\vc11\bin\
  • I have a OPENCV_DEBUG and OPENCV_RELEASE properties sheet for my Solution with the following settings: - VC++ Directories: Executable Directories set to c:\opencv2410\build\x64\vc11\bin - VC++ Directories: Library Directories set to c:\opencv2410\build\x64\vc11\lib - C/C++: Additional Include Directories set to c:\opencv2410\build\include - Linker/General : Additional Library Directories set to : c:\opencv2410\build\x64\vc11\lib - Linker/Input: Additional Dependencies, has all of the opencv_XXX2410d listed (OPENCV_RELEASE properites does not have the *d on the filenames)

Does anyone know why I am still getting this error? And why is it looking for the .obj vs. the .lib. I assumed the .lib has all of the .obj files in them. Any ideas on how to fix this would be awesome.

edit retag flag offensive close merge delete