Ask Your Question

Issue installing opencv on mac

asked 2016-09-17 22:34:24 -0500

I have this error after trying to install opencv on mac The Captain: Can anybody help me solving this error please.. [ 31%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/ /Users/.../opencv-2.4.13/modules/highgui/src/ fatal error: 'QTKit/QTKit.h' file not found

import <qtkit qtkit.h="">


1 error generated. make[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/] Error 1 make[1]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: * [all] Error 2

Anybody can help me to fix it

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2016-09-19 13:29:23 -0500

it appears El Capitan release has some known issues with building OpenCV with certain options enabled. the best way i found to build OpenCV is using "brew install" method.. this procedure helped in getting through the installation:

hope this helps.

edit flag offensive delete link more

answered 2016-09-24 03:53:43 -0500

myok12 gravatar image

Try compiling with the following:


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-09-17 22:34:24 -0500

Seen: 2,062 times

Last updated: Sep 17 '16