我现在正在根据How to Build OpenCV Static Libraries Mac OS X中的说明编译 opencv 源代码。我用 CMake 创建 xcode 项目没有问题,并且编译进行得很好。我可以看到已经创建了静态库。但是,当我使用项目的安装功能时,我收到以下错误:
/Applications/CMake\ 2.8-11.app/Contents/bin/cmake -DBUILD_TYPE=Debug -P cmake_install.cmake
-- Install configuration: "Debug"
CMake Error at cmake_install.cmake:31 (FILE):
file cannot create directory: /usr/local/include/opencv2. Maybe need
administrative privileges.
关于使安装成为可能的任何想法?