If you upgrade MacOS Sierra when you install OPENCV, you may encounter the following error:
Xxx/cap_qtkit.mm:46:9: Fatal error:
' qtkit/qtkit.h ' File not found
#import
^
1 Error generated.
MAKE[2]: * * * [MODULESIDEOIO/CMAKEFILES/OPENCV_VIDEOIO.DIR/SRC/CAP_QTKIT.MM.O] Error 1
MAKE[1]: * * * [Modulesideoio/cmakefiles/opencv_videoio.dir/all] Error 2
Make: * * * [ALL] Error 2
I found a big circle on the Internet.
Never upgrade to 10.12 in a Mac to copy qtkit.framework, move to/system/library/framework
It also offers a variety of operations, but my problem is not solved
Later self-discovery method, in the non-upgraded MAC system copy Qtkit.framework from the inside to extract QTKit folder, placed under the OPENCV-2.4.13/MODULES/HIGHGUI/SRC and then compiled to pass.
This article is from the "Big Hu Study Notes" blog, please be sure to keep this source http://zhixinhu.blog.51cto.com/3132199/1870023
OpenCV mac MacOS Sierra error ' qtkit/qtkit.h ' file not found resolution record