

Thus, if you tried to compile OpenCV on your Mac using my previous tutorials your compile likely bombed out and you ended up with an error message similar to this: fatal error: This created a big problem when compiling OpenCV on Mac systems - the QTKit headers were not found on the system and were expected to exist.

AVFoundation is the new framework for working with audiovisual media in iOS and macOS. However, it wasn’t until the release of macOS Sierra that much of QTKit was removed and instead replaced with AVFoundation, the successor to QTKit. In OSX version 10.9 (Mavericks) QTKit was deprecated ( source).
#How to install pypdf2 on mac 2.7 mac osx#
In the Mac OSX environment the QTKit (QuickTime Kit) Objective-C framework is used for manipulating, reading, and writing media. Avoiding the QTKit/QTKit.h file not found error
#How to install pypdf2 on mac 2.7 how to#
In particular, I explain a common error you may have run across - the QTKit.h header issue from the now deprecated QTKit library.įrom there, I provide super detailed instructions on how to install OpenCV 3 + Python 2.7 your macOS Sierra system or greater. The first part of this blog post details why I am creating a new tutorial for installing OpenCV 3 with Python bindings on the Mac Operating System. To learn how to install OpenCV with Python 2.7 bindings on your macOS system, keep reading. I decided to break these tutorials into two separate blog posts because they are quite lengthy.įurthermore, tuning your CMake command to get it exactly right can be a bit of a challenge, especially if you’re new to compiling from OpenCV from source, so I wanted to take the time to devise a foolproof method to help readers get OpenCV installed on macOS.

Click here to download the source code to this post
