Reputation: 733
I'm on a mac 10.7.5 trying to work with the OpenCV library in XCode 4.6.2. I'm following this tutorial http://sadeepj.blogspot.co.uk/2012/03/installing-and-configuring-opencv-to.html
So I've downloaded cmake and OpenCV2.3.1 I have written in terminal :
tar xvf OpenCV-2.3.1a.tar.bz2
cd OpenCV-2.3.1
mkdir build
cd build
cmake -G "Unix Makefiles" ..
It all works except at the Unix Makefiles
command, where it says CMake Error: Could not create named generator Unix Makefiles..
Anyone know why this is happening or maybe there is another method of getting OpenCV running smoothly in Xcode?
Upvotes: 0
Views: 754
Reputation: 3427
I encourage you to avoid compiling OpenCV by yourself, whenever possible.
You can download the latest OpenCV compiled framework for iOS here, and here you can find some previous versions. To use the framework, just drag the opencv2.framework
directory to your XCode project, and you're done.
Upvotes: 5