title: visual studio build application from the source code
body: <p>I have an application to build using the code source but i have a problem with that because i didn't understand what they mean by: </p>
  
  <blockquote>
    <p>On Windows, add <code>-G "Visual Studio 14 Win64"</code>. Also, you will probably
    need to add <code>-C ../4dface/initial_cache.cmake</code> as first argument -
    copy the file from <code>initial_cache.cmake.template</code> and adjust the
    paths.</p>
  </blockquote>
  
  <p>Here is the third step which i can't realize it:
  3. </p>
  
  <blockquote>
    <p>Build the app:
        Run from <em>outside</em> the source directory:
        1. <code>mkdir build &amp;&amp; cd build</code></p>
  
  <pre><code>2. `cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 -DOpenCV_haarcascades_DIR=/usr/share/opencv/haarcascades/ ../4dface/`
  
  On Windows, add `-G "Visual Studio 14 Win64"`. Also, you will probably need to add `-C ../4dface/initial_cache.cmake` as first
  </code></pre>
    
    <p>argument - copy the file from <code>initial_cache.cmake.template</code> and
    adjust the paths.</p>
  
  <pre><code>If you get an error about OpenCV\_haarcascades\_DIR, adjust `-DOpenCV_haarcascades_DIR` to point to the directory of
  </code></pre>
    
    <p><code>haarcascade_frontalface_alt2.xml</code> from OpenCV.</p>
  </blockquote>
  
  <p>I am on windows 8 and i had the code source from this "<a href="https://github.com/patrikhuber/4dface" rel="nofollow">https://github.com/patrikhuber/4dface</a>"</p>
  
  <p>and here is the link for the readme "<a href="https://github.com/patrikhuber/4dface/blob/master/README.md" rel="nofollow">https://github.com/patrikhuber/4dface/blob/master/README.md</a>"</p>
  
  <p>Thank you.</p>