2. Building from source using the new CMake build system (currently unstable and difficult)
The GNU autotools methods (make && make install) are being outdated. Volunteers to edit this section?
灰常不理解OpenCV的开发团队为什么要在B方案都还不稳定的情况下裁撤A方案。
于是,我在Mac OS X 10.6.2 + Xcode 3.2.1的环境下编译了OpenCV r2492这个版本,并且打包了一个放在:Dropbox,嫌麻烦的朋友可以直接下载这个Universal的Private Framework。另外,还有一个别人编译了的OpenCV 2.0 Gold Release的版本。这个版本有一个问题,在挂在.dmg文件后,它给出的目的文件目录是“/System/Library/Frameworks”。而根据Apple的说明:
Third-party frameworks should never be installed in the /System/Library/Frameworks directory. Access to this directory is restricted and is reserved for Apple-provided frameworks only.
Most public frameworks should be installed at the local level in /Library/Frameworks.
If your framework should only be used by a single user, you can install it in the ~/Library/Frameworks subdirectory of the current user; however, this option should be avoided if possible.
If they are to be used across a local area network, they can be installed in /Network/Library/Frameworks; however, this option should be avoided if possible.