Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Some hints:

  1. Official Quick Start is a better starting point.
  2. vc11 libs are for Visual Studio 2012. You should use vc10 binaries if you have.
  3. If you don't have need to debug the opencv code, the debug version of the libs are worthless... avoid it (use opencv_coreXYZ.lib instead of opencv_coreXYZd.lib, and so on).
  4. Ship the DLLs with your executable taking care to use same version as is for the .lib files you are linking to (opencv_coreXYZ.DLL instead of opencv_coreXYZd.DLL, and so on).

I hope this helps

Some hints:

  1. Official Quick Start is a better starting point.
  2. vc11 libs are for Visual Studio 2012. You should use vc10 binaries if you have.
  3. If you don't have need to debug the opencv code, the debug version of the libs are worthless... avoid it (use and use opencv_coreXYZ.libopencv_*XYZ.lib instead of opencv_coreXYZd.libopencv_*XYZd.lib, and so on). .
  4. Ship the DLLs with your executable taking care to use same version as is for the .lib files you are linking to (to: opencv_coreXYZ.DLLopencv_*XYZ.lib => opencv_*XYZ.dll instead , opencv_*XYZd.lib => opencv_*XYZd.dll. (not all of opencv_coreXYZd.DLL, Opencv DLLs are needed, it depends from your code. In your example opencv_coreXYZ.dll and so on). opencv_highguiXYZ.dll should be enough)

I hope this helps

Some hints:

  1. Official Quick Start is a better starting point.
  2. vc11 libs are for Visual Studio 2012. You should use vc10 binaries if you have.
  3. If you don't have need to debug the opencv code, the debug version of the libs are worthless... avoid it and use opencv_*XYZ.lib instead of opencv_*XYZd.lib.
  4. Ship the DLLs with your executable taking care to use same version as is for the .lib files you are linking to: opencv_*XYZ.lib => opencv_*XYZ.dll , opencv_*XYZd.lib => opencv_*XYZd.dll. (not all of Opencv DLLs are needed, it depends from your code. In your example opencv_coreXYZ.dll and opencv_highguiXYZ.dll should be enough)
  5. You have to use same platform for application and libs. If you are building a 32bit application you have use 32bit version of the Opencv libs/dll...

I hope this helps