OpenCV Installation failure due to QTKit
<p>I'm trying to install openCV for Python on my Mac but after going through a bunch of tutorials, none seem to work for me. These are the steps I took</p>

<ol>
<li>Installed <code>CMake</code></li>
<li>Downloaded the OpenCV library</li>
<li>Used <code>CMake</code> to generate the Unix Makefiles</li>
<li>Run <code>make</code> on the generated files</li>
</ol>

<p>And this is where the error arises.</p>

<blockquote>
  <p>fatal error: 'QTKit/QTKit.h' file not found</p>
</blockquote>

<p>I searched and I found <strong><em>QTKitDefines.h</em></strong> instead at
<em>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QTKit.framework/Versions/A/Headers/</em></p>

<p>Upon opening, it read</p>

<blockquote>
  <p>QTKit has been deprecated in 10.9.
  AVFoundation and AVKit are the frameworks recommended for all new development 
    involving time-based audiovisual media on OS X.  In order to transition your 
    project from QTKit to AVFoundation please refer to:
    "Technical Note TN2300 Transitioning QTKit code to AV Foundation".</p>
</blockquote>

<p>I tried searching and nothing has deem fruitful. All similar issues I found, the users still had <code>QTKit.h</code>. Take for instance this <a href="http://stackoverflow.com/questions/39590741/fatal-error-qtkit-qtkit-h-file-not-found-when-i-build-opencv-on-mac">folk</a></p>

<p>Any help will sincerely be appreciated.</p>

<p>I found a workaround by downloading the QTKit framework from <a href="https://github.com/phracker/MacOSX-SDKs/releases" rel="nofollow">this</a> repo then I simply merged my framework with the one included in the repo and continued with my installation process successfully.</p>

<p><strong>EDIT for Merging files</strong></p>

<p>By dragging and dropping the downloaded framework into the same location as my current QTKit framework; since they both have the same name, a popup prompted me with three choices of either <em>replacing</em>, <em>merging</em> or <em>cancel</em> then I simply went for merging because this allows me to still keep my updated framework along with the repo one.</p>

python osx opencv opencv3.0