gpt4 book ai didi

python - fatal error : 'QTKit/QTKit.h' file not found when I build OpenCV on mac

转载 作者:太空狗 更新时间:2023-10-29 21:42:03 27 4
gpt4 key购买 nike

我已经关注了这个 http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/在我的 Mac 上安装 OpenCV。当我执行此步骤时: $制作-j4发生了一个问题:

fatal error: 
'QTKit/QTKit.h' file not found
#import <QTKit/QTKit.h>
^ 1 error generated. make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_qtkit.mm.o]
Error 1 make[1]: ***
[modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 make: ***
[all] Error 2

最佳答案

尝试像这样构建它:

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

关于python - fatal error : 'QTKit/QTKit.h' file not found when I build OpenCV on mac,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39590741/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com