$ tar xvf opencv-2.4.11.tar.gz
$ cd opencv-2.4.11
$ mkdir build
$ cd build
$ cmake -G Xcode ..
$ open OpenCV.xcodeproj
$ git clone https://github.com/MasteringOpenCV/code.git
$ cd code
$ cd Chapter5_NumberPlateRecognition
$ mkdir build
$ cd build
$ cmake -G Xcode -D OpenCV_DIR="../../opencv-dir/opencv-2.4.11"
$ open ANPR.xcodeproj