Ask Your Question

Revision history [back]

Install openCV on Mac OS Sierra

Hi All,

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

image description

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!

Install openCV on Mac OS Sierra

Hi All,

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

image description

Text version:

    -- 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!

click to hide/show revision 3
No.3 Revision

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

berak gravatar image

Install openCV on Mac OS Sierra

Hi All,

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

image description

Text version:

 -- 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!