Since OS X make changes in the original QTKit during the upgrade process, upgrade to AVKit
I downloaded a QTKit.framework, that the system comes with 10.12 QTKit.framework incomplete, and no header files (I was probably destroyed).
Then some people say simply copy QTKit.framework to opencv / modules / highgui / src below, but I still can not find this qtkit / qtkit.h
Then finally I was in opencv / modules / highgui / src below creates a folder QTKit, then the header files QTKit.framework / Headers copied to all QTKit
then compile a success
Online QTKit.framework, I did not find free download, re-transmission of a good
link: https://pan.baidu.com/s/1bVJWnAIeU7C8CD9rMMg4LA extraction code: baa2