Avoiding the QTKit/QTKit.h file not found error
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.
If you’ve tried to use one of my previous tutorials on installing OpenCV on your freshly updated Mac (Sierra or greater) you likely ran into a few errors, specifically with the QTKit.h header files.Īnd even if you were able to resolve the QTKit problem, you likely ran into more issues trying to get your CMake command configured just right. I’ll admit it: Compiling and installing OpenCV 3 on macOS Sierra was a lot more of a challenge than I thought it would be, even for someone who has a compiled OpenCV on hundreds of machines over his lifetime.
Click here to download the source code to this post