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