Ask Your Question
0

Issue installing opencv on mac

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

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/cap_qtkit.mm.o /Users/.../opencv-2.4.13/modules/highgui/src/cap_qtkit.mm:46:9: fatal error: 'QTKit/QTKit.h' file not found

import <qtkit qtkit.h="">

    ^

1 error generated. make[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_qtkit.mm.o] 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
0

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

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: http://seeb0h.github.io/howto/howto-i...

hope this helps.

edit flag offensive delete link more
0

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

myok12 gravatar image

Try compiling with the following:

cmake -DWITH_QUICKTIME=OFF -DWITH_GSTREAMER=OFF -DWITH_FFMPEG=OFF -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_BUILD_TYPE=Release .. ; make -j4

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 2,221 times

Last updated: Sep 17 '16