title: Visual Studio 2012 with OpenCV ver 2.4.10 DLL missing error
body: <p>I've found several questions relating to this and have tried them. However, I am still unable to resolve the issue. Below are sites that I've used and an explanation of what I've done.</p>
  
  <p><a href="https://stackoverflow.com/questions/7011238/opencv-2-3-c-visual-studio-2010">Visual Studieo 2010 with OpenCV 2.3.0</a></p>
  
  <p><a href="http://opencv-srf.blogspot.com/2013/05/installing-configuring-opencv-with-vs.html" rel="nofollow noreferrer">OpenCV Tutorial C++</a></p>
  
  <p><a href="https://stackoverflow.com/questions/10901905/installing-opencv-2-4-3-in-visual-c-2010-express">Another Visual Studio 2010 example</a></p>
  
  <p>What I am using are:</p>
  
  <ul>
  <li>Windows 7 Professional x64</li>
  <li>Visual Studio 2012 For Windows Desktop</li>
  <li>OpenCV v2.4.10 extracted to D:\Development\OpenCV</li>
  </ul>
  
  <p>Step 1:
  I went into <em>Computer > Properties > Advanced system settings > Environment Variables</em> and added:
  <code>D:\Development\openCV\build\x64\vc11\bin\</code> at the end of the <strong>Path</strong> variable. And then I restarted the computer.</p>
  
  <p>Step 2:
  Created a new project and edited the Properties for <strong>All Configurations</strong>. </p>
  
  <ul>
  <li>Under <em>Configuration Properties > C/C++ > General</em>, I added <code>D:\Development\openCV\build\include</code></li>
  <li>Under <em>Configuration Properties > Linker > General</em>, I added <code>D:\Development\openCV\build\x64\vc11\lib</code></li>
  <li>Under <em>Configuration Properties > Linker > Input</em>, I added <code>opencv_calib3d2410d.lib
  opencv_contrib2410d.lib
  opencv_core2410d.lib
  opencv_features2d2410d.lib
  opencv_flann2410d.lib
  opencv_gpu2410d.lib
  opencv_highgui2410d.lib
  opencv_imgproc2410d.lib
  opencv_legacy2410d.lib
  opencv_ml2410d.lib
  opencv_nonfree2410d.lib
  opencv_objdetect2410d.lib
  opencv_photo2410d.lib
  opencv_stitching2410d.lib
  opencv_superres2410d.lib
  opencv_ts2410d.lib
  opencv_video2410d.lib
  opencv_videostab2410d.lib</code></li>
  <li>Under <em>Configuration Properties > Linker > Advanced</em>, I changed the Target Machine to <strong>MachineX64</strong>.</li>
  </ul>
  
  <p>Step 3: For <em>Build > Configuration Manager</em>, the project is changed to x64 platform.</p>
  
  <p>Step 4: I copied and pasted the code from one of the links above with the path of the image modified and built it.</p>
  
  <pre><code>#include "stdafx.h"
  
  #include &lt;opencv2/highgui/highgui.hpp&gt;
  #include &lt;iostream&gt;
  
  using namespace cv;
  using namespace std;
  
  int main()
  {
      Mat im = imread("D:/lena.png");
      if (im.empty()) 
      {
      cout &lt;&lt; "Cannot load image!" &lt;&lt; endl;
      return -1;
      }
      imshow("Image", im);
      waitKey(0);
  }
  </code></pre>
  
  <p>Step 5: I pressed F7 and the solution built successfully. (Sadly, took a while to just get to this point)</p>
  
  <p><strong>Problem</strong> is when I press F5, I would get an error saying "The program can't start because opencv_core2410d.dll is missing from your computer. Try reinstalling the program to fix this problem."</p>
  
  <p>I thought the first step of adding it to the path is the solution.
  By moving the DLL into the <em>D:\Development\VisualStudio\opencvHelloWorld\x64\Debug</em> folder, I can run the executable. Can anyone shed light on how to fix this problem? What am I missing?</p>
  
  <p>Thank you!</p>