Install openCV on Mac OS Sierra

asked 2016-09-28 22:22:43 -0600

Carl Zhang gravatar image

updated 2016-09-29 01:16:53 -0600

berak gravatar image

Hi All,

Currently I'm installing the openCV on my computer, and it report an error like this:

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/Downloads/opencv-2.4.13/release
host56-116:release user$ make
[  2%] Built target zlib
[  6%] Built target libtiff
[ 11%] Built target libjpeg
[ 14%] Built target libjasper
[ 16%] Built target libpng
[ 24%] Built target IlmImf
[ 27%] Built target opencv_core
[ 32%] Built target opencv_imgproc
[ 33%] Built target opencv_video
[ 33%] Built target opencv_flann
[ 33%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_qtkit.mm.o
/Users/user/Downloads/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

One of my mates has already installed opecv on his system(Mac OS El Captain) successfully without this error.

I thought this problem may be caused by latest update on Mac OS. I checked the update and Apple said the CVKit has already replaced QTKit.

Does anyone has some ideas about how to solve this issue? I'm be grateful indeed if you can help me!

edit retag flag offensive close merge delete

Comments

please replace the screenshot with a text version !

berak gravatar imageberak ( 2016-09-28 23:51:01 -0600 )edit

Please check the text version again, Thx!

Carl Zhang gravatar imageCarl Zhang ( 2016-09-29 00:42:38 -0600 )edit

no idea about apple, but you should watch this

berak gravatar imageberak ( 2016-09-29 01:16:18 -0600 )edit

oh shit i just upgraded all my boxes to macos Sierra :-)

my stuff still works, haven't recompiled opencv yet though. What is CVKit ? I'm not sure what QTKit is either actually - but it looks like it's part of highgui (probably uses QT).

And as it seems part of opencv, what were youre steps before you downloaded opencv? Alternatively - try using homebrew.

atv gravatar imageatv ( 2016-09-29 04:22:23 -0600 )edit

Thx buddy I will check it out!

Carl Zhang gravatar imageCarl Zhang ( 2016-10-07 05:45:17 -0600 )edit