opencv安装

Required Packages


CMake 2.8.7 or higher;


GTK+2.x or higher, including headers (libgtk2.0-dev);


一、安装GTK

https://wiki.gnome.org/Projects/GTK%2B/OSX/Building

jhbuild build meta-gtk-osx-core

遇到的错误

make[2]: *** [gir/fontconfig-2.0.typelib] Error 127

需要安装fontconfig-2.0.typelib

configure: error: You must have freetype installed; see http://www.freetype.org/

解决办法:下载freetype并编译安装


其他错误

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

解决办法:sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future python setup.py build 


安装DBus

brew install DBus --universal


error :/usr/local/share/gtk-doc/html is not writable. You should change its permissions.

解决办法 sudo chown -R fuliangyang:admin /usr/local/share/gtk-doc/html


CMake Error: The source directory "/Users/fuliangyang/Documents/opencv/opencv_sdk/opencv-2.4.8/CMAKE_INSTALL_PREFIX=/usr/local" does not exist.

解决方案:

Do not add spaces after -D option:

cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local <path to opencv>


 /usr/local/etc isn't writable.

解决方案:sudo chown $USER /usr/local/share/man/man5

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值