title: LNK1112: module machine type 'x64' conflicts with target machine type 'x86' - opencv build
body: <p>I have been trying to install Opencv in Windows, according to this <a href="https://docs.opencv.org/3.1.0/d5/de5/tutorial_py_setup_in_windows.html" rel="nofollow noreferrer">link</a>. I assume that the <a href="https://docs.opencv.org/3.1.0/d5/de5/tutorial_py_setup_in_windows.html" rel="nofollow noreferrer">link</a> helps in installation of opencv for both c++ and python. </p>
  
  <p>More details about my system:</p>
  
  <pre><code>    ** Visual studio - 15.9.6
      ** Windows 10- 64 bit
  
      ** Complete error - 1&gt;------ Build started: Project: gen_opencv_python_source, Configuration: Release Win32 ------
      2&gt;------ Build started: Project: opencv_python3, Configuration: Release Win32 ------
      2&gt;python36.lib(python36.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
      2&gt;Done building project "opencv_python3.vcxproj" -- FAILED.
  </code></pre>
  
  <p>A popular <a href="https://stackoverflow.com/questions/3563756/fatal-error-lnk1112-module-machine-type-x64-conflicts-with-target-machine-typ">answer</a> for this question, suggested the following steps : </p>
  
  <pre><code>    Check your properties options in your linker settings at: Properties &gt; 
     Configuration Properties &gt; Linker &gt; Advanced &gt; Target Machine. Select 
     MachineX64 if you are targeting a 64 bit build, or MachineX86 if you are 
     making a 32 bit build.
  </code></pre>
  
  <p>From the image below, however, I do not have any other option other than Win32. And Looks like  VSdoesn'thave a 64 bit release. How do I resolve this issue and what am I missing from the previous answer? Apologies if the issue is trivial.</p>
  
  <p><a href="https://i.stack.imgur.com/kl2Gp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kl2Gp.png" alt="enter image description here"></a></p>
  
  <p><strong>Update</strong></p>
  
  <p>the python version I am using is 3.6.5 64 bit. could this be the issue, with VS being 32 bit?</p>