title: Compile OpenCV 2.4.2 for Debian Lenny
body: <p><strong>To keep the Q&amp;A aspect:</strong></p>
  
  <p>I got a strange problem with the latest (v.2.4.2) OpenCV version, which failed to install with the following error:</p>
  
  <blockquote>
    <p>In file included from /OpenCV-2.4.2/modules/core/src/system.cpp:460:<br>
    /OpenCV-2.4.2/release/modules/core/version_string.inc:37:1:
    warning: missing terminating " character In file included from
    /OpenCV-2.4.2/modules/core/src/system.cpp:460:
    /OpenCV-2.4.2/release/modules/core/version_string.inc:37: error:
    missing terminating " character</p>
  </blockquote>
  
  <p>So what went wrong? <em>Take a look at my answer.</em></p>